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.001032/0.001031, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.001237/0.001237, allocations: 187.8 kB / 18.71 MB, free: 4.344 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.388/1.388, allocations: 222.9 MB / 242.4 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.2196/0.2196, allocations: 44.19 MB / 336.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001294, allocations: 59.91 kB / 470.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4358/0.4372, allocations: 60.83 MB / 0.5189 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3): time 0.0149/0.4521, allocations: 13.15 MB / 0.5317 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01136/0.4635, allocations: 4.286 MB / 0.5359 GB, free: 6.777 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003812/0.4674, allocations: 83.22 kB / 0.536 GB, free: 6.762 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007826/0.4752, allocations: 3.72 MB / 0.5396 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007737/0.4831, allocations: 2.027 MB / 0.5416 GB, free: 2.828 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002801/0.4859, allocations: 0.8088 MB / 0.5424 GB, free: 2.262 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008407/0.4944, allocations: 4.222 MB / 0.5465 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006567/0.501, allocations: 4.85 MB / 0.5513 GB, free: 10.73 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004451/0.5055, allocations: 1.865 MB / 0.5531 GB, free: 8.863 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004881/0.5104, allocations: 2.48 MB / 0.5555 GB, free: 6.375 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001423/0.5118, allocations: 420 kB / 0.5559 GB, free: 5.965 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00288/0.5147, allocations: 1.151 MB / 0.557 GB, free: 4.812 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002167/0.5169, allocations: 2.24 MB / 0.5592 GB, free: 2.566 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003931/0.5209, allocations: 2.645 MB / 0.5618 GB, free: 15.9 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01046/0.5313, allocations: 8.237 MB / 0.5699 GB, free: 7.641 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.5314, allocations: 0 / 0.5699 GB, free: 7.641 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.5314, allocations: 0 / 0.5699 GB, free: 7.641 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000312/0.5317, allocations: 0 / 0.5699 GB, free: 7.641 MB / 430.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.02132/0.553, allocations: 6.235 MB / 0.5759 GB, free: 1.336 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.5531, allocations: 11.97 kB / 0.576 GB, free: 1.324 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007273/0.5604, allocations: 1.963 MB / 0.5779 GB, free: 15.35 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007156/0.5676, allocations: 2.718 MB / 0.5805 GB, free: 12.57 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003171/0.5679, allocations: 295.6 kB / 0.5808 GB, free: 12.29 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001709/0.5696, allocations: 395.7 kB / 0.5812 GB, free: 11.9 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02796/0.5976, allocations: 12.39 MB / 0.5933 GB, free: 14.8 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002279/0.5979, allocations: 51.5 kB / 0.5933 GB, free: 14.75 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001372/0.5993, allocations: 183.8 kB / 0.5935 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00425/0.6035, allocations: 2.261 MB / 0.5957 GB, free: 12.3 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0247/0.6283, allocations: 11.36 MB / 0.6068 GB, free: 0.9297 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07661/0.7049, allocations: 46.28 MB / 0.652 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02469/0.7296, allocations: 5.487 MB / 0.6574 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006784/0.7365, allocations: 3.44 MB / 0.6607 GB, free: 8.418 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001417/0.7379, allocations: 0.6909 MB / 0.6614 GB, free: 7.613 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.067e-05/0.738, allocations: 55.88 kB / 0.6615 GB, free: 7.551 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=203): time 6.603e-06/0.738, allocations: 4 kB / 0.6615 GB, free: 7.547 MB / 0.5137 GB Notification: Performance of matching and sorting (n=234): time 0.07751/0.8156, allocations: 27.34 MB / 0.6882 GB, free: 12.06 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.8157, allocations: 154.5 kB / 0.6883 GB, free: 11.88 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005959/0.8217, allocations: 4.411 MB / 0.6926 GB, free: 7.445 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005869/0.8223, allocations: 61.7 kB / 0.6927 GB, free: 7.379 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002441/0.8247, allocations: 3.423 MB / 0.696 GB, free: 3.906 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001379/0.8261, allocations: 0.883 MB / 0.6969 GB, free: 3.012 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002001/0.8281, allocations: 1.422 MB / 0.6983 GB, free: 1.578 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001038/0.8282, allocations: 305.1 kB / 0.6986 GB, free: 1.277 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004534/0.8328, allocations: 3.281 MB / 0.7018 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007085/0.8399, allocations: 7.112 MB / 0.7087 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.362/1.202, allocations: 11.18 MB / 0.7196 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001259/1.202, allocations: 39.53 kB / 0.7197 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=858) (initialization): time 0.02505/1.227, allocations: 11.32 MB / 0.7307 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001358/1.227, allocations: 62.47 kB / 0.7308 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002695/1.228, allocations: 139.2 kB / 0.7309 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003174/1.231, allocations: 1.12 MB / 0.732 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006309/1.237, allocations: 1.696 MB / 0.7337 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007297/1.245, allocations: 6.351 MB / 0.7399 GB, free: 151.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005721/1.25, allocations: 399.1 kB / 0.7402 GB, free: 151 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001508/1.252, allocations: 443.7 kB / 0.7407 GB, free: 151 MB / 0.5606 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.005069/1.257, allocations: 2.336 MB / 0.7429 GB, free: 150 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001484/1.258, allocations: 392.3 kB / 0.7433 GB, free: 150 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01102/1.269, allocations: 6.196 MB / 0.7494 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.221e-05/1.27, allocations: 26.3 kB / 0.7494 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.327e-05/1.27, allocations: 4 kB / 0.7494 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-05/1.27, allocations: 11.97 kB / 0.7494 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02535/1.295, allocations: 12.96 MB / 0.7621 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.282e-05/1.295, allocations: 4.312 kB / 0.7621 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002753/1.298, allocations: 0.546 MB / 0.7626 GB, free: 134.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002368/1.3, allocations: 0.9488 MB / 0.7635 GB, free: 133.1 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006104/1.301, allocations: 87.89 kB / 0.7636 GB, free: 133 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006756/1.308, allocations: 6.091 MB / 0.7696 GB, free: 126.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.067e-06/1.308, allocations: 8.969 kB / 0.7696 GB, free: 126.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01498/1.323, allocations: 10.47 MB / 0.7798 GB, free: 116.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002807/1.325, allocations: 0.8864 MB / 0.7807 GB, free: 115.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001296/1.327, allocations: 43.84 kB / 0.7807 GB, free: 115.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00302/1.33, allocations: 171.7 kB / 0.7809 GB, free: 115.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006943/1.331, allocations: 185.6 kB / 0.7811 GB, free: 115.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003818/1.331, allocations: 107.9 kB / 0.7812 GB, free: 115.1 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004958/1.336, allocations: 2.77 MB / 0.7839 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.1e-07/1.336, allocations: 0 / 0.7839 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007118/1.343, allocations: 1.213 MB / 0.785 GB, free: 111.1 MB / 0.5606 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.0009416/1.344, allocations: 187.5 kB / 0.7852 GB, free: 110.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01168/1.356, allocations: 7.752 MB / 0.7928 GB, free: 103.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/1.356, allocations: 0.8125 kB / 0.7928 GB, free: 103.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004192/1.36, allocations: 3.023 MB / 0.7957 GB, free: 100.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004758/1.365, allocations: 0.5071 MB / 0.7962 GB, free: 99.66 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02297/1.388, allocations: 11.92 MB / 0.8079 GB, free: 87.68 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006461/1.394, allocations: 3.67 MB / 0.8115 GB, free: 83.98 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006514/1.401, allocations: 2.261 MB / 0.8137 GB, free: 81.72 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002299/1.403, allocations: 419.1 kB / 0.8141 GB, free: 81.31 MB / 0.5606 GB Notification: Performance of SimCode: time 1.663e-06/1.403, allocations: 0 / 0.8141 GB, free: 81.31 MB / 0.5606 GB Notification: Performance of Templates: time 0.09346/1.497, allocations: 52.98 MB / 0.8658 GB, free: 28.64 MB / 0.5606 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/Rotor1D_3/Rotor1D_3.csv","/var/lib/jenkins/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