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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 109.2 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 213.4 kB / 23.74 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.468/1.468, allocations: 230.6 MB / 257.5 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2387/0.2387, allocations: 44.91 MB / 358.8 MB, free: 6.309 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002207/0.002207, allocations: 67.89 kB / 0.4931 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.3428, allocations: 65.47 MB / 0.557 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01736/0.3602, allocations: 14.75 MB / 0.5714 GB, free: 8.957 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01091/0.3711, allocations: 5.05 MB / 0.5764 GB, free: 3.891 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002377/0.3735, allocations: 119.4 kB / 0.5765 GB, free: 3.773 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008536/0.382, allocations: 4.213 MB / 0.5806 GB, free: 15.55 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006476/0.3885, allocations: 2.389 MB / 0.5829 GB, free: 13.15 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002725/0.3912, allocations: 1.08 MB / 0.584 GB, free: 12.07 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01079/0.402, allocations: 7.177 MB / 0.591 GB, free: 4.875 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006548/0.4086, allocations: 4.052 MB / 0.595 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005158/0.4137, allocations: 2.278 MB / 0.5972 GB, free: 14.47 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006129/0.4199, allocations: 3.279 MB / 0.6004 GB, free: 11.18 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002074/0.4219, allocations: 500 kB / 0.6009 GB, free: 10.69 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004422/0.4264, allocations: 1.397 MB / 0.6022 GB, free: 9.293 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00458/0.4309, allocations: 2.816 MB / 0.605 GB, free: 6.469 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006212/0.4371, allocations: 3.271 MB / 0.6082 GB, free: 3.18 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01411/0.4512, allocations: 10.14 MB / 0.6181 GB, free: 8.992 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.4513, allocations: 0 / 0.6181 GB, free: 8.992 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.4513, allocations: 0 / 0.6181 GB, free: 8.992 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003592/0.4516, allocations: 0 / 0.6181 GB, free: 8.992 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1953 * Number of variables: 1953 Notification: Performance of Generate backend data structure: time 0.02106/0.4727, allocations: 7.238 MB / 0.6251 GB, free: 1.68 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.4727, allocations: 8.031 kB / 0.6252 GB, free: 1.672 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001808/0.4745, allocations: 0.93 MB / 0.6261 GB, free: 0.7305 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1604/0.6349, allocations: 12.55 MB / 0.6383 GB, free: 4.164 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01399/0.6489, allocations: 4.994 MB / 0.6432 GB, free: 15.08 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003331/0.6492, allocations: 328.5 kB / 0.6435 GB, free: 14.75 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001696/0.6509, allocations: 451.7 kB / 0.6439 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02829/0.6792, allocations: 12.96 MB / 0.6566 GB, free: 492 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000324/0.6795, allocations: 75.41 kB / 0.6567 GB, free: 416 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008544/0.6804, allocations: 203.8 kB / 0.6569 GB, free: 212 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005013/0.6854, allocations: 2.523 MB / 0.6593 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02612/0.7115, allocations: 11.13 MB / 0.6702 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07926/0.7908, allocations: 52.04 MB / 0.721 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01403/0.8048, allocations: 4.888 MB / 0.7258 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004771/0.8096, allocations: 3.115 MB / 0.7288 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000605/0.8102, allocations: 249.5 kB / 0.7291 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.055e-05/0.8103, allocations: 68.48 kB / 0.7291 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=245): time 5.34e-06/0.8103, allocations: 4 kB / 0.7291 GB, free: 4.598 MB / 0.5606 GB Notification: Performance of matching and sorting (n=315): time 0.3439/1.154, allocations: 34.68 MB / 0.763 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.297e-05/1.154, allocations: 277.2 kB / 0.7633 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005757/1.16, allocations: 5.196 MB / 0.7683 GB, free: 137 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005434/1.161, allocations: 69.7 kB / 0.7684 GB, free: 136.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001647/1.162, allocations: 4.068 MB / 0.7724 GB, free: 133.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001014/1.163, allocations: 1.226 MB / 0.7736 GB, free: 132.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001745/1.165, allocations: 1.524 MB / 0.7751 GB, free: 130.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.842e-05/1.165, allocations: 301.1 kB / 0.7754 GB, free: 130.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003678/1.169, allocations: 3.411 MB / 0.7787 GB, free: 126.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004966/1.174, allocations: 7.559 MB / 0.7861 GB, free: 117.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01003/1.184, allocations: 11.85 MB / 0.7976 GB, free: 103.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001142/1.184, allocations: 40 kB / 0.7977 GB, free: 103.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02111/1.205, allocations: 12.72 MB / 0.8101 GB, free: 90.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.543e-05/1.205, allocations: 71.94 kB / 0.8102 GB, free: 90.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001213/1.205, allocations: 144 kB / 0.8103 GB, free: 90.39 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004656/1.21, allocations: 2.239 MB / 0.8125 GB, free: 88.14 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005253/1.215, allocations: 1.719 MB / 0.8142 GB, free: 86.42 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01608/1.231, allocations: 16.2 MB / 0.83 GB, free: 70.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006083/1.237, allocations: 447.4 kB / 0.8304 GB, free: 69.57 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001247/1.238, allocations: 447.9 kB / 0.8308 GB, free: 69.14 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 656 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.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 (906): * Single equations (assignments): 901 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,24,100.0%), (3,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004424/1.243, allocations: 2.739 MB / 0.8335 GB, free: 66.38 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009691/1.244, allocations: 0.5045 MB / 0.834 GB, free: 65.88 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01098/1.255, allocations: 7.268 MB / 0.8411 GB, free: 58.54 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.973e-05/1.255, allocations: 32 kB / 0.8411 GB, free: 58.51 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.905e-05/1.255, allocations: 12 kB / 0.8412 GB, free: 58.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.851e-05/1.255, allocations: 16.45 kB / 0.8412 GB, free: 58.48 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02455/1.279, allocations: 16.04 MB / 0.8568 GB, free: 42.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.133e-05/1.279, allocations: 8 kB / 0.8568 GB, free: 42.35 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002219/1.282, allocations: 0.4953 MB / 0.8573 GB, free: 41.86 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004428/1.286, allocations: 2.003 MB / 0.8593 GB, free: 39.85 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003022/1.286, allocations: 67.98 kB / 0.8593 GB, free: 39.78 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01634/1.303, allocations: 14.69 MB / 0.8737 GB, free: 24.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/1.303, allocations: 15.94 kB / 0.8737 GB, free: 24.87 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01511/1.318, allocations: 11.66 MB / 0.8851 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001525/1.319, allocations: 488.4 kB / 0.8856 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007338/1.32, allocations: 71.81 kB / 0.8856 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002242/1.322, allocations: 207.7 kB / 0.8858 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005338/1.323, allocations: 221.2 kB / 0.886 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002139/1.323, allocations: 84 kB / 0.8861 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004044/1.327, allocations: 3.29 MB / 0.8893 GB, free: 8.684 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/1.327, allocations: 288 / 0.8893 GB, free: 8.684 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006248/1.333, allocations: 1.465 MB / 0.8908 GB, free: 7.219 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,17,46.9%), (7,17,46.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0171/1.351, allocations: 12.37 MB / 0.9028 GB, free: 10.64 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01439/1.365, allocations: 8.108 MB / 0.9108 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/1.365, allocations: 4 kB / 0.9108 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.008294/1.373, allocations: 3.871 MB / 0.9145 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004727/1.378, allocations: 0.7037 MB / 0.9152 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3945/1.772, allocations: 68.26 MB / 0.9819 GB, free: 233 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007102/1.78, allocations: 4.28 MB / 0.9861 GB, free: 232.1 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.005663/1.785, allocations: 2.458 MB / 0.9885 GB, free: 232.1 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004528/1.79, allocations: 2.708 MB / 0.9911 GB, free: 232 MB / 0.6544 GB Notification: Performance of SimCode: time 1.342e-06/1.79, allocations: 0 / 0.9911 GB, free: 232 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1857/1.975, allocations: 119.2 MB / 1.108 GB, free: 126 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.37/26.35, allocations: 4.062 kB / 1.108 GB, free: 126 MB / 0.6544 GB " [Timeout remaining time 633] (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/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 --stepSize=0.00039984 --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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 29.45713416999206] Failed to read output from testmodel.py, exit status != 0: ['time', 'freeMotion.r_rel_a[1]', 'freeMotion.v_rel_a[1]', 'prismatic1.s', 'prismatic1.v', 'universal.phi_a', 'universal.phi_b', 'universal.w_a', 'universal.w_b', 'universal1.phi_a', 'universal1.phi_b', 'universal1.w_a', 'universal1.w_b'] 26.532166080083698 26.549964613 26.094657199 Calling exit ...