Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001312/0.001312, allocations: 116.5 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001425/0.001425, allocations: 216.9 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 230.2 MB / 254.5 MB, free: 15.43 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2428/0.2428, allocations: 46.89 MB / 357.4 MB, free: 10.52 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002338/0.002338, allocations: 86.58 kB / 0.4912 GB, free: 26.95 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1384, allocations: 65.98 MB / 0.5557 GB, free: 9.125 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01845/0.1569, allocations: 14.73 MB / 0.5701 GB, free: 10.32 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01198/0.1688, allocations: 5.027 MB / 0.575 GB, free: 5.273 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003715/0.1726, allocations: 99.69 kB / 0.5751 GB, free: 5.176 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009126/0.1817, allocations: 4.189 MB / 0.5791 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007615/0.1893, allocations: 2.381 MB / 0.5815 GB, free: 14.58 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003223/0.1925, allocations: 1.076 MB / 0.5825 GB, free: 13.5 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01152/0.204, allocations: 7.151 MB / 0.5895 GB, free: 6.34 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007399/0.2114, allocations: 4.304 MB / 0.5937 GB, free: 1.973 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004225/0.2157, allocations: 2.255 MB / 0.5959 GB, free: 15.71 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005742/0.2214, allocations: 3.279 MB / 0.5991 GB, free: 12.42 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001799/0.2232, allocations: 496 kB / 0.5996 GB, free: 11.94 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00364/0.2268, allocations: 1.397 MB / 0.6009 GB, free: 10.54 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003838/0.2307, allocations: 2.816 MB / 0.6037 GB, free: 7.715 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005238/0.2359, allocations: 3.271 MB / 0.6069 GB, free: 4.426 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3113/0.5472, allocations: 10.14 MB / 0.6168 GB, free: 19.36 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.054e-06/0.5472, allocations: 0.75 kB / 0.6168 GB, free: 19.36 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.5472, allocations: 0 / 0.6168 GB, free: 19.36 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004476/0.5477, allocations: 0.7188 kB / 0.6168 GB, free: 19.36 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.02997/0.5776, allocations: 7.303 MB / 0.6239 GB, free: 16.62 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.766e-05/0.5777, allocations: 9.469 kB / 0.6239 GB, free: 16.62 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004568/0.5822, allocations: 0.9283 MB / 0.6248 GB, free: 16.54 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1526/0.7348, allocations: 12.56 MB / 0.6371 GB, free: 15.12 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01524/0.75, allocations: 5.081 MB / 0.6421 GB, free: 13.42 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003201/0.7504, allocations: 326.5 kB / 0.6424 GB, free: 13.39 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002484/0.7528, allocations: 450.8 kB / 0.6428 GB, free: 13.27 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02755/0.7804, allocations: 12.96 MB / 0.6555 GB, free: 5.332 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00029/0.7807, allocations: 71.84 kB / 0.6555 GB, free: 5.285 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001092/0.7818, allocations: 203 kB / 0.6557 GB, free: 5.129 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003906/0.7857, allocations: 2.533 MB / 0.6582 GB, free: 2.633 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0254/0.8111, allocations: 11.13 MB / 0.6691 GB, free: 7.73 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08776/0.8988, allocations: 52.19 MB / 0.72 GB, free: 2.824 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01401/0.9128, allocations: 5.332 MB / 0.7252 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004764/0.9176, allocations: 3.091 MB / 0.7283 GB, free: 10.26 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008665/0.9185, allocations: 0.6892 MB / 0.7289 GB, free: 9.48 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.077e-05/0.9185, allocations: 63.66 kB / 0.729 GB, free: 9.41 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 5.53e-06/0.9185, allocations: 0 / 0.729 GB, free: 9.41 MB / 0.5294 GB Notification: Performance of matching and sorting (n=315): time 0.1094/1.028, allocations: 35.28 MB / 0.7634 GB, free: 6.109 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002052/1.028, allocations: 269.3 kB / 0.7637 GB, free: 5.789 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01053/1.039, allocations: 5.198 MB / 0.7688 GB, free: 0.6055 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009643/1.04, allocations: 69.7 kB / 0.7688 GB, free: 0.5312 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.004582/1.044, allocations: 4.072 MB / 0.7728 GB, free: 12.53 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.00235/1.047, allocations: 1.229 MB / 0.774 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00335/1.05, allocations: 1.52 MB / 0.7755 GB, free: 9.789 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001871/1.05, allocations: 305.1 kB / 0.7758 GB, free: 9.488 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007647/1.058, allocations: 3.403 MB / 0.7791 GB, free: 6.082 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01325/1.071, allocations: 7.561 MB / 0.7865 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01929/1.09, allocations: 11.85 MB / 0.7981 GB, free: 15.25 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002197/1.091, allocations: 44 kB / 0.7981 GB, free: 15.21 MB / 0.6075 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.03481/1.125, allocations: 12.74 MB / 0.8106 GB, free: 2.953 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002732/1.126, allocations: 68 kB / 0.8106 GB, free: 2.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003568/1.126, allocations: 152 kB / 0.8108 GB, free: 2.738 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007196/1.133, allocations: 2.253 MB / 0.813 GB, free: 492 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007361/1.141, allocations: 1.716 MB / 0.8146 GB, free: 14.76 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02686/1.167, allocations: 16.39 MB / 0.8307 GB, free: 14.1 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007137/1.175, allocations: 447.4 kB / 0.8311 GB, free: 13.66 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002032/1.177, allocations: 439.9 kB / 0.8315 GB, free: 13.23 MB / 0.6387 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.009088/1.186, allocations: 2.737 MB / 0.8342 GB, free: 10.48 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002323/1.188, allocations: 0.5045 MB / 0.8347 GB, free: 9.977 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01734/1.205, allocations: 7.276 MB / 0.8418 GB, free: 2.633 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-05/1.205, allocations: 35.69 kB / 0.8418 GB, free: 2.602 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-05/1.205, allocations: 12 kB / 0.8418 GB, free: 2.59 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.709e-05/1.205, allocations: 15.94 kB / 0.8418 GB, free: 2.574 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04175/1.247, allocations: 16.07 MB / 0.8575 GB, free: 2.43 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.735e-05/1.247, allocations: 11.94 kB / 0.8575 GB, free: 2.418 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002831/1.25, allocations: 0.4915 MB / 0.858 GB, free: 1.926 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.345/1.595, allocations: 2.009 MB / 0.86 GB, free: 229.1 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001099/1.596, allocations: 62.59 kB / 0.86 GB, free: 229.1 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02158/1.618, allocations: 14.88 MB / 0.8746 GB, free: 223.6 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.06e-05/1.618, allocations: 11.78 kB / 0.8746 GB, free: 223.6 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01947/1.637, allocations: 11.67 MB / 0.886 GB, free: 218.9 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001892/1.639, allocations: 0.5456 MB / 0.8865 GB, free: 218.8 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001774/1.641, allocations: 63.59 kB / 0.8866 GB, free: 218.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003737/1.645, allocations: 211.6 kB / 0.8868 GB, free: 218.7 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00111/1.646, allocations: 211.7 kB / 0.887 GB, free: 218.7 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003198/1.646, allocations: 81.5 kB / 0.8871 GB, free: 218.7 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.005835/1.652, allocations: 3.294 MB / 0.8903 GB, free: 217.6 MB / 0.6544 GB Notification: Performance of sort global known variables: time 9e-08/1.652, allocations: 0 / 0.8903 GB, free: 217.6 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.007922/1.66, allocations: 1.464 MB / 0.8917 GB, free: 217.4 MB / 0.6544 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.0169/1.677, allocations: 12.36 MB / 0.9038 GB, free: 212.1 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.01476/1.692, allocations: 8.123 MB / 0.9117 GB, free: 205.8 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.735e-05/1.692, allocations: 4 kB / 0.9117 GB, free: 205.8 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.007784/1.699, allocations: 3.867 MB / 0.9155 GB, free: 201.9 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006677/1.706, allocations: 0.6934 MB / 0.9162 GB, free: 201.3 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1072/1.813, allocations: 68.16 MB / 0.9827 GB, free: 126.5 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007961/1.821, allocations: 4.287 MB / 0.9869 GB, free: 122.2 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.006545/1.828, allocations: 2.457 MB / 0.9893 GB, free: 119.7 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004815/1.833, allocations: 2.71 MB / 0.992 GB, free: 117 MB / 0.6544 GB Notification: Performance of SimCode: time 1.994e-06/1.833, allocations: 0 / 0.992 GB, free: 117 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1726/2.005, allocations: 112.8 MB / 1.102 GB, free: 4.738 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.39/24.4, allocations: 7.938 kB / 1.102 GB, free: 4.73 MB / 0.6544 GB " [Timeout remaining time 635] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 27.91538993222639] 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'] 24.786809948738664 24.79980656 24.249389438 Calling exit ...