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.001396/0.001396, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002029/0.002029, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, 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.2089/0.2089, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002509/0.002509, allocations: 76.16 kB / 480.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3956/0.3981, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces2): time 0.01979/0.4179, allocations: 15.41 MB / 0.5456 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0128/0.4308, allocations: 5.056 MB / 0.5505 GB, free: 13.24 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003582/0.4344, allocations: 107.7 kB / 0.5506 GB, free: 13.13 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009114/0.4435, allocations: 4.996 MB / 0.5555 GB, free: 8.121 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008308/0.4519, allocations: 2.58 MB / 0.558 GB, free: 5.531 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003419/0.4554, allocations: 1.24 MB / 0.5592 GB, free: 4.289 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01224/0.4676, allocations: 7.938 MB / 0.567 GB, free: 12.33 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009593/0.4772, allocations: 5.953 MB / 0.5728 GB, free: 6.293 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005872/0.4832, allocations: 2.512 MB / 0.5752 GB, free: 3.773 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006284/0.4895, allocations: 3.431 MB / 0.5786 GB, free: 340 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002163/0.4917, allocations: 0.5352 MB / 0.5791 GB, free: 15.79 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004363/0.4961, allocations: 1.553 MB / 0.5806 GB, free: 14.24 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004801/0.5009, allocations: 3.148 MB / 0.5837 GB, free: 11.09 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006618/0.5075, allocations: 3.55 MB / 0.5872 GB, free: 7.516 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01634/0.5239, allocations: 11.04 MB / 0.598 GB, free: 12.43 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.524, allocations: 7.875 kB / 0.598 GB, free: 12.42 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.524, allocations: 0 / 0.598 GB, free: 12.42 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005391/0.5245, allocations: 0 / 0.598 GB, free: 12.42 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.02441/0.5489, allocations: 7.971 MB / 0.6057 GB, free: 4.355 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.549, allocations: 8.031 kB / 0.6058 GB, free: 4.348 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003395/0.5524, allocations: 1.012 MB / 0.6067 GB, free: 3.324 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05013/0.6025, allocations: 8.309 MB / 0.6149 GB, free: 11 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01239/0.615, allocations: 5.426 MB / 0.6202 GB, free: 5.496 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003694/0.6154, allocations: 361.7 kB / 0.6205 GB, free: 5.141 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001886/0.6173, allocations: 495.7 kB / 0.621 GB, free: 4.656 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02963/0.6469, allocations: 14.05 MB / 0.6347 GB, free: 5.578 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004397/0.6474, allocations: 71.47 kB / 0.6348 GB, free: 5.508 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001817/0.6492, allocations: 227.8 kB / 0.635 GB, free: 5.285 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004779/0.654, allocations: 2.535 MB / 0.6375 GB, free: 2.746 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0244/0.6785, allocations: 11.39 MB / 0.6486 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07572/0.7542, allocations: 55.12 MB / 0.7024 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01197/0.7662, allocations: 4.503 MB / 0.7068 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003971/0.7702, allocations: 2.751 MB / 0.7095 GB, free: 7.332 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001577/0.7704, allocations: 36.88 kB / 0.7095 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.285e-05/0.7705, allocations: 68.06 kB / 0.7096 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=190): time 4.789e-06/0.7705, allocations: 0 / 0.7096 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of matching and sorting (n=208): time 0.3298/1.1, allocations: 20.72 MB / 0.7298 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.576e-05/1.1, allocations: 259.6 kB / 0.7301 GB, free: 157 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008756/1.109, allocations: 6.74 MB / 0.7367 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004368/1.11, allocations: 57.33 kB / 0.7367 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003074/1.113, allocations: 4.701 MB / 0.7413 GB, free: 151.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009484/1.114, allocations: 0.8633 MB / 0.7421 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001576/1.115, allocations: 1.574 MB / 0.7437 GB, free: 150.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.397e-05/1.115, allocations: 305 kB / 0.744 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002968/1.118, allocations: 2.558 MB / 0.7465 GB, free: 149.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00431/1.123, allocations: 7.435 MB / 0.7537 GB, free: 140.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007958/1.131, allocations: 10.86 MB / 0.7643 GB, free: 127.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001028/1.131, allocations: 52 kB / 0.7644 GB, free: 127.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1000) (initialization): time 0.01472/1.145, allocations: 10.45 MB / 0.7746 GB, free: 117.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.00014/1.146, allocations: 83.98 kB / 0.7747 GB, free: 117.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002627/1.146, allocations: 172 kB / 0.7748 GB, free: 116.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002194/1.148, allocations: 0.9857 MB / 0.7758 GB, free: 115.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004956/1.153, allocations: 1.826 MB / 0.7776 GB, free: 114.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008725/1.162, allocations: 10.15 MB / 0.7875 GB, free: 103.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006084/1.168, allocations: 423.5 kB / 0.7879 GB, free: 103.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001089/1.169, allocations: 476 kB / 0.7883 GB, free: 102.7 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.005041/1.174, allocations: 2.956 MB / 0.7912 GB, free: 99.73 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001639/1.176, allocations: 0.5781 MB / 0.7918 GB, free: 99.15 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005947/1.182, allocations: 3.727 MB / 0.7954 GB, free: 95.39 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.14e-05/1.182, allocations: 27.28 kB / 0.7955 GB, free: 95.37 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.478e-05/1.182, allocations: 4 kB / 0.7955 GB, free: 95.36 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.937e-05/1.182, allocations: 19.89 kB / 0.7955 GB, free: 95.34 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01667/1.199, allocations: 9.952 MB / 0.8052 GB, free: 85.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.361e-05/1.199, allocations: 4 kB / 0.8052 GB, free: 85.36 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001677/1.2, allocations: 391.4 kB / 0.8056 GB, free: 84.97 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00174/1.202, allocations: 0.7243 MB / 0.8063 GB, free: 84.24 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001747/1.202, allocations: 39.98 kB / 0.8063 GB, free: 84.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007609/1.21, allocations: 9.253 MB / 0.8154 GB, free: 74.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.21, allocations: 4.031 kB / 0.8154 GB, free: 74.54 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008173/1.218, allocations: 6.59 MB / 0.8218 GB, free: 67.91 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00179/1.22, allocations: 0.6376 MB / 0.8224 GB, free: 67.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001588/1.221, allocations: 32 kB / 0.8225 GB, free: 67.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002641/1.224, allocations: 111.6 kB / 0.8226 GB, free: 67.12 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000356/1.224, allocations: 121.2 kB / 0.8227 GB, free: 67 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001505/1.225, allocations: 52 kB / 0.8227 GB, free: 66.95 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.007107/1.232, allocations: 4.307 MB / 0.8269 GB, free: 62.66 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.8e-07/1.232, allocations: 4 kB / 0.8269 GB, free: 62.65 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007406/1.239, allocations: 1.363 MB / 0.8283 GB, free: 61.29 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.008826/1.248, allocations: 7.253 MB / 0.8353 GB, free: 54 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008618/1.257, allocations: 6.472 MB / 0.8417 GB, free: 47.53 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/1.257, allocations: 0 / 0.8417 GB, free: 47.53 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002342/1.259, allocations: 2.082 MB / 0.8437 GB, free: 45.42 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006042/1.265, allocations: 0.805 MB / 0.8445 GB, free: 44.62 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.104/1.369, allocations: 66.65 MB / 0.9096 GB, free: 2.48 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008504/1.378, allocations: 4.512 MB / 0.914 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.00647/1.384, allocations: 2.516 MB / 0.9164 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004354/1.388, allocations: 2.932 MB / 0.9193 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of SimCode: time 8.62e-07/1.388, allocations: 0 / 0.9193 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.42/1.808, allocations: 106.3 MB / 1.023 GB, free: 177.8 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.75/24.56, allocations: 8.453 kB / 1.023 GB, free: 177.8 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