Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_trunk_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.001097/0.001096, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001244/0.001244, allocations: 200.7 kB / 18.73 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.339/1.339, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2113/0.2113, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 79.88 kB / 480.8 MB, free: 4.535 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3743/0.3759, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces2): time 0.01593/0.3919, allocations: 15.41 MB / 0.5456 GB, free: 1.301 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01213/0.4041, allocations: 5.062 MB / 0.5505 GB, free: 13.24 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005195/0.4093, allocations: 107.7 kB / 0.5506 GB, free: 13.13 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01033/0.4197, allocations: 4.996 MB / 0.5555 GB, free: 8.121 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007793/0.4276, allocations: 2.583 MB / 0.558 GB, free: 5.527 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003431/0.431, allocations: 1.236 MB / 0.5592 GB, free: 4.289 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01203/0.4431, allocations: 7.926 MB / 0.567 GB, free: 12.34 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008825/0.4519, allocations: 5.96 MB / 0.5728 GB, free: 6.297 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004848/0.4568, allocations: 2.508 MB / 0.5752 GB, free: 3.781 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005588/0.4624, allocations: 3.439 MB / 0.5786 GB, free: 340 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002095/0.4646, allocations: 0.5352 MB / 0.5791 GB, free: 15.79 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004345/0.4689, allocations: 1.545 MB / 0.5806 GB, free: 14.25 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004564/0.4735, allocations: 3.152 MB / 0.5837 GB, free: 11.09 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006859/0.4804, allocations: 3.55 MB / 0.5872 GB, free: 7.52 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01649/0.4969, allocations: 11.04 MB / 0.598 GB, free: 12.43 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.497, allocations: 0 / 0.598 GB, free: 12.43 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.497, allocations: 0 / 0.598 GB, free: 12.43 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004288/0.4974, allocations: 0 / 0.598 GB, free: 12.43 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.02158/0.519, allocations: 7.967 MB / 0.6057 GB, free: 4.367 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.5191, allocations: 12.02 kB / 0.6058 GB, free: 4.355 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003044/0.5221, allocations: 1.016 MB / 0.6067 GB, free: 3.328 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05084/0.573, allocations: 8.301 MB / 0.6149 GB, free: 11.01 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01328/0.5863, allocations: 5.426 MB / 0.6202 GB, free: 5.508 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003469/0.5867, allocations: 365.7 kB / 0.6205 GB, free: 5.148 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001844/0.5885, allocations: 491.7 kB / 0.621 GB, free: 4.668 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02723/0.6158, allocations: 14.05 MB / 0.6347 GB, free: 5.594 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000253/0.6161, allocations: 79.38 kB / 0.6348 GB, free: 5.516 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007673/0.6169, allocations: 231.8 kB / 0.635 GB, free: 5.289 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004147/0.621, allocations: 2.539 MB / 0.6375 GB, free: 2.746 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02306/0.6441, allocations: 11.38 MB / 0.6486 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0708/0.7149, allocations: 55.12 MB / 0.7024 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01141/0.7264, allocations: 4.499 MB / 0.7068 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003469/0.7299, allocations: 2.76 MB / 0.7095 GB, free: 7.34 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001154/0.73, allocations: 32.95 kB / 0.7095 GB, free: 7.309 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.188e-05/0.7301, allocations: 56.19 kB / 0.7096 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=190): time 4.328e-06/0.7301, allocations: 0 / 0.7096 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of matching and sorting (n=208): time 0.3338/1.064, allocations: 20.74 MB / 0.7298 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/1.064, allocations: 255.1 kB / 0.7301 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.013/1.077, allocations: 6.734 MB / 0.7367 GB, free: 156 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005535/1.078, allocations: 58.64 kB / 0.7367 GB, free: 156 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002907/1.081, allocations: 4.71 MB / 0.7413 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001208/1.082, allocations: 0.8566 MB / 0.7421 GB, free: 151.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001903/1.084, allocations: 1.572 MB / 0.7437 GB, free: 151 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.014e-05/1.084, allocations: 304.5 kB / 0.744 GB, free: 150.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003138/1.087, allocations: 2.563 MB / 0.7465 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004889/1.092, allocations: 7.433 MB / 0.7537 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009312/1.101, allocations: 10.86 MB / 0.7643 GB, free: 128.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001471/1.101, allocations: 52 kB / 0.7644 GB, free: 128.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1000) (initialization): time 0.01793/1.119, allocations: 10.45 MB / 0.7746 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002053/1.12, allocations: 83.98 kB / 0.7747 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003102/1.12, allocations: 172 kB / 0.7748 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002473/1.122, allocations: 0.9895 MB / 0.7758 GB, free: 117.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005619/1.128, allocations: 1.825 MB / 0.7776 GB, free: 115.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009488/1.137, allocations: 10.15 MB / 0.7875 GB, free: 104.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00715/1.145, allocations: 415.5 kB / 0.7879 GB, free: 104.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00161/1.146, allocations: 483.2 kB / 0.7884 GB, free: 103.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.006309/1.153, allocations: 2.949 MB / 0.7912 GB, free: 100.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001931/1.155, allocations: 0.5781 MB / 0.7918 GB, free: 100.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00705/1.162, allocations: 3.731 MB / 0.7954 GB, free: 96.52 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.181e-05/1.162, allocations: 20 kB / 0.7955 GB, free: 96.5 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-05/1.162, allocations: 8 kB / 0.7955 GB, free: 96.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.44e-05/1.162, allocations: 19.89 kB / 0.7955 GB, free: 96.48 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01941/1.181, allocations: 9.956 MB / 0.8052 GB, free: 86.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-05/1.181, allocations: 8.5 kB / 0.8052 GB, free: 86.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001813/1.183, allocations: 387.4 kB / 0.8056 GB, free: 86.11 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001892/1.185, allocations: 0.7204 MB / 0.8063 GB, free: 85.38 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002298/1.185, allocations: 43.92 kB / 0.8063 GB, free: 85.33 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007803/1.193, allocations: 9.242 MB / 0.8154 GB, free: 75.68 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/1.193, allocations: 4.031 kB / 0.8154 GB, free: 75.67 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008987/1.202, allocations: 6.589 MB / 0.8218 GB, free: 69.05 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001932/1.204, allocations: 0.6454 MB / 0.8224 GB, free: 68.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00169/1.206, allocations: 32 kB / 0.8225 GB, free: 68.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002978/1.209, allocations: 107.9 kB / 0.8226 GB, free: 68.25 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000428/1.209, allocations: 125.2 kB / 0.8227 GB, free: 68.13 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001785/1.209, allocations: 52 kB / 0.8227 GB, free: 68.08 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.009373/1.219, allocations: 4.307 MB / 0.8269 GB, free: 63.79 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.91e-07/1.219, allocations: 3.938 kB / 0.8269 GB, free: 63.78 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.009193/1.228, allocations: 1.363 MB / 0.8283 GB, free: 62.42 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.009778/1.238, allocations: 7.253 MB / 0.8354 GB, free: 55.13 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.009078/1.247, allocations: 6.48 MB / 0.8417 GB, free: 48.66 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/1.247, allocations: 0 / 0.8417 GB, free: 48.66 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002525/1.249, allocations: 2.066 MB / 0.8437 GB, free: 46.55 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005593/1.255, allocations: 0.8089 MB / 0.8445 GB, free: 45.76 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09614/1.351, allocations: 66.66 MB / 0.9096 GB, free: 3.605 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008475/1.36, allocations: 4.509 MB / 0.914 GB, free: 15.07 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.007287/1.367, allocations: 2.508 MB / 0.9164 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005259/1.372, allocations: 2.936 MB / 0.9193 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of SimCode: time 1.092e-06/1.372, allocations: 0 / 0.9193 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4422/1.815, allocations: 106.3 MB / 1.023 GB, free: 184.2 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.84/25.66, allocations: 0.8906 kB / 1.023 GB, free: 184.2 MB / 0.6387 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Forces_WorldForces2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/WorldForces2/WorldForces2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches