Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.SignConvention.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.SignConvention,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_SignConvention",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.SignConvention,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_SignConvention",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002301/0.002306, allocations: 184.2 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.145/2.145, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001199/0.001199, allocations: 89.3 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000392/0.0003922, allocations: 8 kB / 327 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3561/0.3565, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.SignConvention): time 0.002541/0.3592, allocations: 1.69 MB / 376.3 MB, free: 44.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004229/0.3596, allocations: 165.6 kB / 376.5 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.3598, allocations: 7.188 kB / 376.5 MB, free: 43.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.986e-05/0.3598, allocations: 19.28 kB / 376.5 MB, free: 43.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001879/0.36, allocations: 58.97 kB / 376.6 MB, free: 43.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001699/0.3602, allocations: 34.08 kB / 376.6 MB, free: 43.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002494/0.3605, allocations: 122.4 kB / 376.7 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.3606, allocations: 37.64 kB / 376.7 MB, free: 43.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.78e-05/0.3607, allocations: 62.25 kB / 376.8 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001259/0.3609, allocations: 65.17 kB / 376.9 MB, free: 43.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.474e-05/0.3609, allocations: 6.812 kB / 376.9 MB, free: 43.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.799e-05/0.361, allocations: 8.031 kB / 376.9 MB, free: 43.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.174e-05/0.361, allocations: 24.45 kB / 376.9 MB, free: 43.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.1e-05/0.3611, allocations: 53.52 kB / 377 MB, free: 43.64 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001805/0.3613, allocations: 135.2 kB / 377.1 MB, free: 43.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.3613, allocations: 1.156 kB / 377.1 MB, free: 43.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3613, allocations: 0 / 377.1 MB, free: 43.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.3613, allocations: 0 / 377.1 MB, free: 43.54 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0006646/0.362, allocations: 436.3 kB / 377.5 MB, free: 43.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.362, allocations: 12.69 kB / 377.5 MB, free: 43.11 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.479e-05/0.3621, allocations: 51.98 kB / 377.6 MB, free: 43.06 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.571e-05/0.3622, allocations: 25.62 kB / 377.6 MB, free: 43.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002284/0.3624, allocations: 217 kB / 377.8 MB, free: 42.81 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.3624, allocations: 14.62 kB / 377.8 MB, free: 42.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.839e-05/0.3625, allocations: 15.25 kB / 377.9 MB, free: 42.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003816/0.3629, allocations: 186.8 kB / 378 MB, free: 42.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.3629, allocations: 9.094 kB / 378 MB, free: 42.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.363, allocations: 6.094 kB / 378 MB, free: 42.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.363, allocations: 7.922 kB / 378.1 MB, free: 42.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002702/0.3633, allocations: 99.31 kB / 378.2 MB, free: 42.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001543/0.3648, allocations: 0.9531 MB / 379.1 MB, free: 41.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/0.365, allocations: 103.3 kB / 379.2 MB, free: 41.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.572e-05/0.3651, allocations: 0.9062 kB / 379.2 MB, free: 41.58 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.996e-05/0.3651, allocations: 36.78 kB / 379.2 MB, free: 41.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 2.756e-06/0.3651, allocations: 4 kB / 379.2 MB, free: 41.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004069/0.3655, allocations: 122.2 kB / 379.4 MB, free: 41.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/0.3656, allocations: 113.6 kB / 379.5 MB, free: 41.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000278/0.3659, allocations: 206.4 kB / 379.7 MB, free: 41.17 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.3659, allocations: 30.73 kB / 379.7 MB, free: 41.13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.1e-05/0.366, allocations: 196.4 kB / 379.9 MB, free: 40.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.019e-05/0.3661, allocations: 53.36 kB / 380 MB, free: 40.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.227e-05/0.3661, allocations: 5.031 kB / 380 MB, free: 40.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.779e-05/0.3662, allocations: 324.9 kB / 380.3 MB, free: 40.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.3663, allocations: 36.48 kB / 380.3 MB, free: 40.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001654/0.3664, allocations: 139.6 kB / 380.4 MB, free: 40.4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001553/0.3666, allocations: 63.39 kB / 380.5 MB, free: 40.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.3666, allocations: 1.469 kB / 380.5 MB, free: 40.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004739/0.3671, allocations: 205.9 kB / 380.7 MB, free: 40.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.3672, allocations: 6.031 kB / 380.7 MB, free: 40.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.3672, allocations: 8.281 kB / 380.7 MB, free: 40.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.3672, allocations: 5.625 kB / 380.7 MB, free: 40.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003196/0.3675, allocations: 54.12 kB / 380.8 MB, free: 40.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.532e-05/0.3676, allocations: 9.438 kB / 380.8 MB, free: 40.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002109/0.3678, allocations: 31.42 kB / 380.8 MB, free: 40.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/0.3678, allocations: 14.25 kB / 380.8 MB, free: 40.2 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000129/0.368, allocations: 130.5 kB / 381 MB, free: 40.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.942e-05/0.3681, allocations: 16.72 kB / 381 MB, free: 40.06 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.807e-05/0.3681, allocations: 26.39 kB / 381 MB, free: 40.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.3681, allocations: 5.094 kB / 381 MB, free: 40.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.3682, allocations: 1.156 kB / 381 MB, free: 40.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.3682, allocations: 1.125 kB / 381 MB, free: 40.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005947/0.3688, allocations: 248.6 kB / 381.3 MB, free: 39.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.3688, allocations: 1.25 kB / 381.3 MB, free: 39.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003172/0.3691, allocations: 27.02 kB / 381.3 MB, free: 39.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.141e-06/0.3691, allocations: 5.156 kB / 381.3 MB, free: 39.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.3692, allocations: 6.75 kB / 381.3 MB, free: 39.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.3692, allocations: 1.031 kB / 381.3 MB, free: 39.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.3692, allocations: 1.438 kB / 381.3 MB, free: 39.77 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000364/0.3696, allocations: 402.2 kB / 381.7 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.512e-05/0.3696, allocations: 93.58 kB / 381.8 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.857e-05/0.3697, allocations: 2.188 kB / 381.8 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002289/0.3699, allocations: 1.312 kB / 381.8 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.913e-05/0.37, allocations: 28.19 kB / 381.8 MB, free: 39.28 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.37, allocations: 2.938 kB / 381.8 MB, free: 39.28 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001559/0.3701, allocations: 144.6 kB / 382 MB, free: 39.17 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-07/0.3702, allocations: 0 / 382 MB, free: 39.17 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005373/0.3707, allocations: 40.72 kB / 382 MB, free: 39.16 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (mass1.s,mass1.v,mass2.s,mass2.v,mass3.s,mass3.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005555/0.3713, allocations: 1.075 MB / 383.1 MB, free: 38.13 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003005/0.3716, allocations: 107.3 kB / 383.2 MB, free: 38.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.3716, allocations: 0 / 383.2 MB, free: 38.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.423e-05/0.3717, allocations: 41.8 kB / 383.2 MB, free: 38.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005207/0.3722, allocations: 24.53 kB / 383.2 MB, free: 38.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003216/0.3755, allocations: 3.728 MB / 387 MB, free: 34.58 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002328/0.3758, allocations: 0.7366 MB / 387.7 MB, free: 33.85 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.3759, allocations: 52.77 kB / 387.8 MB, free: 33.81 MB / 298.7 MB Notification: Performance of SimCode: time 1.142e-06/0.3759, allocations: 1.156 kB / 387.8 MB, free: 33.81 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.463/2.839, allocations: 2.716 MB / 390.5 MB, free: 32.34 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.SignConvention.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.SignConvention.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.SignConvention.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.SignConvention.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.SignConvention_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_SignConvention_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_SignConvention.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.SignConvention.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.SignConvention_res.mat does not exist to compare? outputFormat=mat