Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_0_0_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.0009402/0.0009401, allocations: 97.47 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 189.2 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 223.3 MB / 241.9 MB, free: 14.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2281/0.2281, allocations: 44.22 MB / 337.2 MB, free: 2.57 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003258/0.0003259, allocations: 11.98 kB / 409.7 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1402, allocations: 61.92 MB / 471.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.3865/0.5268, allocations: 67.35 MB / 0.5264 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04105/0.5679, allocations: 14.26 MB / 0.5403 GB, free: 6.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01971/0.5876, allocations: 328 kB / 0.5406 GB, free: 6.699 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01439/0.6021, allocations: 3.523 MB / 0.544 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03585/0.638, allocations: 10.31 MB / 0.5541 GB, free: 14.19 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008124/0.6461, allocations: 0.9179 MB / 0.555 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.08606/0.7322, allocations: 62.89 MB / 0.6164 GB, free: 336 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01253/0.7448, allocations: 6.288 MB / 0.6226 GB, free: 9.98 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004987/0.7498, allocations: 1.79 MB / 0.6243 GB, free: 8.184 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005663/0.7555, allocations: 2.831 MB / 0.6271 GB, free: 5.344 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002113/0.7577, allocations: 208 kB / 0.6273 GB, free: 5.141 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004592/0.7623, allocations: 0.9948 MB / 0.6282 GB, free: 4.145 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005172/0.7675, allocations: 2.415 MB / 0.6306 GB, free: 1.723 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003741/0.7713, allocations: 1.174 MB / 0.6317 GB, free: 0.5391 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01271/0.784, allocations: 7.98 MB / 0.6395 GB, free: 8.539 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.082e-05/0.7841, allocations: 0 / 0.6395 GB, free: 8.539 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.7841, allocations: 0 / 0.6395 GB, free: 8.539 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.000468/0.7846, allocations: 0 / 0.6395 GB, free: 8.539 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.01927/0.8039, allocations: 6.002 MB / 0.6454 GB, free: 2.457 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/0.8039, allocations: 8.031 kB / 0.6454 GB, free: 2.449 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003897/0.8078, allocations: 0.9422 MB / 0.6463 GB, free: 1.496 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1315/0.9394, allocations: 12.87 MB / 0.6589 GB, free: 4.598 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01467/0.9541, allocations: 5.224 MB / 0.664 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004592/0.9546, allocations: 328.5 kB / 0.6643 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002422/0.9571, allocations: 451.5 kB / 0.6647 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.031/0.9881, allocations: 13.14 MB / 0.6776 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004459/0.9886, allocations: 63.42 kB / 0.6776 GB, free: 464 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002036/0.9907, allocations: 207.8 kB / 0.6778 GB, free: 256 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00501/0.9957, allocations: 2.586 MB / 0.6804 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02652/1.022, allocations: 11.25 MB / 0.6913 GB, free: 2.395 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4074/1.43, allocations: 52.82 MB / 0.7429 GB, free: 158.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01419/1.444, allocations: 5.518 MB / 0.7483 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004342/1.448, allocations: 3.375 MB / 0.7516 GB, free: 155.1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006601/1.449, allocations: 0.688 MB / 0.7523 GB, free: 154.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/1.449, allocations: 56.25 kB / 0.7523 GB, free: 154.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 7.033e-06/1.449, allocations: 3.969 kB / 0.7523 GB, free: 154.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=315): time 0.09611/1.545, allocations: 35.06 MB / 0.7866 GB, free: 129.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/1.545, allocations: 267.5 kB / 0.7868 GB, free: 129.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01004/1.556, allocations: 5.226 MB / 0.7919 GB, free: 124.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000973/1.557, allocations: 69.7 kB / 0.792 GB, free: 124.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00304/1.56, allocations: 3.968 MB / 0.7959 GB, free: 120.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00215/1.562, allocations: 1.167 MB / 0.797 GB, free: 118.9 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001269/1.563, allocations: 152 kB / 0.7972 GB, free: 118.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0007613/1.564, allocations: 0.6204 MB / 0.7978 GB, free: 118.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005983/1.57, allocations: 3.378 MB / 0.8011 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008495/1.578, allocations: 7.557 MB / 0.8085 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008033/1.586, allocations: 4.965 MB / 0.8133 GB, free: 100.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001505/1.587, allocations: 40 kB / 0.8133 GB, free: 100.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.02525/1.612, allocations: 12.7 MB / 0.8257 GB, free: 87.43 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001783/1.612, allocations: 68 kB / 0.8258 GB, free: 87.37 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002747/1.612, allocations: 146.3 kB / 0.8259 GB, free: 87.23 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005502/1.618, allocations: 2.259 MB / 0.8281 GB, free: 84.96 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006096/1.624, allocations: 1.727 MB / 0.8298 GB, free: 83.23 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01861/1.643, allocations: 15.27 MB / 0.8447 GB, free: 67.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008183/1.651, allocations: 451.3 kB / 0.8452 GB, free: 67.27 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002066/1.653, allocations: 450.5 kB / 0.8456 GB, free: 66.83 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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 (909): * Single equations (assignments): 904 * 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.008227/1.661, allocations: 2.76 MB / 0.8483 GB, free: 64.05 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002029/1.663, allocations: 493.6 kB / 0.8488 GB, free: 63.57 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01472/1.678, allocations: 7.292 MB / 0.8559 GB, free: 56.21 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.35e-05/1.678, allocations: 32 kB / 0.8559 GB, free: 56.18 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.844e-05/1.678, allocations: 19.95 kB / 0.8559 GB, free: 56.16 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.251e-05/1.678, allocations: 15.94 kB / 0.856 GB, free: 56.14 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03422/1.713, allocations: 16.39 MB / 0.872 GB, free: 39.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.296e-05/1.713, allocations: 8 kB / 0.872 GB, free: 39.66 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002627/1.715, allocations: 0.4953 MB / 0.8725 GB, free: 39.16 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004986/1.72, allocations: 2.007 MB / 0.8744 GB, free: 37.16 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008511/1.721, allocations: 63.98 kB / 0.8745 GB, free: 37.09 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01935/1.741, allocations: 13.75 MB / 0.8879 GB, free: 23.08 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.456e-06/1.741, allocations: 7.938 kB / 0.8879 GB, free: 23.07 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01852/1.759, allocations: 11.62 MB / 0.8993 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00179/1.761, allocations: 0.5377 MB / 0.8998 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001811/1.763, allocations: 67.94 kB / 0.8998 GB, free: 10.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003556/1.766, allocations: 218.2 kB / 0.9001 GB, free: 10.42 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009025/1.767, allocations: 197.7 kB / 0.9002 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00045/1.768, allocations: 91.92 kB / 0.9003 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006829/1.775, allocations: 3.303 MB / 0.9036 GB, free: 6.852 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.81e-07/1.775, allocations: 0 / 0.9036 GB, free: 6.852 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008929/1.784, allocations: 1.479 MB / 0.905 GB, free: 5.375 MB / 0.5294 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 (253): * Single equations (assignments): 248 * 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.3378/2.122, allocations: 12.32 MB / 0.917 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01637/2.138, allocations: 8.41 MB / 0.9252 GB, free: 170.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.378e-05/2.138, allocations: 5.656 kB / 0.9253 GB, free: 170.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007263/2.145, allocations: 4.05 MB / 0.9292 GB, free: 169.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004352/2.15, allocations: 0.6816 MB / 0.9299 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1275/2.277, allocations: 55.13 MB / 0.9837 GB, free: 122.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01044/2.288, allocations: 4.328 MB / 0.9879 GB, free: 118.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.01082/2.298, allocations: 2.465 MB / 0.9903 GB, free: 116.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006821/2.305, allocations: 2.745 MB / 0.993 GB, free: 113.3 MB / 0.5294 GB Notification: Performance of SimCode: time 1.964e-06/2.305, allocations: 0 / 0.993 GB, free: 113.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5054/2.811, allocations: 119.2 MB / 1.109 GB, free: 154.2 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002046/2.811, allocations: 210.7 kB / 1.11 GB, free: 153.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.469/8.28, allocations: 0 / 1.11 GB, free: 153.9 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat