Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001165/0.001165, allocations: 95.95 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001112/0.001112, allocations: 200.5 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2267/0.2267, allocations: 45.91 MB / 344 MB, free: 12.08 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002673/0.0002673, allocations: 8 kB / 418.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1432, allocations: 63.46 MB / 481.5 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.3986/0.5419, allocations: 63.53 MB / 0.5323 GB, free: 9.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04425/0.5862, allocations: 14.95 MB / 0.5469 GB, free: 15.26 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01892/0.6052, allocations: 326.9 kB / 0.5472 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01343/0.6186, allocations: 3.184 MB / 0.5503 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04246/0.6611, allocations: 9.091 MB / 0.5592 GB, free: 6.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007837/0.669, allocations: 0.9022 MB / 0.5601 GB, free: 6.238 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.07447/0.7435, allocations: 49.16 MB / 0.6081 GB, free: 5.742 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01073/0.7543, allocations: 6.233 MB / 0.6142 GB, free: 15.46 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00317/0.7575, allocations: 1.46 MB / 0.6156 GB, free: 13.99 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003537/0.7611, allocations: 2.009 MB / 0.6175 GB, free: 11.97 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008105/0.7619, allocations: 204 kB / 0.6177 GB, free: 11.77 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002367/0.7643, allocations: 0.9598 MB / 0.6187 GB, free: 10.81 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002269/0.7666, allocations: 2.24 MB / 0.6209 GB, free: 8.566 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001655/0.7682, allocations: 1.174 MB / 0.622 GB, free: 7.383 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009667/0.7779, allocations: 7.97 MB / 0.6298 GB, free: 15.39 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.778, allocations: 0 / 0.6298 GB, free: 15.39 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.778, allocations: 0 / 0.6298 GB, free: 15.39 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0003288/0.7783, allocations: 4 kB / 0.6298 GB, free: 15.39 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.01861/0.7969, allocations: 6.263 MB / 0.6359 GB, free: 9.047 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.797, allocations: 15.97 kB / 0.6359 GB, free: 9.031 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003526/0.8005, allocations: 0.9499 MB / 0.6369 GB, free: 8.07 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1637/0.9643, allocations: 14.74 MB / 0.6513 GB, free: 9.309 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01279/0.9771, allocations: 4.608 MB / 0.6558 GB, free: 4.617 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003603/0.9775, allocations: 332.5 kB / 0.6561 GB, free: 4.289 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001959/0.9795, allocations: 451.5 kB / 0.6565 GB, free: 3.848 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02999/1.009, allocations: 13.3 MB / 0.6695 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004793/1.01, allocations: 63.42 kB / 0.6695 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002284/1.012, allocations: 211.8 kB / 0.6697 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005305/1.018, allocations: 2.59 MB / 0.6723 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02677/1.044, allocations: 11.45 MB / 0.6835 GB, free: 7.355 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4036/1.448, allocations: 52.97 MB / 0.7352 GB, free: 152 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01586/1.464, allocations: 5.709 MB / 0.7408 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009079/1.465, allocations: 0.6879 MB / 0.7414 GB, free: 149.7 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.716e-05/1.465, allocations: 65.19 kB / 0.7415 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 7.885e-06/1.465, allocations: 3.984 kB / 0.7415 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=315): time 0.1054/1.57, allocations: 36.2 MB / 0.7768 GB, free: 127.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.404e-05/1.571, allocations: 261.3 kB / 0.7771 GB, free: 126.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006789/1.577, allocations: 5.58 MB / 0.7825 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009555/1.578, allocations: 69.7 kB / 0.7826 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00202/1.58, allocations: 3.957 MB / 0.7865 GB, free: 117.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001444/1.582, allocations: 1.167 MB / 0.7876 GB, free: 116.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003835/1.582, allocations: 155.9 kB / 0.7878 GB, free: 116 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003029/1.583, allocations: 0.6263 MB / 0.7884 GB, free: 115.4 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004007/1.587, allocations: 3.376 MB / 0.7917 GB, free: 112 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006073/1.593, allocations: 7.53 MB / 0.799 GB, free: 102.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006484/1.599, allocations: 4.96 MB / 0.8039 GB, free: 97.51 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-05/1.599, allocations: 44 kB / 0.8039 GB, free: 97.46 MB / 0.5294 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.02304/1.622, allocations: 12.69 MB / 0.8163 GB, free: 84.72 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.592e-05/1.622, allocations: 71.95 kB / 0.8164 GB, free: 84.65 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001316/1.623, allocations: 144 kB / 0.8165 GB, free: 84.51 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004961/1.628, allocations: 2.268 MB / 0.8187 GB, free: 82.23 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005872/1.633, allocations: 1.716 MB / 0.8204 GB, free: 80.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01747/1.651, allocations: 15.76 MB / 0.8358 GB, free: 64.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007679/1.659, allocations: 455.3 kB / 0.8362 GB, free: 64.05 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00153/1.66, allocations: 439.9 kB / 0.8366 GB, free: 63.62 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.005415/1.666, allocations: 2.779 MB / 0.8394 GB, free: 60.83 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001179/1.667, allocations: 493.6 kB / 0.8398 GB, free: 60.34 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01094/1.678, allocations: 7.292 MB / 0.847 GB, free: 52.98 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.523e-05/1.678, allocations: 32 kB / 0.847 GB, free: 52.95 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.826e-05/1.678, allocations: 8 kB / 0.847 GB, free: 52.95 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.156e-05/1.678, allocations: 19.94 kB / 0.847 GB, free: 52.93 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0278/1.706, allocations: 16.4 MB / 0.863 GB, free: 36.44 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.788e-05/1.706, allocations: 8 kB / 0.863 GB, free: 36.43 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002496/1.708, allocations: 0.4993 MB / 0.8635 GB, free: 35.93 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004476/1.713, allocations: 2 MB / 0.8655 GB, free: 33.93 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005544/1.713, allocations: 61.48 kB / 0.8655 GB, free: 33.87 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01632/1.73, allocations: 14.25 MB / 0.8794 GB, free: 19.35 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/1.73, allocations: 11.94 kB / 0.8795 GB, free: 19.34 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0166/1.746, allocations: 12.5 MB / 0.8917 GB, free: 6.504 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001667/1.748, allocations: 0.5571 MB / 0.8922 GB, free: 5.922 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009822/1.749, allocations: 70.91 kB / 0.8923 GB, free: 5.855 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002491/1.752, allocations: 211.7 kB / 0.8925 GB, free: 5.648 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005451/1.752, allocations: 205.6 kB / 0.8927 GB, free: 5.449 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002567/1.752, allocations: 84 kB / 0.8928 GB, free: 5.367 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004751/1.757, allocations: 3.584 MB / 0.8963 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.41e-07/1.757, allocations: 0 / 0.8963 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007063/1.764, allocations: 1.501 MB / 0.8977 GB, free: 312 kB / 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.02033/1.785, allocations: 14.5 MB / 0.9119 GB, free: 1.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.3107/2.095, allocations: 8.398 MB / 0.9201 GB, free: 187.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/2.095, allocations: 2.25 kB / 0.9201 GB, free: 187.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.009544/2.105, allocations: 4.053 MB / 0.924 GB, free: 186.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004467/2.11, allocations: 0.623 MB / 0.9247 GB, free: 186.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1321/2.242, allocations: 154.9 MB / 1.076 GB, free: 43.18 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007526/2.249, allocations: 4.448 MB / 1.08 GB, free: 38.69 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00632/2.256, allocations: 2.481 MB / 1.083 GB, free: 36.21 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004248/2.26, allocations: 2.745 MB / 1.085 GB, free: 33.46 MB / 0.545 GB Notification: Performance of SimCode: time 1.432e-06/2.26, allocations: 4 kB / 1.085 GB, free: 33.46 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.488/2.748, allocations: 120.2 MB / 1.203 GB, free: 118.3 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001563/2.748, allocations: 201.4 kB / 1.203 GB, free: 118 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.363/8.111, allocations: 3.625 kB / 1.203 GB, free: 118 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat