Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldForces2.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.Forces.WorldForces2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001428/0.001428, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001725/0.001725, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2233/0.2233, allocations: 46.13 MB / 344.2 MB, free: 11.58 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.003026/0.003026, allocations: 79.92 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1491/0.1521, allocations: 62.46 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces2): time 0.02041/0.1726, allocations: 15.4 MB / 495.6 MB, free: 5.676 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01149/0.1841, allocations: 5.061 MB / 0.4889 GB, free: 0.5977 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003349/0.1875, allocations: 103.7 kB / 0.489 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01035/0.1979, allocations: 4.992 MB / 0.4939 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007497/0.2055, allocations: 2.501 MB / 0.4964 GB, free: 8.977 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003542/0.2091, allocations: 1.248 MB / 0.4976 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2555/0.4646, allocations: 7.917 MB / 0.5053 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008409/0.4731, allocations: 5.959 MB / 0.5111 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005197/0.4783, allocations: 2.496 MB / 0.5136 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006481/0.4848, allocations: 3.429 MB / 0.5169 GB, free: 13 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00289/0.4878, allocations: 0.5343 MB / 0.5174 GB, free: 13 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005847/0.4936, allocations: 1.547 MB / 0.5189 GB, free: 13 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005958/0.4996, allocations: 3.142 MB / 0.522 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01015/0.5098, allocations: 3.548 MB / 0.5255 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01771/0.5276, allocations: 10.69 MB / 0.5359 GB, free: 5.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.153e-05/0.5276, allocations: 0 / 0.5359 GB, free: 5.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.5276, allocations: 0 / 0.5359 GB, free: 5.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005467/0.5282, allocations: 0 / 0.5359 GB, free: 5.43 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2127 * Number of variables: 2127 Notification: Performance of Generate backend data structure: time 0.02282/0.551, allocations: 7.771 MB / 0.5435 GB, free: 324 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.5511, allocations: 7.125 kB / 0.5435 GB, free: 324 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0033/0.5544, allocations: 1.015 MB / 0.5445 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0564/0.6108, allocations: 8.257 MB / 0.5526 GB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01355/0.6244, allocations: 5.314 MB / 0.5578 GB, free: 3.453 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003655/0.6248, allocations: 360.7 kB / 0.5581 GB, free: 3.145 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002023/0.6268, allocations: 496.8 kB / 0.5586 GB, free: 2.703 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02985/0.6567, allocations: 14.06 MB / 0.5723 GB, free: 3.883 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002865/0.657, allocations: 78.05 kB / 0.5724 GB, free: 3.832 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008972/0.6579, allocations: 229.5 kB / 0.5726 GB, free: 3.652 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004484/0.6624, allocations: 2.537 MB / 0.5751 GB, free: 1.152 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02438/0.6868, allocations: 11.4 MB / 0.5862 GB, free: 6.004 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07069/0.7576, allocations: 55.22 MB / 0.6401 GB, free: 14.07 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01232/0.7699, allocations: 4.51 MB / 0.6445 GB, free: 9.406 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004084/0.774, allocations: 2.751 MB / 0.6472 GB, free: 6.641 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001276/0.7742, allocations: 45.19 kB / 0.6473 GB, free: 6.609 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.042e-05/0.7743, allocations: 57.23 kB / 0.6473 GB, free: 6.547 MB / 494.1 MB Notification: Performance of pre-optimization done (n=190): time 5.029e-06/0.7743, allocations: 0 / 0.6473 GB, free: 6.547 MB / 494.1 MB Notification: Performance of matching and sorting (n=208): time 0.05768/0.832, allocations: 20.31 MB / 0.6672 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002411/0.8322, allocations: 256.4 kB / 0.6674 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01134/0.8436, allocations: 6.717 MB / 0.674 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0006331/0.8443, allocations: 61.7 kB / 0.674 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.004635/0.8489, allocations: 4.54 MB / 0.6785 GB, free: 6.484 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001639/0.8506, allocations: 0.8286 MB / 0.6793 GB, free: 5.664 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002768/0.8534, allocations: 1.555 MB / 0.6808 GB, free: 4.102 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001373/0.8535, allocations: 307.5 kB / 0.6811 GB, free: 3.801 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003936/0.8575, allocations: 2.556 MB / 0.6836 GB, free: 1.242 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007711/0.8652, allocations: 7.43 MB / 0.6908 GB, free: 7.48 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01311/0.8783, allocations: 10.87 MB / 0.7014 GB, free: 10.77 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001113/0.8785, allocations: 48 kB / 0.7015 GB, free: 10.73 MB / 0.545 GB Notification: Performance of matching and sorting (n=1000) (initialization): time 0.02076/0.8992, allocations: 10.43 MB / 0.7117 GB, free: 288 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001574/0.8994, allocations: 76 kB / 0.7117 GB, free: 212 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002402/0.8997, allocations: 172 kB / 0.7119 GB, free: 40 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2212/1.121, allocations: 0.9912 MB / 0.7129 GB, free: 183.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006543/1.127, allocations: 1.827 MB / 0.7147 GB, free: 183.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01105/1.139, allocations: 10.14 MB / 0.7246 GB, free: 177.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007547/1.146, allocations: 412.1 kB / 0.7249 GB, free: 177.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001354/1.148, allocations: 479.8 kB / 0.7254 GB, free: 177.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 786 * Number of states: 0 () * Number of discrete variables: 63 (worldForce2.arrow.twoHeadedArrow,worldForce2.arrow.headAtOrigin,worldForce1.arrow.twoHeadedArrow,worldForce1.arrow.headAtOrigin,worldForce.arrow.twoHeadedArrow,worldForce.arrow.headAtOrigin,worldForce2.color[3],worldForce2.color[2],worldForce2.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.color[3],worldForce1.color[2],worldForce1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (937): * Single equations (assignments): 931 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,13,100.0%), (1,13,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006082/1.154, allocations: 2.955 MB / 0.7283 GB, free: 176.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001336/1.155, allocations: 0.5563 MB / 0.7288 GB, free: 176.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00677/1.162, allocations: 3.731 MB / 0.7325 GB, free: 175 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-05/1.162, allocations: 24.11 kB / 0.7325 GB, free: 175 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.819e-05/1.162, allocations: 10.03 kB / 0.7325 GB, free: 175 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.978e-05/1.162, allocations: 12.98 kB / 0.7325 GB, free: 175 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01758/1.179, allocations: 9.994 MB / 0.7423 GB, free: 171.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-05/1.18, allocations: 0 / 0.7423 GB, free: 171.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001828/1.181, allocations: 400.4 kB / 0.7427 GB, free: 171.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001845/1.183, allocations: 0.7219 MB / 0.7434 GB, free: 171.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002124/1.183, allocations: 36.84 kB / 0.7434 GB, free: 171.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007871/1.191, allocations: 9.243 MB / 0.7524 GB, free: 164.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/1.191, allocations: 3.875 kB / 0.7524 GB, free: 164.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008533/1.2, allocations: 6.555 MB / 0.7588 GB, free: 162.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002016/1.202, allocations: 0.6137 MB / 0.7594 GB, free: 162.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001057/1.203, allocations: 31.56 kB / 0.7595 GB, free: 162.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002063/1.205, allocations: 110.5 kB / 0.7596 GB, free: 162 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003923/1.206, allocations: 122.5 kB / 0.7597 GB, free: 162 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001375/1.206, allocations: 51.92 kB / 0.7597 GB, free: 162 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008172/1.214, allocations: 4.306 MB / 0.7639 GB, free: 159.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.51e-07/1.214, allocations: 0 / 0.7639 GB, free: 159.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008457/1.222, allocations: 1.363 MB / 0.7653 GB, free: 157.9 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * 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 (160): * Single equations (assignments): 154 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,10,100.0%), (1,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008457/1.231, allocations: 7.236 MB / 0.7723 GB, free: 151.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01007/1.241, allocations: 7.315 MB / 0.7795 GB, free: 144.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/1.241, allocations: 0 / 0.7795 GB, free: 144.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002411/1.243, allocations: 2.073 MB / 0.7815 GB, free: 142.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004581/1.248, allocations: 0.8072 MB / 0.7823 GB, free: 141.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09568/1.344, allocations: 84.07 MB / 0.8644 GB, free: 45.53 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004921/1.349, allocations: 4.509 MB / 0.8688 GB, free: 40.99 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005742/1.354, allocations: 2.508 MB / 0.8712 GB, free: 38.48 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003558/1.358, allocations: 2.94 MB / 0.8741 GB, free: 35.54 MB / 0.545 GB Notification: Performance of SimCode: time 6.31e-07/1.358, allocations: 4 kB / 0.8741 GB, free: 35.53 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4164/1.774, allocations: 111.6 MB / 0.9831 GB, free: 166.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/14.94, allocations: 5.625 kB / 0.9831 GB, free: 166.9 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldForces2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldForces2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_WorldForces2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_WorldForces2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldForces2.pipe 2>&1)