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) 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 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001276/0.001276, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2359/0.2359, allocations: 46.12 MB / 344.4 MB, free: 11.46 MB / 286.1 MB 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.002224/0.002224, allocations: 75.88 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4055/0.4077, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01836/0.4261, allocations: 14.67 MB / 0.5449 GB, free: 1.836 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01399/0.4401, allocations: 4.997 MB / 0.5498 GB, free: 13.88 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004485/0.4447, allocations: 100.3 kB / 0.5499 GB, free: 13.86 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009716/0.4545, allocations: 4.144 MB / 0.554 GB, free: 9.75 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00906/0.4636, allocations: 2.314 MB / 0.5562 GB, free: 7.426 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003319/0.4669, allocations: 1.072 MB / 0.5573 GB, free: 6.352 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01276/0.4797, allocations: 7.153 MB / 0.5643 GB, free: 15.18 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007477/0.4873, allocations: 5.135 MB / 0.5693 GB, free: 9.988 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005021/0.4923, allocations: 2.22 MB / 0.5714 GB, free: 7.762 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005965/0.4983, allocations: 3.057 MB / 0.5744 GB, free: 4.695 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001828/0.5002, allocations: 500 kB / 0.5749 GB, free: 4.207 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004157/0.5044, allocations: 1.354 MB / 0.5762 GB, free: 2.852 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003907/0.5083, allocations: 2.72 MB / 0.5789 GB, free: 128 kB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006879/0.5152, allocations: 3.263 MB / 0.5821 GB, free: 12.84 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01619/0.5314, allocations: 10.15 MB / 0.592 GB, free: 2.652 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.867e-06/0.5315, allocations: 4 kB / 0.592 GB, free: 2.648 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.5315, allocations: 0 / 0.592 GB, free: 2.648 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004327/0.532, allocations: 0 / 0.592 GB, free: 2.648 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.02439/0.5564, allocations: 7.309 MB / 0.5991 GB, free: 11.24 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.5564, allocations: 12.03 kB / 0.5991 GB, free: 11.23 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002521/0.559, allocations: 0.9261 MB / 0.6 GB, free: 10.29 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1823/0.7413, allocations: 12.56 MB / 0.6123 GB, free: 13.72 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01194/0.7532, allocations: 5.074 MB / 0.6172 GB, free: 8.562 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003223/0.7536, allocations: 332.5 kB / 0.6176 GB, free: 8.234 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001511/0.7551, allocations: 459.6 kB / 0.618 GB, free: 7.785 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02572/0.7809, allocations: 12.96 MB / 0.6307 GB, free: 9.957 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002418/0.7811, allocations: 71.42 kB / 0.6307 GB, free: 9.887 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006911/0.7818, allocations: 195.8 kB / 0.6309 GB, free: 9.695 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004712/0.7866, allocations: 2.531 MB / 0.6334 GB, free: 7.164 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02403/0.8106, allocations: 11.13 MB / 0.6443 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07498/0.8856, allocations: 52.2 MB / 0.6952 GB, free: 6.309 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01398/0.8997, allocations: 5.53 MB / 0.7006 GB, free: 0.6289 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004832/0.9045, allocations: 3.389 MB / 0.7039 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008047/0.9054, allocations: 0.6839 MB / 0.7046 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.669e-05/0.9054, allocations: 68.44 kB / 0.7047 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=245): time 5.34e-06/0.9055, allocations: 0 / 0.7047 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of matching and sorting (n=315): time 0.3447/1.25, allocations: 35.29 MB / 0.7391 GB, free: 155.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001524/1.25, allocations: 272.1 kB / 0.7394 GB, free: 155.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007858/1.258, allocations: 5.201 MB / 0.7445 GB, free: 153.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008691/1.259, allocations: 72.86 kB / 0.7445 GB, free: 153.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002975/1.262, allocations: 4.065 MB / 0.7485 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001864/1.264, allocations: 1.222 MB / 0.7497 GB, free: 148.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002289/1.266, allocations: 1.528 MB / 0.7512 GB, free: 146.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.708e-05/1.266, allocations: 301.1 kB / 0.7515 GB, free: 146.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004224/1.271, allocations: 3.407 MB / 0.7548 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0066/1.277, allocations: 7.563 MB / 0.7622 GB, free: 133.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.012/1.289, allocations: 11.85 MB / 0.7738 GB, free: 119.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001699/1.29, allocations: 48 kB / 0.7738 GB, free: 119.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02422/1.314, allocations: 12.75 MB / 0.7863 GB, free: 106.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001921/1.314, allocations: 70.5 kB / 0.7863 GB, free: 106.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002419/1.314, allocations: 147.9 kB / 0.7865 GB, free: 106.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005435/1.32, allocations: 2.243 MB / 0.7887 GB, free: 104.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005945/1.326, allocations: 1.712 MB / 0.7903 GB, free: 102.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0165/1.342, allocations: 16.39 MB / 0.8063 GB, free: 86.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00663/1.349, allocations: 459.4 kB / 0.8068 GB, free: 85.63 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001087/1.35, allocations: 443.9 kB / 0.8072 GB, free: 85.2 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.004234/1.354, allocations: 2.739 MB / 0.8099 GB, free: 82.45 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001073/1.355, allocations: 0.5122 MB / 0.8104 GB, free: 81.93 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0111/1.366, allocations: 7.288 MB / 0.8175 GB, free: 74.58 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.895e-05/1.367, allocations: 38.98 kB / 0.8175 GB, free: 74.54 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-05/1.367, allocations: 11.19 kB / 0.8175 GB, free: 74.54 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.195e-05/1.367, allocations: 15.95 kB / 0.8176 GB, free: 74.52 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02618/1.393, allocations: 16.11 MB / 0.8333 GB, free: 58.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.873e-05/1.393, allocations: 15.97 kB / 0.8333 GB, free: 58.31 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002403/1.395, allocations: 0.4953 MB / 0.8338 GB, free: 57.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004848/1.4, allocations: 2.007 MB / 0.8358 GB, free: 55.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006186/1.401, allocations: 63.94 kB / 0.8358 GB, free: 55.74 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01659/1.417, allocations: 14.89 MB / 0.8504 GB, free: 40.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.905e-06/1.417, allocations: 11.94 kB / 0.8504 GB, free: 40.56 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0161/1.434, allocations: 11.69 MB / 0.8618 GB, free: 28.68 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001794/1.435, allocations: 0.5522 MB / 0.8623 GB, free: 28.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001776/1.437, allocations: 59.98 kB / 0.8624 GB, free: 28.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003085/1.44, allocations: 211.7 kB / 0.8626 GB, free: 27.84 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006621/1.441, allocations: 201.5 kB / 0.8628 GB, free: 27.64 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002304/1.441, allocations: 84 kB / 0.8629 GB, free: 27.56 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004639/1.446, allocations: 3.294 MB / 0.8661 GB, free: 24.28 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.61e-07/1.446, allocations: 0 / 0.8661 GB, free: 24.28 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007588/1.454, allocations: 1.472 MB / 0.8675 GB, free: 22.81 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.01601/1.47, allocations: 12.39 MB / 0.8796 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01197/1.482, allocations: 8.461 MB / 0.8879 GB, free: 1.742 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/1.482, allocations: 0 / 0.8879 GB, free: 1.742 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.008507/1.49, allocations: 4.103 MB / 0.8919 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005903/1.496, allocations: 0.7014 MB / 0.8926 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4631/1.959, allocations: 68.2 MB / 0.9592 GB, free: 221.4 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007566/1.967, allocations: 4.282 MB / 0.9633 GB, free: 220.6 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.006147/1.973, allocations: 2.453 MB / 0.9657 GB, free: 220.5 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004183/1.977, allocations: 2.714 MB / 0.9684 GB, free: 220.4 MB / 0.6387 GB Notification: Performance of SimCode: time 1.343e-06/1.977, allocations: 0 / 0.9684 GB, free: 220.4 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1689/2.146, allocations: 112 MB / 1.078 GB, free: 123.6 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.32/24.46, allocations: 20.55 kB / 1.078 GB, free: 123.6 MB / 0.6387 GB (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 --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)