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.001557/0.001558, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.001841/0.001841, allocations: 194 kB / 18.77 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.249/2.249, allocations: 222.9 MB / 242.5 MB, free: 13.77 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.4037/0.4037, allocations: 44.18 MB / 336.8 MB, free: 2.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001824/0.001824, allocations: 69.3 kB / 408.4 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.174/0.1759, allocations: 60.84 MB / 469.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3): time 0.5657/0.7416, allocations: 65.59 MB / 0.5223 GB, free: 9.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04983/0.7915, allocations: 12.95 MB / 0.5349 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02473/0.8163, allocations: 283.2 kB / 0.5352 GB, free: 5.648 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01101/0.8274, allocations: 3.72 MB / 0.5388 GB, free: 4.523 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009548/0.837, allocations: 1.897 MB / 0.5407 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003944/0.841, allocations: 0.7438 MB / 0.5414 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01277/0.8538, allocations: 6.239 MB / 0.5475 GB, free: 288 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01067/0.8645, allocations: 4.841 MB / 0.5522 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005647/0.8703, allocations: 1.66 MB / 0.5538 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006991/0.8773, allocations: 2.656 MB / 0.5564 GB, free: 9.234 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002373/0.8798, allocations: 312 kB / 0.5567 GB, free: 8.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005377/0.8852, allocations: 1.104 MB / 0.5578 GB, free: 7.867 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005099/0.8903, allocations: 2.159 MB / 0.5599 GB, free: 5.711 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0083/0.8987, allocations: 2.549 MB / 0.5624 GB, free: 3.156 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01456/0.9133, allocations: 6.491 MB / 0.5687 GB, free: 12.84 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.662e-05/0.9135, allocations: 4 kB / 0.5687 GB, free: 12.84 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.9136, allocations: 0 / 0.5687 GB, free: 12.84 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004904/0.9141, allocations: 0 / 0.5687 GB, free: 12.84 MB / 414.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.04478/0.9589, allocations: 6.241 MB / 0.5748 GB, free: 6.637 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.099e-05/0.959, allocations: 8.031 kB / 0.5748 GB, free: 6.629 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01366/0.9726, allocations: 1.955 MB / 0.5767 GB, free: 4.668 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01131/0.984, allocations: 2.675 MB / 0.5794 GB, free: 1.965 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000586/0.9847, allocations: 294.8 kB / 0.5796 GB, free: 1.715 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003178/0.9879, allocations: 395.3 kB / 0.58 GB, free: 1.367 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0457/1.034, allocations: 12.39 MB / 0.5921 GB, free: 4.391 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005514/1.034, allocations: 51.5 kB / 0.5922 GB, free: 4.34 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003298/1.038, allocations: 186.7 kB / 0.5923 GB, free: 4.195 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007666/1.045, allocations: 2.249 MB / 0.5945 GB, free: 1.957 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04327/1.089, allocations: 11.36 MB / 0.6056 GB, free: 6.578 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1092/1.198, allocations: 46.49 MB / 0.651 GB, free: 7.195 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02935/1.227, allocations: 5.479 MB / 0.6564 GB, free: 1.566 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007368/1.235, allocations: 3.437 MB / 0.6597 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00172/1.237, allocations: 0.6981 MB / 0.6604 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.211e-05/1.237, allocations: 59.75 kB / 0.6605 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=203): time 1.262e-05/1.237, allocations: 7.984 kB / 0.6605 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of matching and sorting (n=234): time 0.135/1.372, allocations: 27.35 MB / 0.6872 GB, free: 1.781 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001663/1.372, allocations: 154.5 kB / 0.6873 GB, free: 1.602 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01469/1.387, allocations: 4.415 MB / 0.6917 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001131/1.388, allocations: 61.7 kB / 0.6917 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004886/1.393, allocations: 3.417 MB / 0.695 GB, free: 9.68 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002325/1.395, allocations: 0.8819 MB / 0.6959 GB, free: 8.805 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003939/1.399, allocations: 1.422 MB / 0.6973 GB, free: 7.371 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001421/1.399, allocations: 309.1 kB / 0.6976 GB, free: 7.066 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007972/1.407, allocations: 3.28 MB / 0.7008 GB, free: 3.781 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4664/1.874, allocations: 7.112 MB / 0.7077 GB, free: 184.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02431/1.898, allocations: 11.19 MB / 0.7187 GB, free: 177.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005597/1.899, allocations: 38.62 kB / 0.7187 GB, free: 177.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=858) (initialization): time 0.039/1.938, allocations: 11.32 MB / 0.7298 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005741/1.938, allocations: 63.12 kB / 0.7298 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006292/1.939, allocations: 134 kB / 0.7299 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004434/1.944, allocations: 1.124 MB / 0.731 GB, free: 173.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0101/1.954, allocations: 1.703 MB / 0.7327 GB, free: 173 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01211/1.966, allocations: 6.002 MB / 0.7386 GB, free: 170 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0104/1.976, allocations: 408 kB / 0.739 GB, free: 169.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002533/1.979, allocations: 445.5 kB / 0.7394 GB, free: 169.9 MB / 0.5294 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.009554/1.989, allocations: 2.331 MB / 0.7417 GB, free: 168.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002298/1.991, allocations: 392.9 kB / 0.742 GB, free: 168.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01659/2.007, allocations: 6.197 MB / 0.7481 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.911e-05/2.008, allocations: 24 kB / 0.7481 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.759e-05/2.008, allocations: 4 kB / 0.7481 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.886e-05/2.008, allocations: 9.797 kB / 0.7481 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03868/2.046, allocations: 13.07 MB / 0.7609 GB, free: 152.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.269e-05/2.047, allocations: 4 kB / 0.7609 GB, free: 152.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004447/2.051, allocations: 0.54 MB / 0.7614 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003775/2.055, allocations: 0.9575 MB / 0.7623 GB, free: 150.7 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001218/2.056, allocations: 79.89 kB / 0.7624 GB, free: 150.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009891/2.066, allocations: 5.732 MB / 0.768 GB, free: 144.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.13e-05/2.066, allocations: 7.438 kB / 0.768 GB, free: 144.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02227/2.088, allocations: 10.47 MB / 0.7782 GB, free: 134.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003713/2.092, allocations: 0.8901 MB / 0.7791 GB, free: 133.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002352/2.095, allocations: 40 kB / 0.7792 GB, free: 133.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004996/2.1, allocations: 171.8 kB / 0.7793 GB, free: 133.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001369/2.101, allocations: 181.6 kB / 0.7795 GB, free: 133.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009028/2.102, allocations: 107.9 kB / 0.7796 GB, free: 133 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008695/2.111, allocations: 2.774 MB / 0.7823 GB, free: 130.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.162e-06/2.111, allocations: 0 / 0.7823 GB, free: 130.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01163/2.122, allocations: 1.207 MB / 0.7835 GB, free: 129 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.001383/2.124, allocations: 191.5 kB / 0.7837 GB, free: 128.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01682/2.141, allocations: 7.716 MB / 0.7912 GB, free: 121.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.447e-05/2.141, allocations: 0 / 0.7912 GB, free: 121.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006524/2.147, allocations: 3.013 MB / 0.7941 GB, free: 118.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007585/2.155, allocations: 495 kB / 0.7946 GB, free: 117.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03768/2.193, allocations: 14.9 MB / 0.8092 GB, free: 102.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007033/2.2, allocations: 3.662 MB / 0.8127 GB, free: 99.03 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002764/2.203, allocations: 467 kB / 0.8132 GB, free: 98.57 MB / 0.5294 GB Notification: Performance of SimCode: time 2.385e-06/2.203, allocations: 3.938 kB / 0.8132 GB, free: 98.57 MB / 0.5294 GB Notification: Performance of Templates: time 0.4348/2.637, allocations: 93.86 MB / 0.9048 GB, free: 170 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 -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