Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.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.Parts.Rotor1D.Rotor1D_3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1.phi|r1.w|r2.phi|r2.w|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1.phi|r1.w|r2.phi|r2.w|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001592/0.001592, allocations: 108.3 kB / 18.4 MB, free: 4.699 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.001747/0.001747, allocations: 187 kB / 19.34 MB, free: 3.77 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.338/1.338, allocations: 222.9 MB / 243 MB, free: 15.15 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.1795/0.1795, allocations: 44.17 MB / 337.4 MB, free: 2.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 64.41 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.108, allocations: 60.83 MB / 470.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3): time 0.01412/0.1221, allocations: 13.17 MB / 483.9 MB, free: 452 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007617/0.1298, allocations: 4.267 MB / 488.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00119/0.131, allocations: 83.75 kB / 488.2 MB, free: 12.08 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005904/0.1369, allocations: 3.722 MB / 492 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004369/0.1413, allocations: 2.031 MB / 494 MB, free: 6.305 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001583/0.1429, allocations: 0.7954 MB / 494.8 MB, free: 5.508 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004718/0.1476, allocations: 4.224 MB / 499 MB, free: 1.273 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004717/0.1524, allocations: 4.86 MB / 0.4921 GB, free: 12.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002471/0.1549, allocations: 1.865 MB / 0.4939 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003139/0.158, allocations: 2.484 MB / 0.4963 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007085/0.1587, allocations: 420 kB / 0.4967 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002002/0.1608, allocations: 1.155 MB / 0.4978 GB, free: 6.418 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001765/0.1625, allocations: 2.229 MB / 0.5 GB, free: 4.184 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002478/0.165, allocations: 2.645 MB / 0.5026 GB, free: 1.523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1794/0.3444, allocations: 8.231 MB / 0.5106 GB, free: 24.01 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3445, allocations: 1.156 kB / 0.5106 GB, free: 24.01 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3445, allocations: 0.625 kB / 0.5106 GB, free: 24.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002353/0.3447, allocations: 0.6562 kB / 0.5106 GB, free: 24.01 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: 1765 * Number of variables: 1765 Notification: Performance of Generate backend data structure: time 0.02294/0.3677, allocations: 6.24 MB / 0.5167 GB, free: 21.85 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.3677, allocations: 10.75 kB / 0.5167 GB, free: 21.85 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007575/0.3753, allocations: 1.959 MB / 0.5186 GB, free: 21.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006674/0.382, allocations: 2.715 MB / 0.5213 GB, free: 20.9 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002012/0.3822, allocations: 304 kB / 0.5216 GB, free: 20.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001043/0.3833, allocations: 396.2 kB / 0.522 GB, free: 20.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01935/0.4027, allocations: 12.39 MB / 0.5341 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001188/0.4028, allocations: 47.66 kB / 0.5341 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004881/0.4033, allocations: 183.2 kB / 0.5343 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003309/0.4066, allocations: 2.254 MB / 0.5365 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01831/0.4249, allocations: 11.36 MB / 0.5476 GB, free: 5.027 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05603/0.481, allocations: 46.29 MB / 0.5928 GB, free: 6.266 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01727/0.4983, allocations: 5.484 MB / 0.5981 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004283/0.5026, allocations: 3.434 MB / 0.6015 GB, free: 13.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009829/0.5036, allocations: 0.6947 MB / 0.6022 GB, free: 12.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.949e-05/0.5037, allocations: 59.23 kB / 0.6022 GB, free: 12.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=203): time 4.418e-06/0.5037, allocations: 0 / 0.6022 GB, free: 12.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=234): time 0.07319/0.5769, allocations: 27.33 MB / 0.6289 GB, free: 0.9531 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.017e-05/0.577, allocations: 165.2 kB / 0.6291 GB, free: 0.7617 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006335/0.5834, allocations: 4.412 MB / 0.6334 GB, free: 12.33 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000607/0.584, allocations: 57.7 kB / 0.6334 GB, free: 12.27 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002286/0.5863, allocations: 3.432 MB / 0.6368 GB, free: 8.852 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001143/0.5874, allocations: 0.8849 MB / 0.6377 GB, free: 7.977 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002049/0.5895, allocations: 1.418 MB / 0.639 GB, free: 6.551 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.965e-05/0.5896, allocations: 301.1 kB / 0.6393 GB, free: 6.254 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004565/0.5942, allocations: 3.285 MB / 0.6425 GB, free: 2.965 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007086/0.6013, allocations: 7.114 MB / 0.6495 GB, free: 10.02 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01399/0.6153, allocations: 11.19 MB / 0.6604 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000142/0.6155, allocations: 40 kB / 0.6605 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of matching and sorting (n=858) (initialization): time 0.02289/0.6384, allocations: 11.3 MB / 0.6715 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.6385, allocations: 71.56 kB / 0.6716 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001737/0.6387, allocations: 136 kB / 0.6717 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003043/0.6417, allocations: 1.125 MB / 0.6728 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007048/0.6488, allocations: 1.696 MB / 0.6744 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009001/0.6578, allocations: 6.347 MB / 0.6806 GB, free: 8.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006829/0.6647, allocations: 402.2 kB / 0.681 GB, free: 8.59 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001532/0.6663, allocations: 439.8 kB / 0.6814 GB, free: 8.16 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 613 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (819): * Single equations (assignments): 815 * 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 {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006117/0.6724, allocations: 2.342 MB / 0.6837 GB, free: 5.809 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001317/0.6737, allocations: 398.8 kB / 0.6841 GB, free: 5.414 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01188/0.6856, allocations: 6.185 MB / 0.6902 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-05/0.6857, allocations: 24 kB / 0.6902 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.697e-05/0.6858, allocations: 4 kB / 0.6902 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.583e-05/0.6858, allocations: 11.95 kB / 0.6902 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03106/0.7169, allocations: 13.03 MB / 0.7029 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.299e-05/0.7169, allocations: 4 kB / 0.7029 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003108/0.7201, allocations: 0.5421 MB / 0.7035 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002794/0.7229, allocations: 0.9453 MB / 0.7044 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006488/0.7235, allocations: 89.86 kB / 0.7045 GB, free: 484 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.242/0.9655, allocations: 6.065 MB / 0.7104 GB, free: 186.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.979e-06/0.9656, allocations: 7.812 kB / 0.7104 GB, free: 186.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01399/0.9796, allocations: 10.46 MB / 0.7206 GB, free: 182.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002609/0.9822, allocations: 0.8949 MB / 0.7215 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006394/0.9829, allocations: 41.11 kB / 0.7215 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002456/0.9853, allocations: 162.8 kB / 0.7217 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005268/0.9859, allocations: 190.3 kB / 0.7219 GB, free: 182.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002477/0.9861, allocations: 104.9 kB / 0.722 GB, free: 182.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003692/0.9898, allocations: 2.776 MB / 0.7247 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.91e-07/0.9898, allocations: 0 / 0.7247 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005428/0.9953, allocations: 1.208 MB / 0.7259 GB, free: 181.1 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,r1.phi,r1.w,r2.phi,r2.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 (206): * Single equations (assignments): 202 * 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 {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000463/0.9958, allocations: 184.7 kB / 0.726 GB, free: 181 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009248/1.005, allocations: 7.736 MB / 0.7336 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.243e-06/1.005, allocations: 4 kB / 0.7336 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003383/1.008, allocations: 3.024 MB / 0.7365 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002889/1.011, allocations: 0.5037 MB / 0.737 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01646/1.028, allocations: 11.91 MB / 0.7487 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003087/1.031, allocations: 3.669 MB / 0.7522 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004303/1.035, allocations: 2.269 MB / 0.7545 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001283/1.037, allocations: 411.1 kB / 0.7549 GB, free: 157.8 MB / 0.5294 GB Notification: Performance of SimCode: time 6.31e-07/1.037, allocations: 4 kB / 0.7549 GB, free: 157.8 MB / 0.5294 GB Notification: Performance of Templates: time 0.07624/1.113, allocations: 50.58 MB / 0.8042 GB, free: 107.5 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/Rotor1D_3/Rotor1D_3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches