Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute") translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001705/0.001705, allocations: 105 kB / 17.21 MB, free: 6.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001983/0.001983, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 222.9 MB / 241.8 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2191/0.2191, allocations: 44.18 MB / 336.1 MB, free: 2.992 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 68.56 kB / 407.7 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1118, allocations: 60.82 MB / 468.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.02733/0.1391, allocations: 29.72 MB / 498.2 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01573/0.1549, allocations: 6.82 MB / 0.4932 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004858/0.1598, allocations: 115.8 kB / 0.4933 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00336/0.1632, allocations: 1.281 MB / 0.4946 GB, free: 8.754 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004607/0.1679, allocations: 1.643 MB / 0.4962 GB, free: 7.105 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001515/0.1694, allocations: 447.2 kB / 0.4966 GB, free: 6.668 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006325/0.1758, allocations: 5.015 MB / 0.5015 GB, free: 1.648 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2479/0.4237, allocations: 1.982 MB / 0.5034 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002694/0.4264, allocations: 1.04 MB / 0.5045 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003535/0.43, allocations: 1.81 MB / 0.5062 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008652/0.4309, allocations: 168 kB / 0.5064 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002264/0.4331, allocations: 0.9461 MB / 0.5073 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001939/0.4351, allocations: 1.547 MB / 0.5088 GB, free: 11.33 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002334/0.4374, allocations: 1.843 MB / 0.5106 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008024/0.4455, allocations: 5.896 MB / 0.5164 GB, free: 9.742 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.4455, allocations: 0 / 0.5164 GB, free: 9.742 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.4455, allocations: 0 / 0.5164 GB, free: 9.742 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.00022/0.4457, allocations: 0.875 kB / 0.5164 GB, free: 9.742 MB / 382.1 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.01045/0.4562, allocations: 4.149 MB / 0.5204 GB, free: 7.988 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.4563, allocations: 13.62 kB / 0.5204 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01015/0.4664, allocations: 3.075 MB / 0.5234 GB, free: 7.594 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004502/0.471, allocations: 1.891 MB / 0.5253 GB, free: 6.902 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001465/0.4711, allocations: 189.3 kB / 0.5255 GB, free: 6.891 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006493/0.4718, allocations: 248.5 kB / 0.5257 GB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01444/0.4862, allocations: 10.49 MB / 0.536 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.021e-05/0.4863, allocations: 20.72 kB / 0.536 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003726/0.4867, allocations: 121.7 kB / 0.5361 GB, free: 2.062 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003747/0.4905, allocations: 2.554 MB / 0.5386 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01815/0.5086, allocations: 9.919 MB / 0.5483 GB, free: 8.113 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05561/0.5643, allocations: 34.46 MB / 0.5819 GB, free: 5.359 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01062/0.575, allocations: 5.194 MB / 0.587 GB, free: 15.95 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003465/0.5785, allocations: 2.293 MB / 0.5892 GB, free: 13.66 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001871/0.5804, allocations: 1.888 MB / 0.5911 GB, free: 11.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.491e-05/0.5805, allocations: 50.02 kB / 0.5911 GB, free: 11.39 MB / 446.1 MB Notification: Performance of pre-optimization done (n=229): time 5.761e-06/0.5805, allocations: 3.094 kB / 0.5911 GB, free: 11.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=235): time 0.03281/0.6133, allocations: 13.98 MB / 0.6048 GB, free: 13.38 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.195e-05/0.6134, allocations: 73.41 kB / 0.6049 GB, free: 13.29 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004299/0.6177, allocations: 2.635 MB / 0.6074 GB, free: 10.64 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000327/0.6181, allocations: 57.7 kB / 0.6075 GB, free: 10.57 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001689/0.6198, allocations: 2.636 MB / 0.6101 GB, free: 7.934 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008701/0.6206, allocations: 0.8463 MB / 0.6109 GB, free: 7.094 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001501/0.6221, allocations: 1.038 MB / 0.6119 GB, free: 6.047 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.6223, allocations: 311.6 kB / 0.6122 GB, free: 5.742 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003243/0.6255, allocations: 2.204 MB / 0.6144 GB, free: 3.531 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005356/0.6309, allocations: 5.07 MB / 0.6193 GB, free: 13.1 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009254/0.6402, allocations: 7.976 MB / 0.6271 GB, free: 4.137 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.697e-05/0.6403, allocations: 31.94 kB / 0.6271 GB, free: 4.105 MB / 478.1 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01689/0.6572, allocations: 7.883 MB / 0.6348 GB, free: 12.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001273/0.6574, allocations: 52.92 kB / 0.6349 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001458/0.6575, allocations: 96 kB / 0.635 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002428/0.6599, allocations: 0.7928 MB / 0.6357 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006176/0.6661, allocations: 1.185 MB / 0.6369 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009543/0.6757, allocations: 4.205 MB / 0.641 GB, free: 6.496 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00637/0.6821, allocations: 299.1 kB / 0.6413 GB, free: 6.207 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001376/0.6835, allocations: 304 kB / 0.6416 GB, free: 5.91 MB / 494.1 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.006895/0.6904, allocations: 2.018 MB / 0.6435 GB, free: 3.965 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008813/0.6913, allocations: 256.6 kB / 0.6438 GB, free: 3.711 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01619/0.7075, allocations: 4.732 MB / 0.6484 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001291/0.7077, allocations: 44 kB / 0.6485 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.22e-05/0.7078, allocations: 0 / 0.6485 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.848e-05/0.7078, allocations: 15.95 kB / 0.6485 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04122/0.7491, allocations: 10.53 MB / 0.6588 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-05/0.7491, allocations: 8 kB / 0.6588 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003536/0.7527, allocations: 363.5 kB / 0.6591 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004161/0.7569, allocations: 0.6568 MB / 0.6597 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004301/0.7573, allocations: 46.2 kB / 0.6598 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008747/0.7661, allocations: 3.658 MB / 0.6634 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.143e-05/0.7661, allocations: 11.94 kB / 0.6634 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02019/0.7864, allocations: 7.144 MB / 0.6704 GB, free: 8.125 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001504/0.7879, allocations: 309.7 kB / 0.6706 GB, free: 7.801 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009697/0.7889, allocations: 36 kB / 0.6707 GB, free: 7.766 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002601/0.7915, allocations: 149.9 kB / 0.6708 GB, free: 7.621 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006082/0.7922, allocations: 133 kB / 0.671 GB, free: 7.492 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003196/0.7925, allocations: 60 kB / 0.671 GB, free: 7.434 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005862/0.7984, allocations: 1.623 MB / 0.6726 GB, free: 5.801 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.202e-06/0.7984, allocations: 0 / 0.6726 GB, free: 5.801 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01053/0.809, allocations: 0.9326 MB / 0.6735 GB, free: 4.871 MB / 0.5137 GB 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.001112/0.8101, allocations: 177.6 kB / 0.6737 GB, free: 4.691 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01436/0.8245, allocations: 5.352 MB / 0.6789 GB, free: 15.35 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.211e-05/0.8246, allocations: 4 kB / 0.6789 GB, free: 15.35 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004749/0.8293, allocations: 2.019 MB / 0.6809 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003918/0.8333, allocations: 357 kB / 0.6812 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02688/0.8602, allocations: 11.45 MB / 0.6924 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006563/0.8668, allocations: 3.172 MB / 0.6955 GB, free: 14.23 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008659/0.8755, allocations: 1.949 MB / 0.6974 GB, free: 12.27 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001271/0.8768, allocations: 207.4 kB / 0.6976 GB, free: 12.07 MB / 0.545 GB Notification: Performance of SimCode: time 1.273e-06/0.8768, allocations: 0 / 0.6976 GB, free: 12.07 MB / 0.545 GB Notification: Performance of Templates: time 0.2611/1.138, allocations: 29.79 MB / 0.7267 GB, free: 202.6 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches