Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.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_2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001467/0.001473, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.001604/0.001605, allocations: 199.3 kB / 19.23 MB, free: 3.914 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.382/1.382, allocations: 222.9 MB / 242.9 MB, free: 15.14 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.2115/0.2115, allocations: 44.18 MB / 337.3 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 58.5 kB / 409.1 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.115, allocations: 60.83 MB / 469.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.01201/0.127, allocations: 11.16 MB / 481.1 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00903/0.1361, allocations: 3.82 MB / 484.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002421/0.1386, allocations: 67.81 kB / 485 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005325/0.1439, allocations: 2.69 MB / 487.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005537/0.1495, allocations: 1.809 MB / 489.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001929/0.1515, allocations: 0.69 MB / 490.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005184/0.1567, allocations: 3.579 MB / 493.7 MB, free: 6.453 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004652/0.1614, allocations: 3.718 MB / 497.5 MB, free: 2.672 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002978/0.1644, allocations: 1.487 MB / 498.9 MB, free: 1.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003252/0.1677, allocations: 2.013 MB / 0.4892 GB, free: 15.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001013/0.1687, allocations: 324 kB / 0.4895 GB, free: 14.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002546/0.1713, allocations: 1.073 MB / 0.4906 GB, free: 13.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002296/0.1736, allocations: 1.835 MB / 0.4924 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00322/0.1768, allocations: 2.132 MB / 0.4945 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008368/0.1852, allocations: 6.597 MB / 0.5009 GB, free: 3.168 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1853, allocations: 0 / 0.5009 GB, free: 3.168 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1853, allocations: 3.938 kB / 0.5009 GB, free: 3.164 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002591/0.1855, allocations: 0 / 0.5009 GB, free: 3.164 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: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.2529/0.4384, allocations: 5.122 MB / 0.5059 GB, free: 46.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.4385, allocations: 9.875 kB / 0.5059 GB, free: 46.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008476/0.447, allocations: 1.854 MB / 0.5077 GB, free: 45.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006243/0.4533, allocations: 2.253 MB / 0.5099 GB, free: 44.53 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003103/0.4536, allocations: 227.3 kB / 0.5101 GB, free: 44.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001717/0.4554, allocations: 306.4 kB / 0.5104 GB, free: 44.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02442/0.4798, allocations: 10.23 MB / 0.5204 GB, free: 39.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001597/0.48, allocations: 40.25 kB / 0.5205 GB, free: 39.51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005871/0.4806, allocations: 150.8 kB / 0.5206 GB, free: 39.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003322/0.4839, allocations: 1.863 MB / 0.5224 GB, free: 38.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01701/0.501, allocations: 9.183 MB / 0.5314 GB, free: 31 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0411/0.5421, allocations: 37.62 MB / 0.5681 GB, free: 8.363 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01328/0.5555, allocations: 3.725 MB / 0.5718 GB, free: 4.484 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002415/0.5579, allocations: 1.711 MB / 0.5734 GB, free: 2.758 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009902/0.5589, allocations: 0.6746 MB / 0.5741 GB, free: 1.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.065e-05/0.559, allocations: 43.12 kB / 0.5741 GB, free: 1.922 MB / 398.1 MB Notification: Performance of pre-optimization done (n=130): time 4.449e-06/0.559, allocations: 0 / 0.5741 GB, free: 1.922 MB / 398.1 MB Notification: Performance of matching and sorting (n=136): time 0.04324/0.6022, allocations: 12.93 MB / 0.5868 GB, free: 4.867 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.598e-05/0.6024, allocations: 145.1 kB / 0.5869 GB, free: 4.695 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005896/0.6083, allocations: 3.981 MB / 0.5908 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003729/0.6087, allocations: 41.7 kB / 0.5908 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002139/0.6108, allocations: 3.013 MB / 0.5938 GB, free: 13.63 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008285/0.6117, allocations: 0.5479 MB / 0.5943 GB, free: 13.08 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001556/0.6132, allocations: 1.15 MB / 0.5954 GB, free: 11.92 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.6133, allocations: 305.1 kB / 0.5957 GB, free: 11.62 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002835/0.6162, allocations: 1.932 MB / 0.5976 GB, free: 9.68 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005361/0.6216, allocations: 5.524 MB / 0.603 GB, free: 2.348 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00972/0.6313, allocations: 8.094 MB / 0.6109 GB, free: 8.465 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001126/0.6315, allocations: 36 kB / 0.6109 GB, free: 8.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=723) (initialization): time 0.01683/0.6483, allocations: 7.947 MB / 0.6187 GB, free: 484 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.8e-05/0.6485, allocations: 56 kB / 0.6188 GB, free: 428 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001599/0.6486, allocations: 132 kB / 0.6189 GB, free: 296 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00261/0.6513, allocations: 0.9025 MB / 0.6198 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004197/0.6555, allocations: 1.294 MB / 0.621 GB, free: 14.08 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006979/0.6625, allocations: 5.18 MB / 0.6261 GB, free: 8.766 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004516/0.667, allocations: 303.6 kB / 0.6264 GB, free: 8.469 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001142/0.6682, allocations: 360 kB / 0.6267 GB, free: 8.117 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[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 (684): * Single equations (assignments): 680 * 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.004107/0.6723, allocations: 1.998 MB / 0.6287 GB, free: 6.105 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007958/0.6731, allocations: 331.7 kB / 0.629 GB, free: 5.777 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0057/0.6789, allocations: 2.794 MB / 0.6317 GB, free: 2.969 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.426e-05/0.6789, allocations: 16 kB / 0.6317 GB, free: 2.953 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.679, allocations: 4 kB / 0.6317 GB, free: 2.949 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.419e-05/0.679, allocations: 7.969 kB / 0.6317 GB, free: 2.941 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01436/0.6934, allocations: 7.256 MB / 0.6388 GB, free: 11.61 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-05/0.6934, allocations: 0 / 0.6388 GB, free: 11.61 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001277/0.6947, allocations: 251.6 kB / 0.6391 GB, free: 11.37 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002181/0.6969, allocations: 0.7183 MB / 0.6398 GB, free: 10.65 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002095/0.6971, allocations: 35.97 kB / 0.6398 GB, free: 10.61 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006001/0.7031, allocations: 4.749 MB / 0.6444 GB, free: 5.734 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.7032, allocations: 4.031 kB / 0.6444 GB, free: 5.73 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008018/0.7112, allocations: 5.135 MB / 0.6495 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/0.7123, allocations: 388.8 kB / 0.6498 GB, free: 168 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004966/0.7128, allocations: 24 kB / 0.6499 GB, free: 144 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/0.7141, allocations: 75.89 kB / 0.6499 GB, free: 68 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003221/0.7145, allocations: 100.5 kB / 0.65 GB, free: 15.96 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/0.7146, allocations: 47.95 kB / 0.6501 GB, free: 15.91 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004198/0.7188, allocations: 2.485 MB / 0.6525 GB, free: 13.45 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7188, allocations: 0 / 0.6525 GB, free: 13.45 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005052/0.7239, allocations: 0.9012 MB / 0.6534 GB, free: 12.55 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.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 (104): * Single equations (assignments): 100 * 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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004257/0.7243, allocations: 153.7 kB / 0.6535 GB, free: 12.39 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008966/0.7333, allocations: 5.077 MB / 0.6585 GB, free: 7.34 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.7334, allocations: 0 / 0.6585 GB, free: 7.34 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001964/0.7353, allocations: 1.368 MB / 0.6598 GB, free: 5.965 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002864/0.7382, allocations: 429.2 kB / 0.6602 GB, free: 5.559 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01575/0.754, allocations: 8.968 MB / 0.669 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00342/0.7574, allocations: 3.109 MB / 0.672 GB, free: 9.391 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001037/0.7585, allocations: 295.3 kB / 0.6723 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of SimCode: time 8.42e-07/0.7585, allocations: 0 / 0.6723 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of Templates: time 0.3125/1.071, allocations: 71.25 MB / 0.7419 GB, free: 141.2 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/Rotor1D_2/Rotor1D_2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches