Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_LineForceWithMass",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.002263/0.002268, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.04/2.04, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001093/0.001093, allocations: 82.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2831/0.2831, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.996e-05/4.007e-05, allocations: 8 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1193, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5309/0.6502, allocations: 111.6 MB / 0.5819 GB, free: 7.852 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.6506, allocations: 77.06 kB / 0.582 GB, free: 7.816 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5039/1.154, allocations: 111.4 MB / 0.6908 GB, free: 372 kB / 490.7 MB Notification: Performance of FrontEnd: time 2.776e-06/1.155, allocations: 3.938 kB / 0.6908 GB, free: 368 kB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004984/1.155, allocations: 119.9 kB / 0.6909 GB, free: 248 kB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1941 * Number of variables: 1941 Notification: Performance of Generate backend data structure: time 0.02739/1.182, allocations: 5.877 MB / 0.6967 GB, free: 10.29 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.176e-05/1.183, allocations: 8.031 kB / 0.6967 GB, free: 10.29 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00491/1.187, allocations: 0.9802 MB / 0.6976 GB, free: 9.293 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05331/1.241, allocations: 6.892 MB / 0.7044 GB, free: 2.383 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3857/1.627, allocations: 7.082 MB / 0.7113 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007028/1.627, allocations: 411.2 kB / 0.7117 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00328/1.631, allocations: 0.5453 MB / 0.7122 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04904/1.68, allocations: 14.03 MB / 0.7259 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000493/1.68, allocations: 73.78 kB / 0.726 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002808/1.683, allocations: 264.5 kB / 0.7262 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00306/1.686, allocations: 1.355 MB / 0.7275 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03858/1.725, allocations: 11.57 MB / 0.7388 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09892/1.824, allocations: 60.72 MB / 0.7981 GB, free: 62.23 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02754/1.851, allocations: 5.775 MB / 0.8038 GB, free: 60.23 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006814/1.858, allocations: 3.253 MB / 0.807 GB, free: 58.81 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03553/1.894, allocations: 14.72 MB / 0.8213 GB, free: 50.86 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.555e-05/1.894, allocations: 63.28 kB / 0.8214 GB, free: 50.8 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=227): time 7.695e-06/1.894, allocations: 0 / 0.8214 GB, free: 50.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=264): time 0.1226/2.017, allocations: 21.87 MB / 0.8427 GB, free: 35.04 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.537e-05/2.017, allocations: 268.3 kB / 0.843 GB, free: 34.73 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01013/2.027, allocations: 4.416 MB / 0.8473 GB, free: 30.82 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006707/2.028, allocations: 73.53 kB / 0.8474 GB, free: 30.75 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003223/2.031, allocations: 3.824 MB / 0.8511 GB, free: 27.27 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001503/2.032, allocations: 0.9861 MB / 0.8521 GB, free: 26.4 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008893/2.033, allocations: 151.3 kB / 0.8522 GB, free: 26.26 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004544/2.034, allocations: 0.6207 MB / 0.8528 GB, free: 25.72 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006325/2.04, allocations: 2.526 MB / 0.8553 GB, free: 23.45 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009331/2.05, allocations: 6.859 MB / 0.862 GB, free: 14.85 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009504/2.059, allocations: 4.121 MB / 0.866 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001444/2.059, allocations: 44 kB / 0.8661 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of matching and sorting (n=966) (initialization): time 0.02576/2.085, allocations: 9.437 MB / 0.8753 GB, free: 2.949 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001237/2.085, allocations: 72 kB / 0.8753 GB, free: 2.879 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002148/2.086, allocations: 152 kB / 0.8755 GB, free: 2.73 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002073/2.088, allocations: 0.5899 MB / 0.8761 GB, free: 2.223 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01109/2.099, allocations: 1.739 MB / 0.8778 GB, free: 0.7148 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01083/2.11, allocations: 5.62 MB / 0.8833 GB, free: 11.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00881/2.118, allocations: 405.9 kB / 0.8836 GB, free: 11.01 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002027/2.121, allocations: 446.2 kB / 0.8841 GB, free: 10.58 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 696 * Number of states: 0 () * Number of discrete variables: 57 (lineForceWithMass.lineShapeColor[3],lineForceWithMass.lineShapeColor[2],lineForceWithMass.lineShapeColor[1],lineForceWithMass.massColor[3],lineForceWithMass.massColor[2],lineForceWithMass.massColor[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (916): * Single equations (assignments): 911 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003268/2.124, allocations: 0.6759 MB / 0.8847 GB, free: 9.906 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001479/2.125, allocations: 473.9 kB / 0.8852 GB, free: 9.438 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01276/2.138, allocations: 3.975 MB / 0.8891 GB, free: 6.09 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.258e-05/2.138, allocations: 28 kB / 0.8891 GB, free: 6.062 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.678e-05/2.138, allocations: 4 kB / 0.8891 GB, free: 6.059 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.364e-05/2.138, allocations: 13.83 kB / 0.8891 GB, free: 6.059 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4119/2.55, allocations: 10.52 MB / 0.8994 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.391e-05/2.55, allocations: 2.688 kB / 0.8994 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004841/2.555, allocations: 469.7 kB / 0.8998 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001816/2.557, allocations: 347 kB / 0.9002 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000437/2.558, allocations: 44.98 kB / 0.9002 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008053/2.566, allocations: 4.946 MB / 0.905 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/2.566, allocations: 1.188 kB / 0.905 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01886/2.585, allocations: 7.083 MB / 0.912 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003517/2.588, allocations: 0.8252 MB / 0.9128 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001815/2.59, allocations: 42.91 kB / 0.9128 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004815/2.595, allocations: 160.7 kB / 0.913 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001023/2.596, allocations: 147.9 kB / 0.9131 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003618/2.596, allocations: 69 kB / 0.9132 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01065/2.607, allocations: 3.092 MB / 0.9162 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.092e-06/2.607, allocations: 0.8438 kB / 0.9162 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009373/2.617, allocations: 1.294 MB / 0.9174 GB, free: 105.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (224): * Single equations (assignments): 219 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01814/2.635, allocations: 7.911 MB / 0.9252 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01476/2.65, allocations: 6.376 MB / 0.9314 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.175e-06/2.65, allocations: 3.828 kB / 0.9314 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004959/2.655, allocations: 2.18 MB / 0.9335 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005414/2.66, allocations: 0.5645 MB / 0.9341 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03848/2.699, allocations: 12.52 MB / 0.9463 GB, free: 101 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008735/2.707, allocations: 4.243 MB / 0.9505 GB, free: 99.58 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006502/2.714, allocations: 2.687 MB / 0.9531 GB, free: 97.43 MB / 0.5105 GB Notification: Performance of SimCode: time 1.242e-06/2.714, allocations: 0 / 0.9531 GB, free: 97.43 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.541/8.255, allocations: 152.5 MB / 1.102 GB, free: 110.3 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_LineForceWithMass_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_LineForceWithMass.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat does not exist to compare? outputFormat=mat