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.001499/0.001499, allocations: 108.2 kB / 18.39 MB, free: 4.762 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.001781/0.001781, allocations: 182.9 kB / 19.32 MB, free: 3.832 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.411/1.411, allocations: 222.9 MB / 243 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.2136/0.2136, allocations: 44.18 MB / 337.4 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001232, allocations: 72.66 kB / 409.9 MB, free: 26.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.127, allocations: 60.83 MB / 470.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3): time 0.01522/0.1422, allocations: 13.15 MB / 483.9 MB, free: 416 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.1524, allocations: 4.267 MB / 488.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002851/0.1553, allocations: 87.75 kB / 488.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00777/0.1631, allocations: 3.726 MB / 491.9 MB, free: 8.301 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006407/0.1695, allocations: 2.019 MB / 494 MB, free: 6.273 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002269/0.1718, allocations: 0.8032 MB / 494.8 MB, free: 5.469 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007371/0.1792, allocations: 4.225 MB / 499 MB, free: 1.234 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007795/0.187, allocations: 4.86 MB / 0.492 GB, free: 12.31 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004362/0.1914, allocations: 1.865 MB / 0.4939 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004733/0.1962, allocations: 2.488 MB / 0.4963 GB, free: 7.941 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001742/0.198, allocations: 420 kB / 0.4967 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00352/0.2015, allocations: 1.151 MB / 0.4978 GB, free: 6.379 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003884/0.2054, allocations: 2.244 MB / 0.5 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004152/0.2096, allocations: 2.641 MB / 0.5026 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2905/0.5001, allocations: 8.225 MB / 0.5106 GB, free: 24.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.5002, allocations: 1 kB / 0.5106 GB, free: 24.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5002, allocations: 1.641 kB / 0.5106 GB, free: 24.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004122/0.5006, allocations: 0 / 0.5106 GB, free: 24.04 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.02629/0.5269, allocations: 6.24 MB / 0.5167 GB, free: 21.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.527, allocations: 11.34 kB / 0.5167 GB, free: 21.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007642/0.5346, allocations: 1.955 MB / 0.5186 GB, free: 21.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007277/0.5419, allocations: 2.718 MB / 0.5213 GB, free: 20.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002984/0.5422, allocations: 299.5 kB / 0.5216 GB, free: 20.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001764/0.544, allocations: 392.3 kB / 0.5219 GB, free: 20.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02494/0.569, allocations: 12.39 MB / 0.534 GB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000176/0.5692, allocations: 49.12 kB / 0.5341 GB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006294/0.5698, allocations: 190 kB / 0.5343 GB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003522/0.5734, allocations: 2.245 MB / 0.5365 GB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02049/0.5939, allocations: 11.36 MB / 0.5476 GB, free: 5.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06895/0.6629, allocations: 46.3 MB / 0.5928 GB, free: 6.254 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01771/0.6806, allocations: 5.48 MB / 0.5981 GB, free: 0.6328 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005081/0.6857, allocations: 3.428 MB / 0.6015 GB, free: 13.19 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001201/0.687, allocations: 0.6948 MB / 0.6022 GB, free: 12.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.867e-05/0.687, allocations: 65.31 kB / 0.6022 GB, free: 12.33 MB / 446.1 MB Notification: Performance of pre-optimization done (n=203): time 5.43e-06/0.687, allocations: 0 / 0.6022 GB, free: 12.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=234): time 0.1018/0.7888, allocations: 27.33 MB / 0.6289 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001312/0.789, allocations: 154.5 kB / 0.6291 GB, free: 0.7539 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01045/0.7995, allocations: 4.417 MB / 0.6334 GB, free: 12.32 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001154/0.8007, allocations: 64.89 kB / 0.6334 GB, free: 12.26 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003222/0.8039, allocations: 3.424 MB / 0.6368 GB, free: 8.848 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001986/0.8059, allocations: 0.8818 MB / 0.6376 GB, free: 7.973 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002752/0.8087, allocations: 1.426 MB / 0.639 GB, free: 6.539 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.8089, allocations: 305.1 kB / 0.6393 GB, free: 6.238 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005311/0.8142, allocations: 3.28 MB / 0.6425 GB, free: 2.953 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009232/0.8235, allocations: 7.109 MB / 0.6495 GB, free: 10.02 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01441/0.8379, allocations: 11.2 MB / 0.6604 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001288/0.8381, allocations: 44 kB / 0.6604 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of matching and sorting (n=858) (initialization): time 0.02379/0.8619, allocations: 11.31 MB / 0.6715 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001727/0.8621, allocations: 63.94 kB / 0.6715 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002292/0.8623, allocations: 138.6 kB / 0.6717 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003089/0.8654, allocations: 1.118 MB / 0.6728 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006804/0.8722, allocations: 1.7 MB / 0.6744 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008891/0.8811, allocations: 6.346 MB / 0.6806 GB, free: 8.988 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006918/0.8881, allocations: 403.6 kB / 0.681 GB, free: 8.594 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002033/0.8902, allocations: 439.9 kB / 0.6814 GB, free: 8.164 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.008937/0.8991, allocations: 2.337 MB / 0.6837 GB, free: 5.816 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001659/0.9008, allocations: 398.8 kB / 0.6841 GB, free: 5.422 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01113/0.9119, allocations: 6.183 MB / 0.6901 GB, free: 15.22 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.167e-05/0.912, allocations: 28 kB / 0.6902 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/0.912, allocations: 4 kB / 0.6902 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.506e-05/0.9121, allocations: 7.969 kB / 0.6902 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02268/0.9347, allocations: 13.05 MB / 0.7029 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.548e-05/0.9348, allocations: 4.312 kB / 0.7029 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002747/0.9375, allocations: 0.546 MB / 0.7034 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002436/0.94, allocations: 0.9488 MB / 0.7044 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003529/0.9404, allocations: 83.89 kB / 0.7045 GB, free: 476 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2769/1.217, allocations: 6.057 MB / 0.7104 GB, free: 186.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.036e-06/1.217, allocations: 9.219 kB / 0.7104 GB, free: 186.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01444/1.232, allocations: 10.47 MB / 0.7206 GB, free: 182.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002717/1.235, allocations: 0.8892 MB / 0.7215 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007336/1.235, allocations: 43.95 kB / 0.7215 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002112/1.237, allocations: 167.3 kB / 0.7217 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004701/1.238, allocations: 180.8 kB / 0.7218 GB, free: 182.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002422/1.238, allocations: 104.8 kB / 0.7219 GB, free: 182.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003821/1.242, allocations: 2.773 MB / 0.7247 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.6e-07/1.242, allocations: 3.844 kB / 0.7247 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006467/1.248, allocations: 1.209 MB / 0.7258 GB, free: 181.2 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.0008261/1.249, allocations: 185.3 kB / 0.726 GB, free: 181 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0123/1.262, allocations: 7.738 MB / 0.7336 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.156e-06/1.262, allocations: 0 / 0.7336 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003837/1.266, allocations: 3.019 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.003474/1.269, allocations: 0.5091 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.01965/1.289, allocations: 11.93 MB / 0.7487 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004024/1.293, allocations: 3.662 MB / 0.7522 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00519/1.298, allocations: 2.281 MB / 0.7545 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001923/1.3, allocations: 411.1 kB / 0.7549 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of SimCode: time 3.266e-06/1.3, allocations: 0 / 0.7549 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.08958/1.39, allocations: 50.57 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 cvode -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