Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.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.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2",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.001644/0.001643, allocations: 186.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.233/2.233, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001165/0.001164, allocations: 110.8 kB / 270.9 MB, free: 8.363 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.5396/0.5396, allocations: 43.55 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004987/0.0004985, allocations: 20 kB / 431.5 MB, free: 6.066 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1365, allocations: 58.85 MB / 490.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5164/0.653, allocations: 109 MB / 0.5853 GB, free: 9.441 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003018/0.6534, allocations: 79.95 kB / 0.5854 GB, free: 9.363 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8583/1.512, allocations: 119 MB / 0.7016 GB, free: 86.29 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.255e-06/1.512, allocations: 0 / 0.7016 GB, free: 86.29 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004453/1.512, allocations: 116.9 kB / 0.7017 GB, free: 86.29 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: 2030 * Number of variables: 2030 Notification: Performance of Generate backend data structure: time 0.02829/1.541, allocations: 6.462 MB / 0.708 GB, free: 83.72 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/1.541, allocations: 9.375 kB / 0.708 GB, free: 83.72 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005056/1.546, allocations: 1.011 MB / 0.709 GB, free: 83.64 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05146/1.597, allocations: 6.997 MB / 0.7159 GB, free: 83.22 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03086/1.628, allocations: 7.857 MB / 0.7235 GB, free: 82.35 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006799/1.629, allocations: 447.4 kB / 0.724 GB, free: 82.34 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003577/1.632, allocations: 0.5786 MB / 0.7245 GB, free: 82.33 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04359/1.676, allocations: 13.95 MB / 0.7381 GB, free: 77.48 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005784/1.677, allocations: 88.48 kB / 0.7382 GB, free: 77.46 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003078/1.68, allocations: 277.5 kB / 0.7385 GB, free: 77.31 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00286/1.683, allocations: 1.325 MB / 0.7398 GB, free: 77.05 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03608/1.719, allocations: 11.71 MB / 0.7512 GB, free: 73.29 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09574/1.815, allocations: 62.17 MB / 0.8119 GB, free: 27.53 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02373/1.838, allocations: 5.76 MB / 0.8176 GB, free: 23.71 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001021/1.84, allocations: 0.6933 MB / 0.8182 GB, free: 22.97 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.902e-05/1.84, allocations: 56.56 kB / 0.8183 GB, free: 22.91 MB / 490.7 MB Notification: Performance of pre-optimization done (n=254): time 6.603e-06/1.84, allocations: 0 / 0.8183 GB, free: 22.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=320): time 0.1651/2.005, allocations: 34.24 MB / 0.8517 GB, free: 5.449 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001856/2.005, allocations: 273.2 kB / 0.852 GB, free: 5.125 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0142/2.019, allocations: 4.69 MB / 0.8566 GB, free: 464 kB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009595/2.02, allocations: 81.47 kB / 0.8566 GB, free: 380 kB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005111/2.025, allocations: 3.893 MB / 0.8604 GB, free: 12.53 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002393/2.028, allocations: 1.186 MB / 0.8616 GB, free: 11.36 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001389/2.029, allocations: 159.9 kB / 0.8618 GB, free: 11.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0008446/2.03, allocations: 0.6294 MB / 0.8624 GB, free: 10.56 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009844/2.04, allocations: 3.326 MB / 0.8656 GB, free: 7.234 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4461/2.486, allocations: 7.57 MB / 0.873 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02049/2.507, allocations: 4.937 MB / 0.8778 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002806/2.507, allocations: 43.09 kB / 0.8779 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.05153/2.559, allocations: 12.43 MB / 0.89 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002479/2.559, allocations: 67.31 kB / 0.8901 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004465/2.559, allocations: 149.6 kB / 0.8902 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009625/2.569, allocations: 2.15 MB / 0.8923 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01188/2.581, allocations: 1.764 MB / 0.894 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03142/2.612, allocations: 14.81 MB / 0.9085 GB, free: 99.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01056/2.623, allocations: 455 kB / 0.9089 GB, free: 99.57 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00277/2.626, allocations: 454.8 kB / 0.9094 GB, free: 99.52 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 676 * Number of states: 0 () * Number of discrete variables: 42 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (931): * Single equations (assignments): 926 * 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 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01097/2.637, allocations: 2.824 MB / 0.9121 GB, free: 98.28 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001913/2.639, allocations: 0.4935 MB / 0.9126 GB, free: 98.28 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02611/2.665, allocations: 7.09 MB / 0.9195 GB, free: 95.55 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-05/2.665, allocations: 33.17 kB / 0.9196 GB, free: 95.55 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.938e-05/2.665, allocations: 12.09 kB / 0.9196 GB, free: 95.55 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001045/2.665, allocations: 14.3 kB / 0.9196 GB, free: 95.55 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0479/2.713, allocations: 16.08 MB / 0.9353 GB, free: 89.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.493e-05/2.713, allocations: 7.344 kB / 0.9353 GB, free: 89.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005016/2.718, allocations: 0.5074 MB / 0.9358 GB, free: 89.37 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008593/2.727, allocations: 1.877 MB / 0.9376 GB, free: 88.93 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000937/2.728, allocations: 62.98 kB / 0.9377 GB, free: 88.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02922/2.757, allocations: 13.32 MB / 0.9507 GB, free: 82.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.457e-06/2.757, allocations: 11.81 kB / 0.9507 GB, free: 82.25 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02964/2.787, allocations: 12.18 MB / 0.9626 GB, free: 76.54 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004229/2.791, allocations: 1.058 MB / 0.9636 GB, free: 75.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001912/2.793, allocations: 61.97 kB / 0.9637 GB, free: 75.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005591/2.799, allocations: 213.9 kB / 0.9639 GB, free: 75.85 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001317/2.8, allocations: 209.9 kB / 0.9641 GB, free: 75.81 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004007/2.801, allocations: 90.7 kB / 0.9642 GB, free: 75.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009057/2.81, allocations: 3.333 MB / 0.9674 GB, free: 74.69 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.72e-07/2.81, allocations: 0 / 0.9674 GB, free: 74.69 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01065/2.82, allocations: 1.495 MB / 0.9689 GB, free: 74.52 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (259): * Single equations (assignments): 254 * 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 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03128/2.852, allocations: 14.18 MB / 0.9827 GB, free: 66.82 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02018/2.872, allocations: 8.288 MB / 0.9908 GB, free: 60.29 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/2.872, allocations: 0 / 0.9908 GB, free: 60.29 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01294/2.885, allocations: 3.93 MB / 0.9947 GB, free: 56.96 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006252/2.891, allocations: 0.6274 MB / 0.9953 GB, free: 56.43 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5375/3.429, allocations: 157.7 MB / 1.149 GB, free: 46.86 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01144/3.44, allocations: 4.533 MB / 1.154 GB, free: 46.01 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007995/3.448, allocations: 2.854 MB / 1.156 GB, free: 46.01 MB / 0.5261 GB Notification: Performance of SimCode: time 2.334e-06/3.449, allocations: 0 / 1.156 GB, free: 46.01 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.487/8.935, allocations: 167.6 MB / 1.32 GB, free: 129.4 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat