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.001767/0.001767, allocations: 104.6 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001988/0.001988, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.576/1.576, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2368/0.2368, allocations: 46.11 MB / 344.2 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002285/0.002285, allocations: 86 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1342, allocations: 62.45 MB / 480.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.01371/0.1479, allocations: 11.04 MB / 491.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008346/0.1563, allocations: 3.843 MB / 495 MB, free: 6.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001811/0.1582, allocations: 63.81 kB / 495.1 MB, free: 6.188 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005201/0.1635, allocations: 2.679 MB / 497.7 MB, free: 3.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004965/0.1684, allocations: 1.751 MB / 499.5 MB, free: 1.742 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001831/0.1703, allocations: 0.6823 MB / 0.4884 GB, free: 1.059 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00531/0.1756, allocations: 3.571 MB / 0.4919 GB, free: 13.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004622/0.1803, allocations: 3.699 MB / 0.4955 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002733/0.183, allocations: 1.472 MB / 0.497 GB, free: 8.242 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003341/0.1864, allocations: 1.986 MB / 0.4989 GB, free: 6.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008776/0.1873, allocations: 324 kB / 0.4992 GB, free: 5.934 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002211/0.1895, allocations: 1.045 MB / 0.5003 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002005/0.1916, allocations: 1.785 MB / 0.502 GB, free: 3.098 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002899/0.1945, allocations: 2.089 MB / 0.504 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2574/0.4519, allocations: 6.437 MB / 0.5103 GB, free: 17.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.165e-05/0.452, allocations: 1.312 kB / 0.5103 GB, free: 17.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.476e-06/0.452, allocations: 0 / 0.5103 GB, free: 17.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005119/0.4525, allocations: 0 / 0.5103 GB, free: 17.89 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.03222/0.4847, allocations: 5.076 MB / 0.5153 GB, free: 16.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.398e-05/0.4848, allocations: 10.03 kB / 0.5153 GB, free: 16.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008665/0.4935, allocations: 1.855 MB / 0.5171 GB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006821/0.5004, allocations: 2.202 MB / 0.5193 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002773/0.5007, allocations: 231.5 kB / 0.5195 GB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001875/0.5026, allocations: 299.8 kB / 0.5198 GB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02255/0.5251, allocations: 10.04 MB / 0.5296 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001531/0.5253, allocations: 43.97 kB / 0.5296 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006162/0.5259, allocations: 147.4 kB / 0.5298 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002961/0.5289, allocations: 1.798 MB / 0.5315 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0193/0.5482, allocations: 9.035 MB / 0.5403 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05672/0.605, allocations: 37.21 MB / 0.5767 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01844/0.6235, allocations: 3.714 MB / 0.5803 GB, free: 13.1 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004493/0.6281, allocations: 1.71 MB / 0.582 GB, free: 11.38 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001713/0.6298, allocations: 0.6849 MB / 0.5826 GB, free: 10.59 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.987e-05/0.63, allocations: 46.97 kB / 0.5827 GB, free: 10.54 MB / 430.1 MB Notification: Performance of pre-optimization done (n=130): time 1.525e-05/0.63, allocations: 0 / 0.5827 GB, free: 10.54 MB / 430.1 MB Notification: Performance of matching and sorting (n=136): time 0.072/0.702, allocations: 12.87 MB / 0.5952 GB, free: 13.57 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.7022, allocations: 149.9 kB / 0.5954 GB, free: 13.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01138/0.7136, allocations: 3.955 MB / 0.5993 GB, free: 9.465 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005206/0.7141, allocations: 41.7 kB / 0.5993 GB, free: 9.418 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00336/0.7175, allocations: 2.968 MB / 0.6022 GB, free: 6.469 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001362/0.7189, allocations: 0.5455 MB / 0.6027 GB, free: 5.926 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004184/0.7231, allocations: 1.141 MB / 0.6038 GB, free: 4.777 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.7233, allocations: 301.1 kB / 0.6041 GB, free: 4.48 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00446/0.7278, allocations: 1.935 MB / 0.606 GB, free: 2.539 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007879/0.7357, allocations: 5.506 MB / 0.6114 GB, free: 11.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01065/0.7464, allocations: 8.061 MB / 0.6193 GB, free: 1.984 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001265/0.7465, allocations: 39.94 kB / 0.6193 GB, free: 1.945 MB / 462.1 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01747/0.764, allocations: 7.916 MB / 0.627 GB, free: 10.26 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001547/0.7642, allocations: 60 kB / 0.6271 GB, free: 10.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002217/0.7644, allocations: 125.4 kB / 0.6272 GB, free: 10.08 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00282/0.7673, allocations: 0.9141 MB / 0.6281 GB, free: 9.164 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004629/0.7719, allocations: 1.287 MB / 0.6294 GB, free: 7.875 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007804/0.7797, allocations: 5.184 MB / 0.6344 GB, free: 2.559 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004896/0.7847, allocations: 295.7 kB / 0.6347 GB, free: 2.27 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001504/0.7862, allocations: 360.7 kB / 0.635 GB, free: 1.918 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.005957/0.7922, allocations: 1.969 MB / 0.637 GB, free: 15.94 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001172/0.7934, allocations: 331.7 kB / 0.6373 GB, free: 15.61 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006936/0.8003, allocations: 2.778 MB / 0.64 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.775e-05/0.8004, allocations: 20.03 kB / 0.64 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.747e-05/0.8004, allocations: 7.984 kB / 0.64 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-05/0.8004, allocations: 7.969 kB / 0.64 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01909/0.8195, allocations: 7.2 MB / 0.6471 GB, free: 5.535 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-05/0.8196, allocations: 4 kB / 0.6471 GB, free: 5.531 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001335/0.8209, allocations: 237.2 kB / 0.6473 GB, free: 5.301 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002377/0.8233, allocations: 0.7264 MB / 0.648 GB, free: 4.57 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002533/0.8236, allocations: 27.98 kB / 0.648 GB, free: 4.543 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006947/0.8306, allocations: 4.768 MB / 0.6527 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.8306, allocations: 4.031 kB / 0.6527 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009429/0.84, allocations: 5.14 MB / 0.6577 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001393/0.8415, allocations: 384.7 kB / 0.6581 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001031/0.8425, allocations: 24 kB / 0.6581 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001934/0.8445, allocations: 75.89 kB / 0.6582 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003973/0.8449, allocations: 90.5 kB / 0.6583 GB, free: 9.891 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000182/0.8451, allocations: 47.97 kB / 0.6583 GB, free: 9.844 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006418/0.8515, allocations: 2.477 MB / 0.6607 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8515, allocations: 0 / 0.6607 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.008711/0.8603, allocations: 0.8751 MB / 0.6616 GB, free: 6.512 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.001043/0.8613, allocations: 161.4 kB / 0.6617 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01051/0.8719, allocations: 5.071 MB / 0.6667 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/0.8719, allocations: 0 / 0.6667 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002635/0.8746, allocations: 1.359 MB / 0.668 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004295/0.8789, allocations: 430.8 kB / 0.6684 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01909/0.898, allocations: 8.408 MB / 0.6766 GB, free: 7.082 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004502/0.9025, allocations: 3.066 MB / 0.6796 GB, free: 3.988 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00453/0.9071, allocations: 1.786 MB / 0.6814 GB, free: 2.199 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007292/0.9078, allocations: 251.3 kB / 0.6816 GB, free: 1.953 MB / 0.5137 GB Notification: Performance of SimCode: time 9.82e-07/0.9078, allocations: 0 / 0.6816 GB, free: 1.953 MB / 0.5137 GB Notification: Performance of Templates: time 0.3238/1.232, allocations: 35.05 MB / 0.7158 GB, free: 197.1 MB / 0.545 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/Rotor1D_2/Rotor1D_2.csv","/var/lib/jenkins/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