Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.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.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001801/0.001801, allocations: 118.8 kB / 17.78 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.002023/0.002023, allocations: 198 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.504/1.504, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2339/0.2339, allocations: 46.13 MB / 344.3 MB, free: 11.44 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002257/0.002257, allocations: 80.2 kB / 480.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3563/0.3586, allocations: 62.44 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02167/0.3803, allocations: 18.15 MB / 0.5483 GB, free: 15.1 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01392/0.3943, allocations: 5.295 MB / 0.5535 GB, free: 10.18 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004179/0.3985, allocations: 111.7 kB / 0.5536 GB, free: 10.07 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006887/0.4054, allocations: 3.04 MB / 0.5566 GB, free: 7.023 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008032/0.4136, allocations: 2.552 MB / 0.5591 GB, free: 4.465 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002878/0.4165, allocations: 1.014 MB / 0.56 GB, free: 3.449 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01226/0.4288, allocations: 7.667 MB / 0.5675 GB, free: 11.77 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00636/0.4352, allocations: 4.175 MB / 0.5716 GB, free: 7.543 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004576/0.4398, allocations: 2.243 MB / 0.5738 GB, free: 5.293 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00527/0.4451, allocations: 3.228 MB / 0.577 GB, free: 2.055 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001562/0.4467, allocations: 452 kB / 0.5774 GB, free: 1.613 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003575/0.4503, allocations: 1.295 MB / 0.5786 GB, free: 324 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00363/0.454, allocations: 2.797 MB / 0.5814 GB, free: 13.51 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00508/0.4591, allocations: 3.223 MB / 0.5845 GB, free: 10.27 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01359/0.4727, allocations: 10.08 MB / 0.5944 GB, free: 160 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.4727, allocations: 0 / 0.5944 GB, free: 160 kB / 446.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.4727, allocations: 3.938 kB / 0.5944 GB, free: 156 kB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003183/0.4731, allocations: 0 / 0.5944 GB, free: 156 kB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.02046/0.4935, allocations: 7.506 MB / 0.6017 GB, free: 8.547 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/0.4936, allocations: 15.97 kB / 0.6017 GB, free: 8.531 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003114/0.4967, allocations: 1.01 MB / 0.6027 GB, free: 7.512 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03036/0.5271, allocations: 5.648 MB / 0.6082 GB, free: 1.852 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01005/0.5372, allocations: 4.898 MB / 0.613 GB, free: 12.89 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003/0.5375, allocations: 312.4 kB / 0.6133 GB, free: 12.59 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001582/0.5391, allocations: 443.6 kB / 0.6137 GB, free: 12.15 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03173/0.5709, allocations: 15.52 MB / 0.6289 GB, free: 11.9 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002313/0.5711, allocations: 63.53 kB / 0.6289 GB, free: 11.84 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007571/0.5719, allocations: 199.8 kB / 0.6291 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006902/0.5788, allocations: 3.384 MB / 0.6324 GB, free: 8.258 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03522/0.6141, allocations: 14.68 MB / 0.6468 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09299/0.7071, allocations: 54.87 MB / 0.7004 GB, free: 1.504 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01966/0.7268, allocations: 8.146 MB / 0.7083 GB, free: 9.125 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007972/0.7349, allocations: 4.769 MB / 0.713 GB, free: 4.344 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002653/0.7375, allocations: 2.212 MB / 0.7151 GB, free: 1.742 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.498e-05/0.7376, allocations: 69.02 kB / 0.7152 GB, free: 1.664 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 6.753e-06/0.7377, allocations: 0 / 0.7152 GB, free: 1.664 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.3448/1.082, allocations: 39.68 MB / 0.7539 GB, free: 144.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.879e-05/1.083, allocations: 120 kB / 0.7541 GB, free: 144 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004555/1.087, allocations: 4.317 MB / 0.7583 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007349/1.088, allocations: 85.58 kB / 0.7584 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001507/1.089, allocations: 3.967 MB / 0.7622 GB, free: 136.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001474/1.091, allocations: 1.563 MB / 0.7638 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002007/1.093, allocations: 1.528 MB / 0.7652 GB, free: 133.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.064e-05/1.093, allocations: 301.1 kB / 0.7655 GB, free: 132.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0044/1.097, allocations: 3.946 MB / 0.7694 GB, free: 128.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005577/1.103, allocations: 7.688 MB / 0.7769 GB, free: 119.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01176/1.115, allocations: 12.66 MB / 0.7893 GB, free: 104.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.241e-05/1.115, allocations: 36 kB / 0.7893 GB, free: 104.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02342/1.138, allocations: 14.2 MB / 0.8032 GB, free: 90.62 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.797e-05/1.138, allocations: 63.94 kB / 0.8032 GB, free: 90.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001154/1.139, allocations: 128 kB / 0.8033 GB, free: 90.44 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007014/1.146, allocations: 2.671 MB / 0.806 GB, free: 87.76 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005904/1.152, allocations: 1.758 MB / 0.8077 GB, free: 86 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01641/1.168, allocations: 15.23 MB / 0.8225 GB, free: 70.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005797/1.174, allocations: 491.6 kB / 0.823 GB, free: 70.01 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001285/1.175, allocations: 435.7 kB / 0.8234 GB, free: 69.59 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (911): * Single equations (assignments): 903 * Array equations: 6 * 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 {(6,32,69.4%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004718/1.18, allocations: 2.868 MB / 0.8262 GB, free: 66.71 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009705/1.181, allocations: 484.8 kB / 0.8267 GB, free: 66.24 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01604/1.197, allocations: 10.56 MB / 0.837 GB, free: 55.62 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.219e-05/1.197, allocations: 63.73 kB / 0.8371 GB, free: 55.56 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.991e-05/1.197, allocations: 12 kB / 0.8371 GB, free: 55.55 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.687e-05/1.197, allocations: 16.06 kB / 0.8371 GB, free: 55.53 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03142/1.229, allocations: 21.24 MB / 0.8578 GB, free: 34.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.061e-05/1.229, allocations: 8 kB / 0.8578 GB, free: 34.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003102/1.232, allocations: 0.6825 MB / 0.8585 GB, free: 33.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006685/1.238, allocations: 2.482 MB / 0.8609 GB, free: 30.93 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007276/1.239, allocations: 80 kB / 0.861 GB, free: 30.85 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01436/1.254, allocations: 13.83 MB / 0.8745 GB, free: 16.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/1.254, allocations: 15.94 kB / 0.8745 GB, free: 16.71 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0204/1.274, allocations: 15.13 MB / 0.8893 GB, free: 1.309 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001186/1.275, allocations: 0.5134 MB / 0.8898 GB, free: 0.7734 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001387/1.277, allocations: 79.86 kB / 0.8899 GB, free: 0.6992 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003346/1.28, allocations: 315.9 kB / 0.8902 GB, free: 400 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00109/1.281, allocations: 254 kB / 0.8904 GB, free: 144 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005643/1.282, allocations: 115.9 kB / 0.8905 GB, free: 28 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005043/1.287, allocations: 2.712 MB / 0.8932 GB, free: 13.32 MB / 0.5762 GB Notification: Performance of sort global known variables: time 5.01e-07/1.287, allocations: 3.938 kB / 0.8932 GB, free: 13.32 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007598/1.294, allocations: 1.613 MB / 0.8948 GB, free: 11.71 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (334): * Single equations (assignments): 326 * Array equations: 6 * 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 {(1,9,100.0%), (6,29,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02792/1.322, allocations: 15.85 MB / 0.9103 GB, free: 11.58 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01697/1.339, allocations: 9.852 MB / 0.9199 GB, free: 1.715 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/1.339, allocations: 1.812 kB / 0.9199 GB, free: 1.715 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007404/1.347, allocations: 4.31 MB / 0.9241 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004165/1.351, allocations: 0.7303 MB / 0.9248 GB, free: 12.66 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3641/1.715, allocations: 70.21 MB / 0.9934 GB, free: 186.5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004477/1.72, allocations: 4.542 MB / 0.9978 GB, free: 181.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005382/1.725, allocations: 2.725 MB / 1 GB, free: 179.2 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004367/1.729, allocations: 2.823 MB / 1.003 GB, free: 176.4 MB / 0.6231 GB Notification: Performance of SimCode: time 1.032e-06/1.729, allocations: 0 / 1.003 GB, free: 176.4 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1731/1.903, allocations: 113 MB / 1.114 GB, free: 63.93 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.98/23.88, allocations: 8.719 kB / 1.114 GB, free: 63.93 MB / 0.6231 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_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_Joints_Revolute2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches