Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001074, allocations: 97.38 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 170.5 kB / 16.57 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.551/1.551, allocations: 205.4 MB / 222.7 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3517/0.3517, allocations: 43.54 MB / 314.5 MB, free: 9.02 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006923/0.0006925, allocations: 14.97 kB / 384 MB, free: 8.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1431, allocations: 58.86 MB / 442.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.3448/0.488, allocations: 63.87 MB / 0.4948 GB, free: 9.453 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0477/0.5358, allocations: 14.99 MB / 0.5095 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02059/0.5564, allocations: 327.8 kB / 0.5098 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01646/0.5729, allocations: 3.192 MB / 0.5129 GB, free: 14.11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04543/0.6184, allocations: 9.142 MB / 0.5218 GB, free: 9.719 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006588/0.625, allocations: 0.9125 MB / 0.5227 GB, free: 9.336 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.04687/0.672, allocations: 27.36 MB / 0.5495 GB, free: 2.871 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01246/0.6845, allocations: 6.307 MB / 0.5556 GB, free: 12.54 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005164/0.6897, allocations: 1.514 MB / 0.5571 GB, free: 11.02 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005057/0.6948, allocations: 2.072 MB / 0.5591 GB, free: 8.941 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001564/0.6964, allocations: 208 kB / 0.5593 GB, free: 8.738 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003499/0.6999, allocations: 0.9715 MB / 0.5603 GB, free: 7.766 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003212/0.7032, allocations: 2.295 MB / 0.5625 GB, free: 5.465 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002991/0.7062, allocations: 1.201 MB / 0.5637 GB, free: 4.254 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01474/0.7209, allocations: 8.175 MB / 0.5717 GB, free: 12.06 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.721, allocations: 0 / 0.5717 GB, free: 12.06 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.721, allocations: 0 / 0.5717 GB, free: 12.06 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004039/0.7214, allocations: 0 / 0.5717 GB, free: 12.06 MB / 446.1 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.02092/0.7424, allocations: 6.35 MB / 0.5779 GB, free: 5.629 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.973e-05/0.7424, allocations: 15.97 kB / 0.5779 GB, free: 5.613 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004953/0.7474, allocations: 0.9591 MB / 0.5788 GB, free: 4.645 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1753/0.9227, allocations: 14.76 MB / 0.5932 GB, free: 5.855 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0153/0.9381, allocations: 4.979 MB / 0.5981 GB, free: 0.7969 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004912/0.9386, allocations: 332.6 kB / 0.5984 GB, free: 480 kB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002544/0.9412, allocations: 463.5 kB / 0.5989 GB, free: 16 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03446/0.9757, allocations: 13.6 MB / 0.6121 GB, free: 1.539 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000251/0.976, allocations: 67.38 kB / 0.6122 GB, free: 1.473 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006574/0.9767, allocations: 211.8 kB / 0.6124 GB, free: 1.266 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005171/0.9818, allocations: 2.648 MB / 0.615 GB, free: 14.62 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02987/1.012, allocations: 11.74 MB / 0.6264 GB, free: 2.859 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3958/1.408, allocations: 53.87 MB / 0.6791 GB, free: 103.4 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01533/1.423, allocations: 5.825 MB / 0.6847 GB, free: 101.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009563/1.424, allocations: 0.6925 MB / 0.6854 GB, free: 100.6 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.428e-05/1.424, allocations: 62.53 kB / 0.6855 GB, free: 100.6 MB / 494.1 MB Notification: Performance of pre-optimization done (n=254): time 5.651e-06/1.424, allocations: 0 / 0.6855 GB, free: 100.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=324): time 0.1053/1.529, allocations: 36.77 MB / 0.7214 GB, free: 81.86 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/1.53, allocations: 273.4 kB / 0.7216 GB, free: 81.53 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008647/1.538, allocations: 5.68 MB / 0.7272 GB, free: 75.87 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001257/1.54, allocations: 73.7 kB / 0.7273 GB, free: 75.79 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002805/1.542, allocations: 4.041 MB / 0.7312 GB, free: 71.75 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002005/1.544, allocations: 1.203 MB / 0.7324 GB, free: 70.55 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004964/1.545, allocations: 157.8 kB / 0.7325 GB, free: 70.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003469/1.545, allocations: 0.6324 MB / 0.7332 GB, free: 69.77 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004355/1.55, allocations: 3.439 MB / 0.7365 GB, free: 66.32 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00639/1.556, allocations: 7.667 MB / 0.744 GB, free: 56.58 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007164/1.563, allocations: 5.063 MB / 0.7489 GB, free: 51.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.937e-05/1.563, allocations: 44 kB / 0.749 GB, free: 51.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.02631/1.59, allocations: 12.9 MB / 0.7616 GB, free: 38.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000144/1.59, allocations: 68 kB / 0.7616 GB, free: 38.44 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003147/1.59, allocations: 152 kB / 0.7618 GB, free: 38.29 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005581/1.596, allocations: 2.259 MB / 0.764 GB, free: 36.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006709/1.603, allocations: 1.766 MB / 0.7657 GB, free: 34.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01781/1.62, allocations: 15.77 MB / 0.7811 GB, free: 18.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008296/1.629, allocations: 459.3 kB / 0.7816 GB, free: 17.78 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001985/1.631, allocations: 459.9 kB / 0.782 GB, free: 17.33 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 672 * 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.007891/1.639, allocations: 2.829 MB / 0.7848 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001522/1.64, allocations: 0.4937 MB / 0.7852 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01223/1.652, allocations: 7.412 MB / 0.7925 GB, free: 6.504 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.26e-05/1.653, allocations: 34.73 kB / 0.7925 GB, free: 6.473 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.293e-05/1.653, allocations: 12 kB / 0.7925 GB, free: 6.461 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.545e-05/1.653, allocations: 15.94 kB / 0.7925 GB, free: 6.445 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04005/1.693, allocations: 16.68 MB / 0.8088 GB, free: 5.695 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.032e-05/1.693, allocations: 11.95 kB / 0.8088 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003095/1.696, allocations: 0.5148 MB / 0.8093 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005793/1.702, allocations: 1.999 MB / 0.8113 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001191/1.703, allocations: 63.98 kB / 0.8114 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02411/1.727, allocations: 14.23 MB / 0.8253 GB, free: 4.598 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-05/1.727, allocations: 12 kB / 0.8253 GB, free: 4.586 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3845/2.112, allocations: 12.69 MB / 0.8377 GB, free: 156.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004508/2.116, allocations: 1.105 MB / 0.8387 GB, free: 156 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001678/2.118, allocations: 62.34 kB / 0.8388 GB, free: 156 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003464/2.121, allocations: 224.1 kB / 0.839 GB, free: 156 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000676/2.122, allocations: 212.7 kB / 0.8392 GB, free: 156 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002423/2.122, allocations: 84.84 kB / 0.8393 GB, free: 156 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006527/2.129, allocations: 3.656 MB / 0.8429 GB, free: 155.6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6.51e-07/2.129, allocations: 3.031 kB / 0.8429 GB, free: 155.6 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01049/2.139, allocations: 1.534 MB / 0.8444 GB, free: 155.4 MB / 0.5137 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 (263): * Single equations (assignments): 258 * 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.02155/2.161, allocations: 14.7 MB / 0.8587 GB, free: 147.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01817/2.179, allocations: 8.56 MB / 0.8671 GB, free: 144.6 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/2.179, allocations: 1.469 kB / 0.8671 GB, free: 144.6 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.01017/2.189, allocations: 4.103 MB / 0.8711 GB, free: 143.1 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005463/2.195, allocations: 0.6245 MB / 0.8717 GB, free: 142.9 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4246/2.62, allocations: 158.6 MB / 1.027 GB, free: 155.3 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007709/2.627, allocations: 4.541 MB / 1.031 GB, free: 154.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007204/2.635, allocations: 2.524 MB / 1.034 GB, free: 154.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006384/2.641, allocations: 2.83 MB / 1.036 GB, free: 154.3 MB / 0.5137 GB Notification: Performance of SimCode: time 2.033e-06/2.641, allocations: 3.562 kB / 1.036 GB, free: 154.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.226/2.867, allocations: 122.3 MB / 1.156 GB, free: 61.04 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001914/2.867, allocations: 197.3 kB / 1.156 GB, free: 60.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.685/8.552, allocations: 0 / 1.156 GB, free: 60.8 MB / 0.5137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat