Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove.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.PlanarLoopWithMove,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_PlanarLoopWithMove",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.PlanarLoopWithMove,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_PlanarLoopWithMove",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.001732/0.001732, allocations: 185.3 kB / 16.41 MB, free: 5.727 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.004/2.004, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.001122/0.001121, allocations: 88.42 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5283/0.5283, allocations: 43.56 MB / 362.7 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004764/0.0004762, allocations: 12 kB / 431.5 MB, free: 5.859 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1724/0.1729, allocations: 58.84 MB / 490.3 MB, free: 10.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5576/0.7306, allocations: 106.3 MB / 0.5826 GB, free: 12.2 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.7309, allocations: 78.97 kB / 0.5827 GB, free: 12.12 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7739/1.505, allocations: 94.07 MB / 0.6745 GB, free: 87.99 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.767e-06/1.505, allocations: 1.125 kB / 0.6745 GB, free: 87.99 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003561/1.505, allocations: 89.72 kB / 0.6746 GB, free: 87.99 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1597 * Number of variables: 1597 Notification: Performance of Generate backend data structure: time 0.02398/1.529, allocations: 5.066 MB / 0.6796 GB, free: 86.64 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/1.529, allocations: 9.625 kB / 0.6796 GB, free: 86.64 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004067/1.533, allocations: 0.8013 MB / 0.6804 GB, free: 86.57 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.018/1.551, allocations: 2.234 MB / 0.6825 GB, free: 86.25 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02156/1.573, allocations: 5.129 MB / 0.6876 GB, free: 85.63 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005087/1.574, allocations: 330 kB / 0.6879 GB, free: 85.62 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002671/1.576, allocations: 442.2 kB / 0.6883 GB, free: 85.62 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03738/1.614, allocations: 11.58 MB / 0.6996 GB, free: 82.9 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003446/1.614, allocations: 58.84 kB / 0.6997 GB, free: 82.89 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002135/1.616, allocations: 215.7 kB / 0.6999 GB, free: 82.89 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003034/1.619, allocations: 1.15 MB / 0.701 GB, free: 82.89 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03273/1.652, allocations: 10.03 MB / 0.7108 GB, free: 82.85 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08067/1.733, allocations: 50.86 MB / 0.7605 GB, free: 47.67 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02328/1.756, allocations: 5.901 MB / 0.7662 GB, free: 45.57 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02043/1.777, allocations: 9.316 MB / 0.7753 GB, free: 40.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01833/1.795, allocations: 3.406 MB / 0.7786 GB, free: 39.73 MB / 490.7 MB Notification: Performance of pre-optimization done (n=211): time 8.296e-06/1.795, allocations: 0 / 0.7786 GB, free: 39.73 MB / 490.7 MB Notification: Performance of matching and sorting (n=285): time 0.2105/2.006, allocations: 34.04 MB / 0.8119 GB, free: 24.89 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.367e-05/2.006, allocations: 157.8 kB / 0.812 GB, free: 24.71 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008655/2.015, allocations: 3.736 MB / 0.8157 GB, free: 21.53 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000923/2.016, allocations: 65.7 kB / 0.8157 GB, free: 21.46 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003279/2.019, allocations: 3.166 MB / 0.8188 GB, free: 18.57 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001876/2.021, allocations: 1.048 MB / 0.8199 GB, free: 17.65 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001152/2.022, allocations: 136 kB / 0.82 GB, free: 17.52 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004914/2.022, allocations: 0.5881 MB / 0.8206 GB, free: 17 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007993/2.03, allocations: 3.294 MB / 0.8238 GB, free: 14.19 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0105/2.041, allocations: 6.911 MB / 0.8305 GB, free: 6.094 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01097/2.052, allocations: 4.683 MB / 0.8351 GB, free: 1.891 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001186/2.052, allocations: 36 kB / 0.8351 GB, free: 1.855 MB / 490.7 MB Notification: Performance of matching and sorting (n=866) (initialization): time 0.04293/2.095, allocations: 12.42 MB / 0.8473 GB, free: 6.258 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001383/2.095, allocations: 60 kB / 0.8473 GB, free: 6.199 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002518/2.096, allocations: 131.8 kB / 0.8475 GB, free: 6.074 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01425/2.11, allocations: 2.682 MB / 0.8501 GB, free: 3.383 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01083/2.121, allocations: 1.489 MB / 0.8515 GB, free: 1.891 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4271/2.548, allocations: 22.29 MB / 0.8733 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008962/2.557, allocations: 431.1 kB / 0.8737 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002024/2.559, allocations: 395.1 kB / 0.8741 GB, free: 102.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 578 * Number of states: 0 () * Number of discrete variables: 47 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled,rod3.color[3],rod3.color[2],rod3.color[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],rod2.color[3],rod2.color[2],rod2.color[1],rod1.color[3],rod1.color[2],rod1.color[1],r4.cylinderColor[3],r4.cylinderColor[2],r4.cylinderColor[1],r3.cylinderColor[3],r3.cylinderColor[2],r3.cylinderColor[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (767): * Single equations (assignments): 760 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 16,(2,100.0%) 14,(3,88.9%) 13} * Non-linear torn systems: 1 {2 27} Notification: Performance of prepare postOptimizeDAE: time 0.007276/2.566, allocations: 2.237 MB / 0.8763 GB, free: 102.4 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001187/2.567, allocations: 407 kB / 0.8767 GB, free: 102.4 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02662/2.594, allocations: 7.909 MB / 0.8844 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.007e-05/2.594, allocations: 32.97 kB / 0.8844 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-05/2.594, allocations: 8.453 kB / 0.8844 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.712e-05/2.594, allocations: 20.23 kB / 0.8844 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04499/2.639, allocations: 14.69 MB / 0.8988 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.287e-05/2.64, allocations: 3.062 kB / 0.8988 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004672/2.644, allocations: 393.8 kB / 0.8992 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01181/2.656, allocations: 2.458 MB / 0.9016 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008859/2.657, allocations: 53.45 kB / 0.9016 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04892/2.706, allocations: 22.1 MB / 0.9232 GB, free: 90.83 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/2.706, allocations: 3.844 kB / 0.9232 GB, free: 90.83 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02514/2.731, allocations: 8.289 MB / 0.9313 GB, free: 87.76 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003957/2.735, allocations: 0.9992 MB / 0.9323 GB, free: 87.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001547/2.737, allocations: 42.28 kB / 0.9323 GB, free: 87.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004969/2.742, allocations: 214.1 kB / 0.9325 GB, free: 87.16 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001515/2.743, allocations: 191.9 kB / 0.9327 GB, free: 87.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004299/2.744, allocations: 74.22 kB / 0.9328 GB, free: 87.12 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006873/2.751, allocations: 2.619 MB / 0.9353 GB, free: 86.23 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.72e-07/2.751, allocations: 0 / 0.9353 GB, free: 86.23 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009241/2.76, allocations: 1.37 MB / 0.9367 GB, free: 86.07 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 182 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 16,(2,100.0%) 14,(3,88.9%) 13} * Non-linear torn systems: 1 {2 31} Notification: Performance of Backend phase and start with SimCode phase: time 0.02746/2.787, allocations: 9.778 MB / 0.9462 GB, free: 81.72 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02236/2.81, allocations: 8.74 MB / 0.9548 GB, free: 78.63 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/2.81, allocations: 0 / 0.9548 GB, free: 78.63 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01069/2.821, allocations: 4.004 MB / 0.9587 GB, free: 76.83 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004182/2.825, allocations: 444.1 kB / 0.9591 GB, free: 76.62 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5175/3.342, allocations: 133.1 MB / 1.089 GB, free: 120.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008049/3.351, allocations: 3.693 MB / 1.093 GB, free: 119.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006008/3.357, allocations: 2.143 MB / 1.095 GB, free: 119.4 MB / 0.5417 GB Notification: Performance of SimCode: time 1.713e-06/3.357, allocations: 0 / 1.095 GB, free: 119.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.427/8.784, allocations: 170.9 MB / 1.262 GB, free: 119.5 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_PlanarLoopWithMove_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_PlanarLoopWithMove.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove_res.mat does not exist to compare? outputFormat=mat