Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.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_2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001747/0.001747, 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.002124/0.002125, 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.292/2.292, allocations: 222.9 MB / 242.4 MB, free: 15.48 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.391/0.391, allocations: 44.18 MB / 336.8 MB, free: 3.027 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002182/0.002182, allocations: 64.91 kB / 408.4 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.1739, allocations: 60.83 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.5222/0.6962, allocations: 49.62 MB / 0.5066 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03788/0.7341, allocations: 10.26 MB / 0.5167 GB, free: 9.598 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0179/0.7521, allocations: 210.8 kB / 0.5169 GB, free: 9.594 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008609/0.7608, allocations: 2.677 MB / 0.5195 GB, free: 8.801 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008843/0.7698, allocations: 1.682 MB / 0.5211 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003116/0.7729, allocations: 0.6517 MB / 0.5218 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01153/0.7845, allocations: 5.255 MB / 0.5269 GB, free: 6.758 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008074/0.7926, allocations: 3.709 MB / 0.5305 GB, free: 4.895 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005079/0.7978, allocations: 1.317 MB / 0.5318 GB, free: 4.246 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005702/0.8035, allocations: 2.151 MB / 0.5339 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001839/0.8054, allocations: 233.1 kB / 0.5341 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004551/0.81, allocations: 1.037 MB / 0.5351 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004054/0.8141, allocations: 1.77 MB / 0.5369 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005961/0.8201, allocations: 2.062 MB / 0.5389 GB, free: 220 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01097/0.8311, allocations: 5.363 MB / 0.5441 GB, free: 12.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.04e-05/0.8312, allocations: 0 / 0.5441 GB, free: 12.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.8312, allocations: 0 / 0.5441 GB, free: 12.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003306/0.8315, allocations: 0 / 0.5441 GB, free: 12.5 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.03069/0.8622, allocations: 5.128 MB / 0.5491 GB, free: 7.402 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.425e-05/0.8623, allocations: 15.97 kB / 0.5491 GB, free: 7.387 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01215/0.8745, allocations: 1.85 MB / 0.5509 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01022/0.8847, allocations: 2.256 MB / 0.5531 GB, free: 3.242 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005263/0.8854, allocations: 229.8 kB / 0.5534 GB, free: 3.051 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003254/0.8887, allocations: 298.1 kB / 0.5536 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03745/0.9262, allocations: 10.23 MB / 0.5636 GB, free: 8.02 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005328/0.9268, allocations: 47.58 kB / 0.5637 GB, free: 7.973 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002836/0.9296, allocations: 149.9 kB / 0.5638 GB, free: 7.859 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005686/0.9354, allocations: 1.865 MB / 0.5657 GB, free: 6.004 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03148/0.9669, allocations: 9.183 MB / 0.5746 GB, free: 12.79 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07857/1.046, allocations: 37.63 MB / 0.6114 GB, free: 6.27 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01952/1.065, allocations: 3.712 MB / 0.615 GB, free: 2.41 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003906/1.069, allocations: 1.712 MB / 0.6167 GB, free: 0.6875 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00147/1.071, allocations: 0.6724 MB / 0.6173 GB, free: 15.91 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.417e-05/1.071, allocations: 51.06 kB / 0.6174 GB, free: 15.85 MB / 478.1 MB Notification: Performance of pre-optimization done (n=130): time 1.044e-05/1.071, allocations: 3.984 kB / 0.6174 GB, free: 15.85 MB / 478.1 MB Notification: Performance of matching and sorting (n=136): time 0.06852/1.139, allocations: 12.93 MB / 0.63 GB, free: 2.797 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001461/1.139, allocations: 161 kB / 0.6302 GB, free: 2.609 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.012/1.151, allocations: 3.963 MB / 0.634 GB, free: 14.66 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006102/1.152, allocations: 48.83 kB / 0.6341 GB, free: 14.61 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003843/1.156, allocations: 3.013 MB / 0.637 GB, free: 11.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001439/1.158, allocations: 0.543 MB / 0.6375 GB, free: 11.06 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004656/1.162, allocations: 1.145 MB / 0.6387 GB, free: 9.91 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/1.162, allocations: 301.1 kB / 0.639 GB, free: 9.613 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00516/1.168, allocations: 1.943 MB / 0.6408 GB, free: 7.664 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00877/1.176, allocations: 5.516 MB / 0.6462 GB, free: 344 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0143/1.191, allocations: 8.095 MB / 0.6541 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001833/1.191, allocations: 36 kB / 0.6542 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of matching and sorting (n=723) (initialization): time 0.02582/1.217, allocations: 7.938 MB / 0.6619 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002797/1.217, allocations: 64.25 kB / 0.662 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003588/1.217, allocations: 128 kB / 0.6621 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003967/1.221, allocations: 0.906 MB / 0.663 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006857/1.228, allocations: 1.29 MB / 0.6643 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/1.239, allocations: 4.853 MB / 0.669 GB, free: 7.094 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008166/1.247, allocations: 306 kB / 0.6693 GB, free: 6.797 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001856/1.249, allocations: 360 kB / 0.6696 GB, free: 6.445 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.arrowLine.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 (684): * Single equations (assignments): 680 * 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.006977/1.256, allocations: 1.99 MB / 0.6716 GB, free: 4.445 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001476/1.258, allocations: 331.7 kB / 0.6719 GB, free: 4.117 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009625/1.267, allocations: 2.786 MB / 0.6746 GB, free: 1.32 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.54e-05/1.267, allocations: 18.42 kB / 0.6746 GB, free: 1.305 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-05/1.267, allocations: 7.984 kB / 0.6746 GB, free: 1.297 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.212e-05/1.267, allocations: 3.984 kB / 0.6746 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02766/1.295, allocations: 7.243 MB / 0.6817 GB, free: 10 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.851e-05/1.295, allocations: 0 / 0.6817 GB, free: 10 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002402/1.298, allocations: 251.7 kB / 0.682 GB, free: 9.754 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003929/1.302, allocations: 0.7147 MB / 0.6827 GB, free: 9.035 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004131/1.302, allocations: 38.86 kB / 0.6827 GB, free: 9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01011/1.312, allocations: 4.428 MB / 0.687 GB, free: 4.441 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/1.312, allocations: 4.031 kB / 0.687 GB, free: 4.438 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0144/1.327, allocations: 5.128 MB / 0.692 GB, free: 15.28 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002026/1.329, allocations: 392.6 kB / 0.6924 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001569/1.33, allocations: 24 kB / 0.6924 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003176/1.334, allocations: 78.08 kB / 0.6925 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005538/1.334, allocations: 92.47 kB / 0.6926 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002627/1.334, allocations: 43.97 kB / 0.6926 GB, free: 14.64 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008851/1.343, allocations: 2.489 MB / 0.6951 GB, free: 12.17 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.31e-07/1.343, allocations: 0 / 0.6951 GB, free: 12.17 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01006/1.353, allocations: 0.9047 MB / 0.6959 GB, free: 11.27 MB / 0.545 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.0007241/1.354, allocations: 154.6 kB / 0.6961 GB, free: 11.11 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01308/1.367, allocations: 4.609 MB / 0.7006 GB, free: 6.516 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.215e-05/1.367, allocations: 0 / 0.7006 GB, free: 6.516 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003866/1.371, allocations: 1.369 MB / 0.7019 GB, free: 5.137 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007063/1.378, allocations: 409.6 kB / 0.7023 GB, free: 4.738 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4296/1.808, allocations: 10.77 MB / 0.7128 GB, free: 199.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009038/1.817, allocations: 3.109 MB / 0.7159 GB, free: 198.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002043/1.819, allocations: 294.5 kB / 0.7162 GB, free: 198.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.342e-06/1.819, allocations: 0 / 0.7162 GB, free: 198.4 MB / 0.545 GB Notification: Performance of Templates: time 0.1644/1.984, allocations: 71.23 MB / 0.7857 GB, free: 145.6 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches