Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001382/0.001383, allocations: 114.9 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001384/0.001384, allocations: 205.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2268/0.2268, allocations: 46.11 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 79.86 kB / 480.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3958/0.3972, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3): time 0.01359/0.4109, allocations: 13.03 MB / 0.5433 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009983/0.4209, allocations: 4.278 MB / 0.5474 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003/0.424, allocations: 83.06 kB / 0.5475 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007261/0.4312, allocations: 3.708 MB / 0.5511 GB, free: 12.66 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00666/0.438, allocations: 2.027 MB / 0.5531 GB, free: 10.63 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002438/0.4404, allocations: 0.8149 MB / 0.5539 GB, free: 9.812 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006831/0.4473, allocations: 4.225 MB / 0.558 GB, free: 5.578 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006005/0.4533, allocations: 4.84 MB / 0.5628 GB, free: 0.668 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003853/0.4573, allocations: 1.85 MB / 0.5646 GB, free: 14.81 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004281/0.4616, allocations: 2.461 MB / 0.567 GB, free: 12.34 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001566/0.4632, allocations: 420 kB / 0.5674 GB, free: 11.93 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003437/0.4666, allocations: 1.131 MB / 0.5685 GB, free: 10.8 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003237/0.4699, allocations: 2.205 MB / 0.5706 GB, free: 8.59 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005343/0.4753, allocations: 2.595 MB / 0.5732 GB, free: 5.98 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01186/0.4871, allocations: 8.128 MB / 0.5811 GB, free: 13.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.4872, allocations: 0 / 0.5811 GB, free: 13.82 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4872, allocations: 0 / 0.5811 GB, free: 13.82 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002679/0.4875, allocations: 0 / 0.5811 GB, free: 13.82 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1736 * Number of variables: 1736 Notification: Performance of Generate backend data structure: time 0.0221/0.5096, allocations: 6.367 MB / 0.5873 GB, free: 7.375 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.5096, allocations: 12.03 kB / 0.5873 GB, free: 7.363 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001579/0.5112, allocations: 0.8268 MB / 0.5881 GB, free: 6.527 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007386/0.5186, allocations: 2.01 MB / 0.5901 GB, free: 4.512 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006885/0.5255, allocations: 2.93 MB / 0.593 GB, free: 1.523 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002413/0.5258, allocations: 291.5 kB / 0.5932 GB, free: 1.238 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001387/0.5272, allocations: 387.8 kB / 0.5936 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0257/0.5529, allocations: 12.2 MB / 0.6055 GB, free: 3.938 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001793/0.5532, allocations: 55.58 kB / 0.6056 GB, free: 3.883 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008267/0.554, allocations: 183.8 kB / 0.6058 GB, free: 3.703 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004313/0.5583, allocations: 2.186 MB / 0.6079 GB, free: 1.516 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02353/0.5819, allocations: 11.21 MB / 0.6188 GB, free: 6.297 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0692/0.6511, allocations: 45.96 MB / 0.6637 GB, free: 7.227 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01898/0.6702, allocations: 5.485 MB / 0.6691 GB, free: 1.59 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004831/0.6751, allocations: 3.436 MB / 0.6724 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001144/0.6762, allocations: 0.6987 MB / 0.6731 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.892e-05/0.6763, allocations: 55.81 kB / 0.6732 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=203): time 6.122e-06/0.6763, allocations: 0 / 0.6732 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of matching and sorting (n=234): time 0.08032/0.7567, allocations: 27.57 MB / 0.7001 GB, free: 1.59 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.7568, allocations: 158.5 kB / 0.7002 GB, free: 1.402 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006542/0.7634, allocations: 4.416 MB / 0.7045 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007441/0.7641, allocations: 61.7 kB / 0.7046 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002722/0.7669, allocations: 3.513 MB / 0.708 GB, free: 9.348 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001593/0.7685, allocations: 0.9186 MB / 0.7089 GB, free: 8.422 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002483/0.771, allocations: 1.423 MB / 0.7103 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001038/0.7711, allocations: 305.1 kB / 0.7106 GB, free: 6.688 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005165/0.7763, allocations: 3.269 MB / 0.7138 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3346/1.111, allocations: 7.073 MB / 0.7207 GB, free: 158.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01347/1.124, allocations: 11.15 MB / 0.7316 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002898/1.125, allocations: 38.25 kB / 0.7316 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=851) (initialization): time 0.01939/1.144, allocations: 11.28 MB / 0.7427 GB, free: 146.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001105/1.144, allocations: 66.94 kB / 0.7427 GB, free: 146.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001714/1.144, allocations: 135.7 kB / 0.7428 GB, free: 146.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002637/1.147, allocations: 1.115 MB / 0.7439 GB, free: 146.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006005/1.153, allocations: 1.692 MB / 0.7456 GB, free: 146.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006825/1.16, allocations: 6.345 MB / 0.7518 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005943/1.166, allocations: 394.8 kB / 0.7522 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001394/1.167, allocations: 443.8 kB / 0.7526 GB, free: 141.4 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 610 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.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 (812): * Single equations (assignments): 808 * 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.00424/1.172, allocations: 2.314 MB / 0.7548 GB, free: 139.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009629/1.173, allocations: 413.9 kB / 0.7552 GB, free: 139 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008822/1.181, allocations: 6.195 MB / 0.7613 GB, free: 132.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.332e-05/1.181, allocations: 28 kB / 0.7613 GB, free: 132.7 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/1.182, allocations: 4 kB / 0.7613 GB, free: 132.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.839e-05/1.182, allocations: 15.95 kB / 0.7613 GB, free: 132.7 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01961/1.201, allocations: 12.88 MB / 0.7739 GB, free: 119.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-05/1.201, allocations: 4 kB / 0.7739 GB, free: 119.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00264/1.204, allocations: 0.5458 MB / 0.7745 GB, free: 119.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002297/1.206, allocations: 0.9476 MB / 0.7754 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000399/1.207, allocations: 87.89 kB / 0.7755 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006245/1.213, allocations: 6.099 MB / 0.7814 GB, free: 112 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.213, allocations: 4 kB / 0.7814 GB, free: 112 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01299/1.226, allocations: 10.5 MB / 0.7917 GB, free: 101.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00266/1.229, allocations: 0.9057 MB / 0.7926 GB, free: 100.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000914/1.23, allocations: 42.53 kB / 0.7926 GB, free: 100.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002578/1.232, allocations: 175.7 kB / 0.7928 GB, free: 100.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005275/1.233, allocations: 177.7 kB / 0.7929 GB, free: 100.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002316/1.233, allocations: 103.9 kB / 0.793 GB, free: 100.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00389/1.237, allocations: 2.766 MB / 0.7957 GB, free: 97.45 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.153e-06/1.237, allocations: 0 / 0.7957 GB, free: 97.45 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007281/1.244, allocations: 1.19 MB / 0.7969 GB, free: 96.27 MB / 0.5606 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.01313/1.257, allocations: 11.16 MB / 0.8078 GB, free: 85.05 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01061/1.268, allocations: 7.735 MB / 0.8154 GB, free: 77.34 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.685e-06/1.268, allocations: 0 / 0.8154 GB, free: 77.34 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003762/1.272, allocations: 3.023 MB / 0.8183 GB, free: 74.31 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003373/1.275, allocations: 0.4971 MB / 0.8188 GB, free: 73.82 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07983/1.355, allocations: 59 MB / 0.8764 GB, free: 8.691 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00349/1.359, allocations: 3.627 MB / 0.88 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004719/1.363, allocations: 2.254 MB / 0.8822 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003383/1.367, allocations: 2.327 MB / 0.8844 GB, free: 456 kB / 0.5606 GB Notification: Performance of SimCode: time 1.312e-06/1.367, allocations: 6.406 kB / 0.8844 GB, free: 452 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.456/1.823, allocations: 91.25 MB / 0.9735 GB, free: 230 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.9/21.72, allocations: 17.09 kB / 0.9736 GB, free: 230 MB / 0.6387 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.csv","/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_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches