Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.RevoluteInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization") translateModel(ModelicaTest.MultiBody.Joints.RevoluteInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008684/0.0008684, allocations: 174.1 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 225.7 MB / 243.9 MB, free: 8.461 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 93.72 kB / 295.1 MB, free: 9.512 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3887/0.3887, allocations: 44.33 MB / 390.5 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003119/0.000312, allocations: 11.98 kB / 463.1 MB, free: 500 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.366/0.3663, allocations: 61.9 MB / 0.5127 GB, free: 37.77 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.03538/0.4017, allocations: 31.51 MB / 0.5435 GB, free: 15.47 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02292/0.4247, allocations: 10.65 MB / 0.5539 GB, free: 6.762 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007601/0.4324, allocations: 147.6 kB / 0.5541 GB, free: 6.738 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001416/0.4338, allocations: 375.4 kB / 0.5544 GB, free: 6.594 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004987/0.4388, allocations: 1.56 MB / 0.5559 GB, free: 5.922 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001592/0.4404, allocations: 0.5501 MB / 0.5565 GB, free: 5.699 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006951/0.4474, allocations: 4.747 MB / 0.5611 GB, free: 4.285 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006576/0.454, allocations: 3.783 MB / 0.5648 GB, free: 2.301 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002471/0.4565, allocations: 1.069 MB / 0.5658 GB, free: 1.93 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003217/0.4598, allocations: 1.596 MB / 0.5674 GB, free: 1.43 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005643/0.4603, allocations: 117.8 kB / 0.5675 GB, free: 1.426 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002749/0.4631, allocations: 0.9383 MB / 0.5684 GB, free: 1.188 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002315/0.4654, allocations: 1.409 MB / 0.5698 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002717/0.4682, allocations: 1.684 MB / 0.5715 GB, free: 15.57 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009476/0.4777, allocations: 5.429 MB / 0.5768 GB, free: 11.39 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.4777, allocations: 0 / 0.5768 GB, free: 11.39 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.4777, allocations: 0 / 0.5768 GB, free: 11.39 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001606/0.4779, allocations: 0 / 0.5768 GB, free: 11.39 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.009982/0.4879, allocations: 3.316 MB / 0.58 GB, free: 8.008 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.264e-05/0.488, allocations: 8.031 kB / 0.58 GB, free: 8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008796/0.4968, allocations: 1.817 MB / 0.5818 GB, free: 6.176 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004431/0.5013, allocations: 1.916 MB / 0.5836 GB, free: 4.199 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/0.5015, allocations: 193.2 kB / 0.5838 GB, free: 4.008 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008402/0.5023, allocations: 255.7 kB / 0.5841 GB, free: 3.758 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01563/0.518, allocations: 8.428 MB / 0.5923 GB, free: 10.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001895/0.5182, allocations: 39.59 kB / 0.5923 GB, free: 10.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008053/0.5191, allocations: 123.9 kB / 0.5925 GB, free: 10.5 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003816/0.5229, allocations: 1.699 MB / 0.5941 GB, free: 8.805 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01552/0.5384, allocations: 7.067 MB / 0.601 GB, free: 1.73 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0488/0.5873, allocations: 34.16 MB / 0.6344 GB, free: 14.58 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007449/0.5948, allocations: 3.255 MB / 0.6376 GB, free: 11.16 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001975/0.5968, allocations: 1.466 MB / 0.639 GB, free: 9.684 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007067/0.6039, allocations: 4.361 MB / 0.6433 GB, free: 5.113 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.296e-05/0.604, allocations: 51.11 kB / 0.6433 GB, free: 5.055 MB / 458.7 MB Notification: Performance of pre-optimization done (n=121): time 4.328e-06/0.604, allocations: 0 / 0.6433 GB, free: 5.055 MB / 458.7 MB Notification: Performance of matching and sorting (n=129): time 0.02653/0.6306, allocations: 11.48 MB / 0.6545 GB, free: 9.422 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.801e-05/0.6307, allocations: 174.8 kB / 0.6547 GB, free: 9.215 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005191/0.6359, allocations: 3.69 MB / 0.6583 GB, free: 5.531 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002424/0.6362, allocations: 41.7 kB / 0.6583 GB, free: 5.484 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002001/0.6382, allocations: 2.748 MB / 0.661 GB, free: 2.695 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006963/0.6389, allocations: 0.5248 MB / 0.6615 GB, free: 2.164 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001989/0.6391, allocations: 104 kB / 0.6616 GB, free: 2.062 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003437/0.6394, allocations: 0.5292 MB / 0.6621 GB, free: 1.527 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002437/0.6419, allocations: 1.689 MB / 0.6638 GB, free: 15.83 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004524/0.6464, allocations: 5.112 MB / 0.6688 GB, free: 8.988 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00844/0.6549, allocations: 7.396 MB / 0.676 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-05/0.655, allocations: 36 kB / 0.676 GB, free: 15.84 MB / 0.4948 GB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01151/0.6665, allocations: 6.673 MB / 0.6826 GB, free: 9.16 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.223e-05/0.6666, allocations: 59.94 kB / 0.6826 GB, free: 9.102 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000123/0.6667, allocations: 120 kB / 0.6827 GB, free: 8.984 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006116/0.6673, allocations: 321.2 kB / 0.683 GB, free: 8.668 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003611/0.671, allocations: 1.244 MB / 0.6842 GB, free: 7.422 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002464/0.6734, allocations: 2.286 MB / 0.6865 GB, free: 4.996 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003617/0.6771, allocations: 287.5 kB / 0.6867 GB, free: 4.715 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004619/0.6776, allocations: 347.8 kB / 0.6871 GB, free: 4.379 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (668): * Single equations (assignments): 664 * Array equations: 3 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003048/0.6806, allocations: 1.795 MB / 0.6888 GB, free: 2.57 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005691/0.6812, allocations: 308 kB / 0.6891 GB, free: 2.266 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2648/0.946, allocations: 2.352 MB / 0.6914 GB, free: 142.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.709e-05/0.9461, allocations: 14.69 kB / 0.6914 GB, free: 142.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-05/0.9461, allocations: 7.75 kB / 0.6914 GB, free: 142.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.415e-05/0.9462, allocations: 5.922 kB / 0.6915 GB, free: 142.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01247/0.9587, allocations: 5.925 MB / 0.6972 GB, free: 141.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/0.9587, allocations: 2.969 kB / 0.6972 GB, free: 141.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008318/0.9596, allocations: 173.8 kB / 0.6974 GB, free: 141.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002148/0.9617, allocations: 0.7116 MB / 0.6981 GB, free: 141.2 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001044/0.9618, allocations: 21.12 kB / 0.6981 GB, free: 141.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00498/0.9668, allocations: 4.46 MB / 0.7025 GB, free: 138.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.9669, allocations: 6.844 kB / 0.7025 GB, free: 138.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006438/0.9733, allocations: 4.314 MB / 0.7067 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00115/0.9745, allocations: 363.9 kB / 0.707 GB, free: 137 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003104/0.9748, allocations: 26.11 kB / 0.7071 GB, free: 137 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/0.9759, allocations: 71.58 kB / 0.7071 GB, free: 137 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002267/0.9761, allocations: 75.03 kB / 0.7072 GB, free: 137 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.571e-05/0.9762, allocations: 41.58 kB / 0.7072 GB, free: 136.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003414/0.9797, allocations: 2.288 MB / 0.7095 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9797, allocations: 2.719 kB / 0.7095 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003866/0.9835, allocations: 0.8207 MB / 0.7103 GB, free: 136.1 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (96): * Single equations (assignments): 92 * Array equations: 3 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000367/0.9839, allocations: 162.5 kB / 0.7104 GB, free: 136 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005746/0.9897, allocations: 3.999 MB / 0.7143 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/0.9897, allocations: 0 / 0.7143 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001581/0.9913, allocations: 1.104 MB / 0.7154 GB, free: 134.1 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002851/0.9942, allocations: 378.7 kB / 0.7158 GB, free: 133.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0147/1.009, allocations: 9.018 MB / 0.7246 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003453/1.012, allocations: 2.788 MB / 0.7273 GB, free: 128 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005195/1.018, allocations: 1.66 MB / 0.7289 GB, free: 127.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007689/1.018, allocations: 211.8 kB / 0.7291 GB, free: 127.8 MB / 0.4948 GB Notification: Performance of SimCode: time 8.72e-07/1.018, allocations: 0 / 0.7291 GB, free: 127.8 MB / 0.4948 GB Notification: Performance of Templates: time 0.05612/1.075, allocations: 29.54 MB / 0.758 GB, free: 108.7 MB / 0.4948 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/RevoluteInitialization/RevoluteInitialization.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches