Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001239/0.001239, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001148/0.001148, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2192/0.2192, allocations: 46.09 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 73 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1198, allocations: 62.45 MB / 481.5 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.01207/0.1319, allocations: 11.04 MB / 492.5 MB, free: 9.461 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007536/0.1395, allocations: 3.838 MB / 496.3 MB, free: 5.613 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001489/0.141, allocations: 63.81 kB / 496.4 MB, free: 5.551 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004574/0.1456, allocations: 2.671 MB / 499.1 MB, free: 2.871 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004251/0.1499, allocations: 1.759 MB / 0.4891 GB, free: 1.105 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001606/0.1515, allocations: 0.6901 MB / 0.4898 GB, free: 424 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00496/0.1565, allocations: 3.579 MB / 0.4932 GB, free: 12.83 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004798/0.1613, allocations: 3.695 MB / 0.4969 GB, free: 9.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002673/0.164, allocations: 1.46 MB / 0.4983 GB, free: 7.605 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003168/0.1672, allocations: 1.998 MB / 0.5002 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009758/0.1682, allocations: 324 kB / 0.5005 GB, free: 5.285 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002467/0.1707, allocations: 1.038 MB / 0.5016 GB, free: 4.246 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002387/0.1731, allocations: 1.788 MB / 0.5033 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003567/0.1767, allocations: 2.089 MB / 0.5053 GB, free: 360 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.232/0.4088, allocations: 6.663 MB / 0.5119 GB, free: 18.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.4088, allocations: 1.281 kB / 0.5119 GB, free: 18.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.4088, allocations: 0.6562 kB / 0.5119 GB, free: 18.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003325/0.4091, allocations: 0 / 0.5119 GB, free: 18.53 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02195/0.4311, allocations: 5.075 MB / 0.5168 GB, free: 16.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.4312, allocations: 8.812 kB / 0.5168 GB, free: 16.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007537/0.4387, allocations: 1.854 MB / 0.5186 GB, free: 16.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006906/0.4457, allocations: 2.246 MB / 0.5208 GB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002666/0.446, allocations: 230.9 kB / 0.521 GB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001767/0.4477, allocations: 297.8 kB / 0.5213 GB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01871/0.4665, allocations: 10.05 MB / 0.5311 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001103/0.4666, allocations: 40.53 kB / 0.5312 GB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004285/0.467, allocations: 145.3 kB / 0.5313 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002501/0.4695, allocations: 1.806 MB / 0.5331 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01642/0.486, allocations: 9.024 MB / 0.5419 GB, free: 6.895 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04502/0.531, allocations: 37.07 MB / 0.5781 GB, free: 1.289 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01227/0.5433, allocations: 3.714 MB / 0.5817 GB, free: 13.44 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002195/0.5455, allocations: 1.706 MB / 0.5834 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008842/0.5465, allocations: 0.6843 MB / 0.5841 GB, free: 10.94 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.48e-05/0.5465, allocations: 46.31 kB / 0.5841 GB, free: 10.89 MB / 430.1 MB Notification: Performance of pre-optimization done (n=130): time 3.888e-06/0.5465, allocations: 4 kB / 0.5841 GB, free: 10.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=136): time 0.03987/0.5864, allocations: 12.88 MB / 0.5967 GB, free: 13.91 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.01e-05/0.5865, allocations: 145.2 kB / 0.5968 GB, free: 13.74 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005719/0.5922, allocations: 3.957 MB / 0.6007 GB, free: 9.801 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004124/0.5927, allocations: 41.7 kB / 0.6007 GB, free: 9.754 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002121/0.5948, allocations: 2.967 MB / 0.6036 GB, free: 6.805 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008413/0.5956, allocations: 0.547 MB / 0.6042 GB, free: 6.262 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001484/0.5971, allocations: 1.136 MB / 0.6053 GB, free: 5.117 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.114e-05/0.5972, allocations: 305.1 kB / 0.6056 GB, free: 4.816 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00287/0.6001, allocations: 1.935 MB / 0.6074 GB, free: 2.875 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005245/0.6054, allocations: 5.496 MB / 0.6128 GB, free: 11.64 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009792/0.6152, allocations: 8.065 MB / 0.6207 GB, free: 2.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.812e-05/0.6153, allocations: 39.94 kB / 0.6207 GB, free: 2.281 MB / 462.1 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01512/0.6305, allocations: 7.91 MB / 0.6285 GB, free: 10.53 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.4e-05/0.6306, allocations: 63.94 kB / 0.6285 GB, free: 10.46 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001212/0.6307, allocations: 133.9 kB / 0.6286 GB, free: 10.34 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002294/0.633, allocations: 0.9026 MB / 0.6295 GB, free: 9.43 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003956/0.637, allocations: 1.287 MB / 0.6308 GB, free: 8.141 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006141/0.6431, allocations: 5.181 MB / 0.6358 GB, free: 2.828 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004188/0.6473, allocations: 303 kB / 0.6361 GB, free: 2.535 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006584/0.648, allocations: 359.9 kB / 0.6365 GB, free: 2.184 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 579 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.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 (681): * Single equations (assignments): 677 * 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.003133/0.6512, allocations: 1.97 MB / 0.6384 GB, free: 208 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007129/0.6519, allocations: 327.8 kB / 0.6387 GB, free: 15.88 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00508/0.657, allocations: 2.79 MB / 0.6414 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.733e-05/0.657, allocations: 22.56 kB / 0.6415 GB, free: 13.06 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.234e-05/0.657, allocations: 4 kB / 0.6415 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.657, allocations: 3.984 kB / 0.6415 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01319/0.6702, allocations: 7.187 MB / 0.6485 GB, free: 5.812 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/0.6703, allocations: 0 / 0.6485 GB, free: 5.812 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/0.6714, allocations: 243.8 kB / 0.6487 GB, free: 5.574 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001979/0.6734, allocations: 0.7147 MB / 0.6494 GB, free: 4.855 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001291/0.6735, allocations: 31.97 kB / 0.6494 GB, free: 4.824 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005782/0.6793, allocations: 4.748 MB / 0.6541 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.311e-06/0.6794, allocations: 16.02 kB / 0.6541 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008334/0.6877, allocations: 5.119 MB / 0.6591 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001334/0.6891, allocations: 388.7 kB / 0.6595 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003819/0.6895, allocations: 27.98 kB / 0.6595 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001182/0.6907, allocations: 79.84 kB / 0.6596 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002869/0.691, allocations: 84.52 kB / 0.6596 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001295/0.6911, allocations: 54.7 kB / 0.6597 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003983/0.6951, allocations: 2.477 MB / 0.6621 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of sort global known variables: time 6.21e-07/0.6951, allocations: 0 / 0.6621 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004882/0.7, allocations: 0.879 MB / 0.663 GB, free: 6.805 MB / 0.4981 GB 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.0004312/0.7004, allocations: 151.9 kB / 0.6631 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006916/0.7074, allocations: 4.615 MB / 0.6676 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/0.7074, allocations: 4 kB / 0.6676 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001863/0.7093, allocations: 1.353 MB / 0.669 GB, free: 0.6836 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002471/0.7118, allocations: 435.7 kB / 0.6694 GB, free: 284 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01502/0.7268, allocations: 8.306 MB / 0.6775 GB, free: 7.938 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003596/0.7304, allocations: 3.068 MB / 0.6805 GB, free: 4.84 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003879/0.7343, allocations: 1.786 MB / 0.6822 GB, free: 3.051 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007029/0.7351, allocations: 251.3 kB / 0.6825 GB, free: 2.805 MB / 0.5137 GB Notification: Performance of SimCode: time 1.223e-06/0.7351, allocations: 0 / 0.6825 GB, free: 2.805 MB / 0.5137 GB Notification: Performance of Templates: time 0.2676/1.003, allocations: 30.02 MB / 0.7118 GB, free: 180.1 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches