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.001109/0.001109, allocations: 115.6 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00114/0.00114, allocations: 200.8 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2256/0.2256, allocations: 46.1 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 79.88 kB / 482 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3819/0.3836, allocations: 62.42 MB / 0.5317 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.01423/0.3978, allocations: 11.04 MB / 0.5424 GB, free: 4.953 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009699/0.4076, allocations: 3.82 MB / 0.5462 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002939/0.4106, allocations: 64.66 kB / 0.5462 GB, free: 1.961 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006301/0.4169, allocations: 2.68 MB / 0.5488 GB, free: 76 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0059/0.4229, allocations: 1.758 MB / 0.5506 GB, free: 14.31 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002201/0.4251, allocations: 0.6901 MB / 0.5512 GB, free: 13.62 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006048/0.4312, allocations: 3.586 MB / 0.5547 GB, free: 10.03 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005624/0.4369, allocations: 3.691 MB / 0.5583 GB, free: 6.27 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003245/0.4401, allocations: 1.464 MB / 0.5598 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003791/0.444, allocations: 1.998 MB / 0.5617 GB, free: 2.797 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001407/0.4454, allocations: 320 kB / 0.562 GB, free: 2.484 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003124/0.4485, allocations: 1.045 MB / 0.5631 GB, free: 1.438 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00261/0.4512, allocations: 1.8 MB / 0.5648 GB, free: 15.63 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003998/0.4552, allocations: 2.093 MB / 0.5669 GB, free: 13.53 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008915/0.4641, allocations: 6.671 MB / 0.5734 GB, free: 6.836 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.4642, allocations: 0 / 0.5734 GB, free: 6.836 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.4642, allocations: 0 / 0.5734 GB, free: 6.836 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002754/0.4645, allocations: 4 kB / 0.5734 GB, free: 6.832 MB / 430.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.01959/0.4841, allocations: 5.074 MB / 0.5783 GB, free: 1.691 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.4842, allocations: 12.03 kB / 0.5783 GB, free: 1.68 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00751/0.4917, allocations: 1.855 MB / 0.5802 GB, free: 15.82 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005445/0.4972, allocations: 2.244 MB / 0.5823 GB, free: 13.51 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002574/0.4975, allocations: 221.8 kB / 0.5826 GB, free: 13.29 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001611/0.4991, allocations: 303.8 kB / 0.5828 GB, free: 13 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02216/0.5213, allocations: 10.05 MB / 0.5927 GB, free: 2.297 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002415/0.5216, allocations: 39.73 kB / 0.5927 GB, free: 2.258 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001419/0.523, allocations: 143.9 kB / 0.5928 GB, free: 2.117 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003431/0.5265, allocations: 1.817 MB / 0.5946 GB, free: 304 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01977/0.5463, allocations: 9.03 MB / 0.6034 GB, free: 7.238 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05105/0.5974, allocations: 37.07 MB / 0.6396 GB, free: 1.109 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01366/0.6111, allocations: 3.716 MB / 0.6433 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002358/0.6135, allocations: 1.706 MB / 0.6449 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009761/0.6145, allocations: 0.6746 MB / 0.6456 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.449e-05/0.6145, allocations: 51.06 kB / 0.6456 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=130): time 4.479e-06/0.6145, allocations: 0 / 0.6456 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of matching and sorting (n=136): time 0.04385/0.6584, allocations: 12.89 MB / 0.6582 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.988e-05/0.6585, allocations: 141.2 kB / 0.6584 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006248/0.6648, allocations: 3.951 MB / 0.6622 GB, free: 9.562 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002798/0.6651, allocations: 49.7 kB / 0.6623 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002138/0.6672, allocations: 2.97 MB / 0.6652 GB, free: 6.496 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007061/0.6679, allocations: 0.5518 MB / 0.6657 GB, free: 5.938 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001766/0.6697, allocations: 1.134 MB / 0.6668 GB, free: 4.793 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.588e-05/0.6698, allocations: 305.1 kB / 0.6671 GB, free: 4.492 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002645/0.6725, allocations: 1.931 MB / 0.669 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004862/0.6774, allocations: 5.505 MB / 0.6744 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008519/0.6859, allocations: 8.054 MB / 0.6822 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.755e-05/0.686, allocations: 40 kB / 0.6823 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01438/0.7004, allocations: 7.918 MB / 0.69 GB, free: 9.445 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001269/0.7006, allocations: 60.19 kB / 0.69 GB, free: 9.387 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002019/0.7008, allocations: 132 kB / 0.6902 GB, free: 9.258 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002516/0.7033, allocations: 0.9074 MB / 0.6911 GB, free: 8.348 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003982/0.7073, allocations: 1.279 MB / 0.6923 GB, free: 7.066 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006686/0.714, allocations: 5.192 MB / 0.6974 GB, free: 1.742 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004121/0.7182, allocations: 307.5 kB / 0.6977 GB, free: 1.441 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009196/0.7191, allocations: 356 kB / 0.698 GB, free: 1.094 MB / 0.545 GB 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.003806/0.7229, allocations: 1.959 MB / 0.6999 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000859/0.7238, allocations: 327.7 kB / 0.7002 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005758/0.7296, allocations: 2.79 MB / 0.703 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-05/0.7296, allocations: 19.98 kB / 0.703 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/0.7296, allocations: 4 kB / 0.703 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.106e-05/0.7297, allocations: 11.97 kB / 0.703 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01458/0.7443, allocations: 7.17 MB / 0.71 GB, free: 4.707 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.876e-05/0.7443, allocations: 4 kB / 0.71 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/0.7456, allocations: 239.7 kB / 0.7102 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002181/0.7478, allocations: 0.7147 MB / 0.7109 GB, free: 3.75 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001883/0.748, allocations: 35.97 kB / 0.711 GB, free: 3.715 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006256/0.7543, allocations: 4.759 MB / 0.7156 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.7543, allocations: 4 kB / 0.7156 GB, free: 14.81 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008321/0.7626, allocations: 5.131 MB / 0.7206 GB, free: 9.648 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001168/0.7638, allocations: 388.7 kB / 0.721 GB, free: 9.246 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008585/0.7647, allocations: 20 kB / 0.721 GB, free: 9.227 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001703/0.7664, allocations: 83.83 kB / 0.7211 GB, free: 9.145 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003094/0.7668, allocations: 88.62 kB / 0.7212 GB, free: 9.059 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/0.7669, allocations: 47.91 kB / 0.7212 GB, free: 9.012 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004883/0.7718, allocations: 2.485 MB / 0.7237 GB, free: 6.547 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.11e-07/0.7718, allocations: 0 / 0.7237 GB, free: 6.547 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005397/0.7772, allocations: 0.8751 MB / 0.7245 GB, free: 5.672 MB / 0.5762 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.0006569/0.7779, allocations: 159 kB / 0.7247 GB, free: 5.508 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007881/0.7858, allocations: 4.604 MB / 0.7292 GB, free: 0.9141 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/0.7859, allocations: 7.938 kB / 0.7292 GB, free: 0.9062 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.2829/1.069, allocations: 1.359 MB / 0.7305 GB, free: 180.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003134/1.072, allocations: 421 kB / 0.7309 GB, free: 180.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01667/1.089, allocations: 8.744 MB / 0.7394 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003265/1.092, allocations: 3.069 MB / 0.7424 GB, free: 176.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009768/1.093, allocations: 296.9 kB / 0.7427 GB, free: 176.4 MB / 0.5762 GB Notification: Performance of SimCode: time 1.162e-06/1.093, allocations: 0 / 0.7427 GB, free: 176.4 MB / 0.5762 GB Notification: Performance of Templates: time 0.08304/1.176, allocations: 70.93 MB / 0.812 GB, free: 111.2 MB / 0.5762 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/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