Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute") translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00112/0.00112, allocations: 192.4 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 229.5 MB / 247.7 MB, free: 6.301 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007389/0.0007389, allocations: 98.16 kB / 299.8 MB, free: 5.34 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3293/0.3293, allocations: 45 MB / 397 MB, free: 31.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002416/0.0002416, allocations: 8 kB / 470.8 MB, free: 7.113 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2901, allocations: 63.1 MB / 0.5214 GB, free: 38.3 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01917/0.3094, allocations: 26.93 MB / 0.5477 GB, free: 19.26 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0136/0.323, allocations: 9.747 MB / 0.5572 GB, free: 11.12 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005179/0.3282, allocations: 121.2 kB / 0.5573 GB, free: 11.11 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001357/0.3296, allocations: 441.6 kB / 0.5577 GB, free: 10.95 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00383/0.3335, allocations: 1.635 MB / 0.5593 GB, free: 10.29 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.3345, allocations: 455.2 kB / 0.5597 GB, free: 10.14 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005235/0.3397, allocations: 5.083 MB / 0.5647 GB, free: 8.203 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002779/0.3425, allocations: 2.715 MB / 0.5674 GB, free: 6.332 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001519/0.3441, allocations: 1.039 MB / 0.5684 GB, free: 5.789 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001752/0.3458, allocations: 1.695 MB / 0.57 GB, free: 4.32 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002664/0.3461, allocations: 135.9 kB / 0.5702 GB, free: 4.188 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00139/0.3475, allocations: 0.8657 MB / 0.571 GB, free: 3.32 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008223/0.3483, allocations: 1.488 MB / 0.5725 GB, free: 1.828 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001032/0.3494, allocations: 1.798 MB / 0.5742 GB, free: 12 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005052/0.3544, allocations: 5.771 MB / 0.5798 GB, free: 10.22 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3545, allocations: 0 / 0.5798 GB, free: 10.22 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3545, allocations: 4 kB / 0.5799 GB, free: 10.22 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.558e-05/0.3545, allocations: 0 / 0.5799 GB, free: 10.22 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.004951/0.3595, allocations: 3.414 MB / 0.5832 GB, free: 6.738 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.3596, allocations: 16.02 kB / 0.5832 GB, free: 6.723 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009493/0.3691, allocations: 3.158 MB / 0.5863 GB, free: 3.555 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003328/0.3724, allocations: 1.858 MB / 0.5881 GB, free: 1.652 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001193/0.3725, allocations: 189 kB / 0.5883 GB, free: 1.465 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004763/0.373, allocations: 259.9 kB / 0.5885 GB, free: 1.211 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01428/0.3873, allocations: 10.47 MB / 0.5988 GB, free: 6.309 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.48e-05/0.3874, allocations: 31.8 kB / 0.5988 GB, free: 6.277 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003239/0.3878, allocations: 119.8 kB / 0.5989 GB, free: 6.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003742/0.3915, allocations: 2.553 MB / 0.6014 GB, free: 3.602 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01707/0.4086, allocations: 9.884 MB / 0.611 GB, free: 9.707 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04574/0.4544, allocations: 34.48 MB / 0.6447 GB, free: 6.398 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008508/0.4629, allocations: 5.173 MB / 0.6498 GB, free: 1.008 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002813/0.4658, allocations: 2.291 MB / 0.652 GB, free: 14.72 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001604/0.4674, allocations: 1.876 MB / 0.6538 GB, free: 12.51 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.951e-05/0.4675, allocations: 56.5 kB / 0.6539 GB, free: 12.45 MB / 474.7 MB Notification: Performance of pre-optimization done (n=229): time 4.458e-06/0.4675, allocations: 0 / 0.6539 GB, free: 12.45 MB / 474.7 MB Notification: Performance of matching and sorting (n=235): time 0.02983/0.4973, allocations: 13.93 MB / 0.6675 GB, free: 14.45 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.4974, allocations: 73.34 kB / 0.6676 GB, free: 14.37 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003779/0.5012, allocations: 2.615 MB / 0.6701 GB, free: 11.73 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001728/0.5014, allocations: 49.7 kB / 0.6702 GB, free: 11.68 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001989/0.5034, allocations: 2.635 MB / 0.6727 GB, free: 9.004 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009019/0.5043, allocations: 0.8557 MB / 0.6736 GB, free: 8.137 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002304/0.5045, allocations: 104 kB / 0.6737 GB, free: 8.035 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003502/0.5049, allocations: 0.5331 MB / 0.6742 GB, free: 7.496 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003141/0.508, allocations: 2.181 MB / 0.6763 GB, free: 5.309 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2287/0.7367, allocations: 5.046 MB / 0.6812 GB, free: 126.4 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009331/0.7461, allocations: 7.951 MB / 0.689 GB, free: 121.1 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-05/0.7462, allocations: 30.12 kB / 0.689 GB, free: 121.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.0114/0.7576, allocations: 7.838 MB / 0.6967 GB, free: 118.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.213e-05/0.7577, allocations: 48.97 kB / 0.6967 GB, free: 118.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001182/0.7579, allocations: 98.47 kB / 0.6968 GB, free: 118.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002045/0.7599, allocations: 0.7842 MB / 0.6976 GB, free: 118.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003884/0.7638, allocations: 1.188 MB / 0.6988 GB, free: 118.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005471/0.7693, allocations: 4.202 MB / 0.7029 GB, free: 116 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00315/0.7725, allocations: 294.6 kB / 0.7031 GB, free: 116 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004949/0.773, allocations: 299.4 kB / 0.7034 GB, free: 115.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 29 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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 (635): * Single equations (assignments): 628 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003028/0.7761, allocations: 2.02 MB / 0.7054 GB, free: 115.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003378/0.7764, allocations: 266.2 kB / 0.7057 GB, free: 115.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00751/0.7839, allocations: 4.712 MB / 0.7103 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.928e-05/0.784, allocations: 46.73 kB / 0.7103 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.784, allocations: 3.594 kB / 0.7103 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-05/0.7841, allocations: 9.797 kB / 0.7103 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01431/0.7984, allocations: 10.53 MB / 0.7206 GB, free: 109.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.485e-05/0.7984, allocations: 7.375 kB / 0.7206 GB, free: 109.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001335/0.7998, allocations: 357.8 kB / 0.7209 GB, free: 109.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00175/0.8015, allocations: 0.6599 MB / 0.7216 GB, free: 109.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001565/0.8017, allocations: 46.72 kB / 0.7216 GB, free: 109.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003527/0.8053, allocations: 3.646 MB / 0.7252 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.8053, allocations: 11.84 kB / 0.7252 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008107/0.8134, allocations: 7.123 MB / 0.7322 GB, free: 101.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006405/0.8141, allocations: 309 kB / 0.7325 GB, free: 101.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004246/0.8145, allocations: 43.98 kB / 0.7325 GB, free: 101.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001202/0.8157, allocations: 139.8 kB / 0.7326 GB, free: 101.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003559/0.8161, allocations: 133 kB / 0.7328 GB, free: 101.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001486/0.8163, allocations: 75.8 kB / 0.7328 GB, free: 101.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002008/0.8183, allocations: 1.596 MB / 0.7344 GB, free: 99.51 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.8183, allocations: 0 / 0.7344 GB, free: 99.51 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003993/0.8223, allocations: 0.9362 MB / 0.7353 GB, free: 98.57 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.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 (178): * Single equations (assignments): 171 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005367/0.8229, allocations: 178.8 kB / 0.7355 GB, free: 98.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007058/0.8299, allocations: 5.334 MB / 0.7407 GB, free: 93.09 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.557e-06/0.83, allocations: 4 kB / 0.7407 GB, free: 93.09 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002466/0.8325, allocations: 2.018 MB / 0.7427 GB, free: 91.05 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003622/0.8361, allocations: 348.2 kB / 0.743 GB, free: 90.72 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/0.849, allocations: 11.52 MB / 0.7542 GB, free: 79.09 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002501/0.8515, allocations: 3.168 MB / 0.7573 GB, free: 75.89 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003718/0.8553, allocations: 1.949 MB / 0.7592 GB, free: 73.93 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006137/0.8559, allocations: 203.4 kB / 0.7594 GB, free: 73.73 MB / 490.7 MB Notification: Performance of SimCode: time 6.32e-07/0.8559, allocations: 0 / 0.7594 GB, free: 73.73 MB / 490.7 MB Notification: Performance of Templates: time 0.04343/0.8994, allocations: 29.29 MB / 0.788 GB, free: 44.66 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches