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.001377/0.001377, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001758/0.001758, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 227.4 MB / 246.9 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.2295/0.2295, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001389, allocations: 75.88 kB / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3974/0.3988, allocations: 62.44 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3): time 0.01414/0.413, allocations: 13.02 MB / 0.5432 GB, free: 3.176 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01036/0.4234, allocations: 4.286 MB / 0.5474 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002628/0.4261, allocations: 78.62 kB / 0.5475 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007664/0.4338, allocations: 3.705 MB / 0.5511 GB, free: 12.61 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006184/0.44, allocations: 2.015 MB / 0.5531 GB, free: 10.58 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002523/0.4426, allocations: 0.8226 MB / 0.5539 GB, free: 9.758 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006518/0.4491, allocations: 4.232 MB / 0.558 GB, free: 5.516 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006473/0.4556, allocations: 4.832 MB / 0.5627 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003274/0.4589, allocations: 1.85 MB / 0.5646 GB, free: 14.76 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003811/0.4628, allocations: 2.465 MB / 0.567 GB, free: 12.29 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001342/0.4642, allocations: 420 kB / 0.5674 GB, free: 11.88 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003149/0.4673, allocations: 1.131 MB / 0.5685 GB, free: 10.74 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002768/0.4701, allocations: 2.201 MB / 0.5706 GB, free: 8.535 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004259/0.4744, allocations: 2.598 MB / 0.5732 GB, free: 5.922 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01024/0.4847, allocations: 8.128 MB / 0.5811 GB, free: 13.76 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.4847, allocations: 0 / 0.5811 GB, free: 13.76 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4847, allocations: 0 / 0.5811 GB, free: 13.76 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002745/0.485, allocations: 0 / 0.5811 GB, free: 13.76 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.02304/0.5081, allocations: 6.363 MB / 0.5873 GB, free: 7.32 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.846e-05/0.5081, allocations: 8.031 kB / 0.5873 GB, free: 7.312 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002605/0.5108, allocations: 0.8347 MB / 0.5881 GB, free: 6.469 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007944/0.5187, allocations: 2.006 MB / 0.5901 GB, free: 4.457 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007628/0.5264, allocations: 2.93 MB / 0.5929 GB, free: 1.469 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002986/0.5267, allocations: 299.5 kB / 0.5932 GB, free: 1.176 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001779/0.5285, allocations: 383.8 kB / 0.5936 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02775/0.5563, allocations: 12.2 MB / 0.6055 GB, free: 3.879 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002153/0.5566, allocations: 51.53 kB / 0.6056 GB, free: 3.828 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001282/0.5578, allocations: 179.8 kB / 0.6057 GB, free: 3.652 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004117/0.562, allocations: 2.198 MB / 0.6079 GB, free: 1.453 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02283/0.5848, allocations: 11.2 MB / 0.6188 GB, free: 6.238 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06527/0.6501, allocations: 45.96 MB / 0.6637 GB, free: 7.168 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01813/0.6683, allocations: 5.489 MB / 0.6691 GB, free: 1.527 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004935/0.6733, allocations: 3.44 MB / 0.6724 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001124/0.6745, allocations: 0.6909 MB / 0.6731 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.653e-05/0.6746, allocations: 55.88 kB / 0.6732 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=203): time 6.643e-06/0.6746, allocations: 0 / 0.6732 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of matching and sorting (n=234): time 0.07819/0.7528, allocations: 27.57 MB / 0.7001 GB, free: 1.531 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.711e-05/0.7529, allocations: 158.5 kB / 0.7002 GB, free: 1.344 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007437/0.7604, allocations: 4.42 MB / 0.7045 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006725/0.7611, allocations: 57.7 kB / 0.7046 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002762/0.7639, allocations: 3.513 MB / 0.708 GB, free: 9.289 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001512/0.7654, allocations: 0.9225 MB / 0.7089 GB, free: 8.359 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003734/0.7691, allocations: 1.423 MB / 0.7103 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.7693, allocations: 305.1 kB / 0.7106 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005829/0.7751, allocations: 3.269 MB / 0.7138 GB, free: 3.352 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2911/1.066, allocations: 7.071 MB / 0.7207 GB, free: 158.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01319/1.08, allocations: 11.14 MB / 0.7316 GB, free: 150.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002915/1.08, allocations: 39.31 kB / 0.7316 GB, free: 150.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=851) (initialization): time 0.01984/1.1, allocations: 11.28 MB / 0.7427 GB, free: 147 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001205/1.1, allocations: 66.66 kB / 0.7427 GB, free: 147 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001751/1.1, allocations: 133.3 kB / 0.7428 GB, free: 147 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002516/1.103, allocations: 1.12 MB / 0.7439 GB, free: 146.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005759/1.108, allocations: 1.685 MB / 0.7456 GB, free: 146.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006583/1.115, allocations: 6.343 MB / 0.7518 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005693/1.121, allocations: 402.9 kB / 0.7522 GB, free: 141.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001302/1.122, allocations: 433.1 kB / 0.7526 GB, free: 141.3 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.004205/1.126, allocations: 2.322 MB / 0.7548 GB, free: 139 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009906/1.127, allocations: 415.1 kB / 0.7552 GB, free: 138.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008616/1.136, allocations: 6.189 MB / 0.7613 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.793e-05/1.136, allocations: 27.38 kB / 0.7613 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/1.136, allocations: 8 kB / 0.7613 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.565e-05/1.136, allocations: 11.95 kB / 0.7613 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0189/1.155, allocations: 12.89 MB / 0.7739 GB, free: 119.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.438e-05/1.155, allocations: 4.062 kB / 0.7739 GB, free: 119.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002697/1.158, allocations: 0.5482 MB / 0.7745 GB, free: 119.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002198/1.16, allocations: 0.9548 MB / 0.7754 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000443/1.16, allocations: 87.77 kB / 0.7755 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006028/1.166, allocations: 6.087 MB / 0.7814 GB, free: 111.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/1.166, allocations: 7.938 kB / 0.7814 GB, free: 111.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01241/1.179, allocations: 10.49 MB / 0.7917 GB, free: 101.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002063/1.181, allocations: 0.9091 MB / 0.7926 GB, free: 100.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007538/1.182, allocations: 43.98 kB / 0.7926 GB, free: 100.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002179/1.184, allocations: 167.7 kB / 0.7928 GB, free: 100.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005059/1.184, allocations: 187.6 kB / 0.7929 GB, free: 100.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002341/1.185, allocations: 107.4 kB / 0.793 GB, free: 100.1 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003342/1.188, allocations: 2.77 MB / 0.7957 GB, free: 97.36 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/1.188, allocations: 0 / 0.7957 GB, free: 97.36 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00557/1.194, allocations: 1.176 MB / 0.7969 GB, free: 96.19 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.01243/1.206, allocations: 11.16 MB / 0.8078 GB, free: 84.97 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01064/1.217, allocations: 7.729 MB / 0.8153 GB, free: 77.27 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/1.217, allocations: 0 / 0.8153 GB, free: 77.27 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003771/1.221, allocations: 3.028 MB / 0.8183 GB, free: 74.23 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003319/1.224, allocations: 0.4984 MB / 0.8188 GB, free: 73.74 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07501/1.299, allocations: 59.01 MB / 0.8764 GB, free: 8.602 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003494/1.303, allocations: 3.627 MB / 0.88 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004805/1.307, allocations: 2.257 MB / 0.8822 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003502/1.311, allocations: 2.319 MB / 0.8844 GB, free: 368 kB / 0.5606 GB Notification: Performance of SimCode: time 8.71e-07/1.311, allocations: 0 / 0.8844 GB, free: 368 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.433/1.744, allocations: 91.25 MB / 0.9735 GB, free: 230.2 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.38/23.12, allocations: 9.656 kB / 0.9735 GB, free: 230.2 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