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.001356/0.001356, allocations: 117.6 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: 204.7 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.416/1.416, allocations: 227.4 MB / 247 MB, free: 10.45 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.2376/0.2376, allocations: 46.12 MB / 344.3 MB, free: 11.45 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.002287/0.002287, allocations: 79.88 kB / 480.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.336, allocations: 62.44 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces2): time 0.01846/0.3545, allocations: 15.41 MB / 0.5457 GB, free: 1.258 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01336/0.3679, allocations: 5.064 MB / 0.5506 GB, free: 13.19 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00462/0.3726, allocations: 107.7 kB / 0.5507 GB, free: 13.08 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01043/0.3831, allocations: 4.992 MB / 0.5556 GB, free: 8.074 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008014/0.3911, allocations: 2.505 MB / 0.558 GB, free: 5.562 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003537/0.3947, allocations: 1.244 MB / 0.5592 GB, free: 4.316 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01328/0.408, allocations: 7.925 MB / 0.567 GB, free: 12.37 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008214/0.4163, allocations: 5.956 MB / 0.5728 GB, free: 6.328 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005217/0.4215, allocations: 2.5 MB / 0.5752 GB, free: 3.82 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006256/0.4278, allocations: 3.431 MB / 0.5786 GB, free: 388 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002097/0.43, allocations: 0.5313 MB / 0.5791 GB, free: 15.84 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004292/0.4343, allocations: 1.549 MB / 0.5806 GB, free: 14.3 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004865/0.4392, allocations: 3.129 MB / 0.5837 GB, free: 11.16 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009414/0.4486, allocations: 3.547 MB / 0.5871 GB, free: 7.594 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02075/0.4695, allocations: 11.04 MB / 0.5979 GB, free: 12.5 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/0.4695, allocations: 3.938 kB / 0.5979 GB, free: 12.5 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.4695, allocations: 0 / 0.5979 GB, free: 12.5 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000468/0.47, allocations: 0 / 0.5979 GB, free: 12.5 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: 2127 * Number of variables: 2127 Notification: Performance of Generate backend data structure: time 0.02311/0.4931, allocations: 7.967 MB / 0.6057 GB, free: 4.441 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.4932, allocations: 8.031 kB / 0.6057 GB, free: 4.434 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003026/0.4962, allocations: 1.016 MB / 0.6067 GB, free: 3.406 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05716/0.5534, allocations: 8.305 MB / 0.6148 GB, free: 11.09 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01245/0.5659, allocations: 5.43 MB / 0.6201 GB, free: 5.578 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003455/0.5663, allocations: 361.7 kB / 0.6205 GB, free: 5.223 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001825/0.5681, allocations: 487.7 kB / 0.6209 GB, free: 4.746 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02887/0.597, allocations: 14.05 MB / 0.6347 GB, free: 5.664 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002903/0.5973, allocations: 79.39 kB / 0.6347 GB, free: 5.586 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00112/0.5985, allocations: 231.8 kB / 0.635 GB, free: 5.359 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004983/0.6035, allocations: 2.535 MB / 0.6374 GB, free: 2.82 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02631/0.6298, allocations: 11.39 MB / 0.6486 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07174/0.7016, allocations: 55.11 MB / 0.7024 GB, free: 14.85 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01198/0.7136, allocations: 4.5 MB / 0.7068 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003899/0.7175, allocations: 2.76 MB / 0.7095 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001308/0.7177, allocations: 32.95 kB / 0.7095 GB, free: 7.375 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.112e-05/0.7178, allocations: 56.25 kB / 0.7096 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=190): time 4.258e-06/0.7178, allocations: 0 / 0.7096 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of matching and sorting (n=208): time 0.3115/1.029, allocations: 20.73 MB / 0.7298 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/1.029, allocations: 266.1 kB / 0.7301 GB, free: 156.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0101/1.04, allocations: 6.74 MB / 0.7366 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004607/1.04, allocations: 53.2 kB / 0.7367 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00267/1.043, allocations: 4.705 MB / 0.7413 GB, free: 151.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009999/1.044, allocations: 0.855 MB / 0.7421 GB, free: 150.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001767/1.045, allocations: 1.578 MB / 0.7437 GB, free: 150.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.57e-05/1.046, allocations: 301.1 kB / 0.7439 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003029/1.049, allocations: 2.562 MB / 0.7464 GB, free: 149 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004708/1.053, allocations: 7.436 MB / 0.7537 GB, free: 141 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009128/1.062, allocations: 10.85 MB / 0.7643 GB, free: 127.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001825/1.063, allocations: 52 kB / 0.7644 GB, free: 127.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1000) (initialization): time 0.01874/1.081, allocations: 10.45 MB / 0.7746 GB, free: 117.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001018/1.082, allocations: 80 kB / 0.7746 GB, free: 117.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000171/1.082, allocations: 172 kB / 0.7748 GB, free: 117 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002336/1.084, allocations: 0.9915 MB / 0.7758 GB, free: 116 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005807/1.09, allocations: 1.828 MB / 0.7776 GB, free: 114.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009427/1.099, allocations: 10.13 MB / 0.7874 GB, free: 103.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00653/1.106, allocations: 418.9 kB / 0.7878 GB, free: 103.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001176/1.107, allocations: 479.9 kB / 0.7883 GB, free: 102.8 MB / 0.5606 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.004327/1.111, allocations: 2.961 MB / 0.7912 GB, free: 99.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001298/1.113, allocations: 0.5781 MB / 0.7918 GB, free: 99.22 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005448/1.118, allocations: 3.731 MB / 0.7954 GB, free: 95.46 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.342e-05/1.118, allocations: 24 kB / 0.7954 GB, free: 95.43 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.621e-05/1.118, allocations: 12 kB / 0.7954 GB, free: 95.42 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.888e-05/1.118, allocations: 15.89 kB / 0.7955 GB, free: 95.41 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01546/1.134, allocations: 9.948 MB / 0.8052 GB, free: 85.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.338e-05/1.134, allocations: 0 / 0.8052 GB, free: 85.43 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001783/1.136, allocations: 399.4 kB / 0.8056 GB, free: 85.04 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001861/1.138, allocations: 0.7165 MB / 0.8063 GB, free: 84.31 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002367/1.138, allocations: 35.98 kB / 0.8063 GB, free: 84.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007624/1.145, allocations: 9.256 MB / 0.8153 GB, free: 74.61 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/1.145, allocations: 0 / 0.8153 GB, free: 74.61 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008247/1.154, allocations: 6.604 MB / 0.8218 GB, free: 67.98 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00184/1.156, allocations: 0.6376 MB / 0.8224 GB, free: 67.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009923/1.157, allocations: 35.94 kB / 0.8224 GB, free: 67.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002275/1.159, allocations: 111.5 kB / 0.8225 GB, free: 67.18 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003872/1.159, allocations: 109.3 kB / 0.8226 GB, free: 67.07 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/1.159, allocations: 63.98 kB / 0.8227 GB, free: 67.01 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006522/1.166, allocations: 4.303 MB / 0.8269 GB, free: 62.72 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.4e-07/1.166, allocations: 0 / 0.8269 GB, free: 62.72 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007518/1.174, allocations: 1.363 MB / 0.8282 GB, free: 61.36 MB / 0.5606 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.008518/1.182, allocations: 7.26 MB / 0.8353 GB, free: 54.06 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008732/1.191, allocations: 6.476 MB / 0.8416 GB, free: 47.59 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/1.191, allocations: 0 / 0.8416 GB, free: 47.59 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002357/1.193, allocations: 2.078 MB / 0.8437 GB, free: 45.48 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005157/1.198, allocations: 0.8 MB / 0.8445 GB, free: 44.69 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09679/1.295, allocations: 66.66 MB / 0.9096 GB, free: 2.535 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006727/1.302, allocations: 4.501 MB / 0.914 GB, free: 14 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.006219/1.308, allocations: 2.512 MB / 0.9164 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004513/1.313, allocations: 2.94 MB / 0.9193 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of SimCode: time 7.62e-07/1.313, allocations: 0 / 0.9193 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4364/1.749, allocations: 106.3 MB / 1.023 GB, free: 178.1 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.99/25.74, allocations: 2.609 kB / 1.023 GB, free: 178.1 MB / 0.6387 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldForces2_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_WorldForces2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldForces2.pipe 2>&1)