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.001324/0.001324, allocations: 122.5 kB / 18.51 MB, free: 4.52 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.001353/0.001353, allocations: 215.2 kB / 21.46 MB, free: 1.566 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.583/1.583, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.2537/0.2537, allocations: 46.92 MB / 357.7 MB, free: 10.19 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.003856/0.003856, allocations: 83.86 kB / 0.4917 GB, free: 7.703 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1755/0.1793, allocations: 66.04 MB / 0.5562 GB, free: 5.527 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01954/0.1989, allocations: 14.72 MB / 0.5705 GB, free: 6.734 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01272/0.2116, allocations: 5.031 MB / 0.5755 GB, free: 1.684 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003299/0.2149, allocations: 123.3 kB / 0.5756 GB, free: 1.562 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009013/0.2239, allocations: 4.186 MB / 0.5797 GB, free: 13.36 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007507/0.2314, allocations: 2.388 MB / 0.582 GB, free: 10.97 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003837/0.2352, allocations: 1.076 MB / 0.5831 GB, free: 9.891 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01401/0.2493, allocations: 7.151 MB / 0.59 GB, free: 2.727 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.395/0.6443, allocations: 4.306 MB / 0.5942 GB, free: 7.812 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005675/0.6499, allocations: 2.277 MB / 0.5965 GB, free: 7.688 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008799/0.6587, allocations: 3.277 MB / 0.5997 GB, free: 7.371 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003205/0.6619, allocations: 498.5 kB / 0.6001 GB, free: 7.371 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006291/0.6682, allocations: 1.398 MB / 0.6015 GB, free: 7.371 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006174/0.6744, allocations: 2.809 MB / 0.6042 GB, free: 7.047 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01045/0.6849, allocations: 3.275 MB / 0.6074 GB, free: 5.965 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02034/0.7052, allocations: 10.15 MB / 0.6174 GB, free: 3.551 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.308e-06/0.7052, allocations: 0 / 0.6174 GB, free: 3.551 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.7052, allocations: 0 / 0.6174 GB, free: 3.551 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004664/0.7057, allocations: 1.062 kB / 0.6174 GB, free: 3.551 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: 1953 * Number of variables: 1953 Notification: Performance of Generate backend data structure: time 0.03065/0.7363, allocations: 7.307 MB / 0.6245 GB, free: 14.72 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.793e-05/0.7364, allocations: 8.812 kB / 0.6245 GB, free: 14.72 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004276/0.7407, allocations: 0.9267 MB / 0.6254 GB, free: 14.12 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1698/0.9104, allocations: 12.56 MB / 0.6377 GB, free: 8.734 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01733/0.9278, allocations: 5.077 MB / 0.6426 GB, free: 3.82 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004783/0.9282, allocations: 322.6 kB / 0.6429 GB, free: 3.543 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002963/0.9312, allocations: 456.1 kB / 0.6434 GB, free: 3.141 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03627/0.9675, allocations: 12.95 MB / 0.656 GB, free: 5.547 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004941/0.968, allocations: 73.34 kB / 0.6561 GB, free: 5.5 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00257/0.9705, allocations: 214.2 kB / 0.6563 GB, free: 5.332 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005836/0.9764, allocations: 2.525 MB / 0.6588 GB, free: 2.844 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02954/1.006, allocations: 11.14 MB / 0.6696 GB, free: 7.93 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08609/1.092, allocations: 52.18 MB / 0.7206 GB, free: 2.988 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01497/1.107, allocations: 5.332 MB / 0.7258 GB, free: 13.52 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004813/1.112, allocations: 3.092 MB / 0.7288 GB, free: 10.42 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000904/1.113, allocations: 0.6836 MB / 0.7295 GB, free: 9.645 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.708e-05/1.113, allocations: 60.69 kB / 0.7295 GB, free: 9.578 MB / 0.545 GB Notification: Performance of pre-optimization done (n=245): time 5.701e-06/1.113, allocations: 0 / 0.7295 GB, free: 9.578 MB / 0.545 GB Notification: Performance of matching and sorting (n=315): time 0.1186/1.231, allocations: 35.28 MB / 0.764 GB, free: 6.266 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002191/1.232, allocations: 268 kB / 0.7643 GB, free: 5.949 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01272/1.244, allocations: 5.198 MB / 0.7693 GB, free: 0.7617 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.001016/1.245, allocations: 77.64 kB / 0.7694 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.004375/1.25, allocations: 4.059 MB / 0.7734 GB, free: 12.63 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.002485/1.252, allocations: 1.227 MB / 0.7746 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004204/1.256, allocations: 1.527 MB / 0.7761 GB, free: 9.895 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001475/1.257, allocations: 301.1 kB / 0.7763 GB, free: 9.598 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005924/1.262, allocations: 3.403 MB / 0.7797 GB, free: 6.191 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0102/1.273, allocations: 7.562 MB / 0.7871 GB, free: 12.67 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01754/1.29, allocations: 11.86 MB / 0.7986 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000179/1.29, allocations: 40 kB / 0.7987 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.03152/1.322, allocations: 12.72 MB / 0.8111 GB, free: 2.496 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003043/1.322, allocations: 74.02 kB / 0.8112 GB, free: 2.426 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003931/1.323, allocations: 148.1 kB / 0.8113 GB, free: 2.281 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007172/1.33, allocations: 2.248 MB / 0.8135 GB, free: 28 kB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007211/1.337, allocations: 1.719 MB / 0.8152 GB, free: 14.3 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02455/1.362, allocations: 16.4 MB / 0.8312 GB, free: 13.64 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007479/1.369, allocations: 447.5 kB / 0.8316 GB, free: 13.2 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002214/1.371, allocations: 443.9 kB / 0.832 GB, free: 12.77 MB / 0.6544 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.008689/1.38, allocations: 2.736 MB / 0.8347 GB, free: 10.02 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00201/1.382, allocations: 0.5045 MB / 0.8352 GB, free: 9.508 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01877/1.401, allocations: 7.272 MB / 0.8423 GB, free: 2.168 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.238e-05/1.401, allocations: 32 kB / 0.8423 GB, free: 2.137 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-05/1.401, allocations: 12 kB / 0.8424 GB, free: 2.125 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.419e-05/1.401, allocations: 19.94 kB / 0.8424 GB, free: 2.105 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3695/1.77, allocations: 16.06 MB / 0.8581 GB, free: 225.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.706e-05/1.77, allocations: 6.25 kB / 0.8581 GB, free: 225.5 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002746/1.773, allocations: 0.4924 MB / 0.8585 GB, free: 225.5 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006028/1.779, allocations: 2.007 MB / 0.8605 GB, free: 225 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008646/1.78, allocations: 63.59 kB / 0.8606 GB, free: 224.9 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01844/1.799, allocations: 14.89 MB / 0.8751 GB, free: 217.6 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.937e-06/1.799, allocations: 11.47 kB / 0.8751 GB, free: 217.6 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01952/1.818, allocations: 11.67 MB / 0.8865 GB, free: 212.8 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00199/1.82, allocations: 0.5556 MB / 0.8871 GB, free: 212.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001893/1.822, allocations: 58.03 kB / 0.8871 GB, free: 212.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003825/1.826, allocations: 216.2 kB / 0.8873 GB, free: 212.6 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001033/1.827, allocations: 199.4 kB / 0.8875 GB, free: 212.6 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005303/1.827, allocations: 90.81 kB / 0.8876 GB, free: 212.6 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.007714/1.835, allocations: 3.288 MB / 0.8908 GB, free: 210.4 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2e-07/1.835, allocations: 7.875 kB / 0.8908 GB, free: 210.4 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.009902/1.845, allocations: 1.46 MB / 0.8922 GB, free: 209 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.01937/1.864, allocations: 12.37 MB / 0.9043 GB, free: 198.3 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0137/1.878, allocations: 8.114 MB / 0.9123 GB, free: 191.2 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.571e-05/1.878, allocations: 3.625 kB / 0.9123 GB, free: 191.2 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.008244/1.886, allocations: 3.863 MB / 0.916 GB, free: 187.3 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007663/1.894, allocations: 0.6909 MB / 0.9167 GB, free: 186.7 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1332/2.027, allocations: 68.17 MB / 0.9833 GB, free: 111.8 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009968/2.037, allocations: 4.281 MB / 0.9875 GB, free: 107.5 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.007296/2.044, allocations: 2.453 MB / 0.9898 GB, free: 105 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006063/2.05, allocations: 2.71 MB / 0.9925 GB, free: 102.3 MB / 0.6544 GB Notification: Performance of SimCode: time 1.473e-06/2.05, allocations: 0 / 0.9925 GB, free: 102.3 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4954/2.546, allocations: 112.7 MB / 1.103 GB, free: 216.7 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.76/25.31, allocations: 18.91 kB / 1.103 GB, free: 216.7 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00039984 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: 28.646772243082523] 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'] 25.469547438900918 25.488329854 24.778225507 Calling exit ...