Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001598/0.001598, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001955/0.001955, allocations: 201.2 kB / 18.73 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.488/1.488, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2358/0.2358, allocations: 46.12 MB / 344.4 MB, free: 11.45 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002597/0.002597, allocations: 75.88 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3485/0.3512, allocations: 62.46 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3): time 0.01648/0.3677, allocations: 13.03 MB / 0.5433 GB, free: 3.141 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01108/0.3788, allocations: 4.278 MB / 0.5475 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003631/0.3825, allocations: 86.56 kB / 0.5476 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008518/0.3911, allocations: 3.708 MB / 0.5512 GB, free: 12.54 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006604/0.3978, allocations: 1.979 MB / 0.5531 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002091/0.3999, allocations: 0.8149 MB / 0.5539 GB, free: 9.738 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00623/0.4061, allocations: 4.224 MB / 0.5581 GB, free: 5.504 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005667/0.4118, allocations: 4.832 MB / 0.5628 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002993/0.4148, allocations: 1.846 MB / 0.5646 GB, free: 14.75 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003883/0.4187, allocations: 2.461 MB / 0.567 GB, free: 12.28 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001103/0.4198, allocations: 416 kB / 0.5674 GB, free: 11.88 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00268/0.4225, allocations: 1.131 MB / 0.5685 GB, free: 10.74 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002447/0.425, allocations: 2.186 MB / 0.5706 GB, free: 8.551 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00383/0.4288, allocations: 2.602 MB / 0.5732 GB, free: 5.934 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01099/0.4398, allocations: 8.124 MB / 0.5811 GB, free: 13.78 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.027e-06/0.4399, allocations: 4 kB / 0.5811 GB, free: 13.77 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4399, allocations: 0 / 0.5811 GB, free: 13.77 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002691/0.4402, allocations: 0 / 0.5811 GB, free: 13.77 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.02279/0.463, allocations: 6.363 MB / 0.5873 GB, free: 7.332 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.463, allocations: 8.031 kB / 0.5873 GB, free: 7.324 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001866/0.4649, allocations: 0.8308 MB / 0.5881 GB, free: 6.484 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00777/0.4727, allocations: 2.01 MB / 0.5901 GB, free: 4.469 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006784/0.4795, allocations: 2.926 MB / 0.593 GB, free: 1.484 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003059/0.4799, allocations: 295.5 kB / 0.5932 GB, free: 1.195 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001424/0.4813, allocations: 387.8 kB / 0.5936 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02776/0.5091, allocations: 12.2 MB / 0.6055 GB, free: 3.895 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000252/0.5094, allocations: 51.58 kB / 0.6056 GB, free: 3.844 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001479/0.5109, allocations: 183.8 kB / 0.6058 GB, free: 3.664 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004522/0.5154, allocations: 2.186 MB / 0.6079 GB, free: 1.477 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02588/0.5413, allocations: 11.2 MB / 0.6188 GB, free: 6.262 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07227/0.6136, allocations: 45.97 MB / 0.6637 GB, free: 7.18 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01963/0.6333, allocations: 5.485 MB / 0.6691 GB, free: 1.539 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005332/0.6387, allocations: 3.436 MB / 0.6724 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00125/0.64, allocations: 0.6987 MB / 0.6731 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.56e-05/0.64, allocations: 59.81 kB / 0.6732 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=203): time 4.949e-06/0.6401, allocations: 0 / 0.6732 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of matching and sorting (n=234): time 0.08654/0.7266, allocations: 27.56 MB / 0.7001 GB, free: 1.539 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/0.7268, allocations: 154.5 kB / 0.7002 GB, free: 1.355 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00937/0.7362, allocations: 4.418 MB / 0.7046 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007435/0.7369, allocations: 61.7 kB / 0.7046 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003306/0.7403, allocations: 3.518 MB / 0.708 GB, free: 9.297 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001585/0.7419, allocations: 0.9225 MB / 0.709 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003877/0.7458, allocations: 1.419 MB / 0.7103 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.7459, allocations: 305.1 kB / 0.7106 GB, free: 6.637 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005717/0.7517, allocations: 3.269 MB / 0.7138 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2912/1.043, allocations: 7.079 MB / 0.7207 GB, free: 158.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01385/1.057, allocations: 11.13 MB / 0.7316 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002886/1.057, allocations: 38.75 kB / 0.7316 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=851) (initialization): time 0.02011/1.077, allocations: 11.29 MB / 0.7427 GB, free: 146.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001176/1.077, allocations: 63.78 kB / 0.7427 GB, free: 146.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001883/1.078, allocations: 132.8 kB / 0.7429 GB, free: 146.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002725/1.08, allocations: 1.124 MB / 0.744 GB, free: 146.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006166/1.087, allocations: 1.689 MB / 0.7456 GB, free: 146.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006872/1.093, allocations: 6.345 MB / 0.7518 GB, free: 142 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005883/1.099, allocations: 396.6 kB / 0.7522 GB, free: 141.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001634/1.101, allocations: 439.8 kB / 0.7526 GB, free: 141.2 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.005442/1.106, allocations: 2.318 MB / 0.7549 GB, free: 139 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001193/1.108, allocations: 415.3 kB / 0.7553 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009187/1.117, allocations: 6.191 MB / 0.7613 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.784e-05/1.117, allocations: 24 kB / 0.7613 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/1.117, allocations: 4 kB / 0.7613 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-05/1.117, allocations: 11.95 kB / 0.7613 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01822/1.135, allocations: 12.89 MB / 0.7739 GB, free: 119.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.116e-05/1.135, allocations: 4 kB / 0.7739 GB, free: 119.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002696/1.138, allocations: 0.5485 MB / 0.7745 GB, free: 119.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0023/1.14, allocations: 0.9512 MB / 0.7754 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004148/1.141, allocations: 83.89 kB / 0.7755 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006203/1.147, allocations: 6.101 MB / 0.7814 GB, free: 111.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/1.147, allocations: 4 kB / 0.7814 GB, free: 111.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01248/1.16, allocations: 10.5 MB / 0.7917 GB, free: 101.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001882/1.161, allocations: 0.9081 MB / 0.7926 GB, free: 100.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007609/1.162, allocations: 43.98 kB / 0.7926 GB, free: 100.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002331/1.165, allocations: 171.7 kB / 0.7928 GB, free: 100.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000521/1.165, allocations: 184.2 kB / 0.793 GB, free: 100.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002377/1.165, allocations: 99.91 kB / 0.793 GB, free: 100.1 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003671/1.169, allocations: 2.773 MB / 0.7958 GB, free: 97.32 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.01e-07/1.169, allocations: 3.938 kB / 0.7958 GB, free: 97.31 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006174/1.175, allocations: 1.176 MB / 0.7969 GB, free: 96.14 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.01336/1.189, allocations: 11.16 MB / 0.8078 GB, free: 84.93 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01093/1.2, allocations: 7.734 MB / 0.8154 GB, free: 77.21 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/1.2, allocations: 0 / 0.8154 GB, free: 77.21 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003871/1.204, allocations: 3.023 MB / 0.8183 GB, free: 74.18 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003191/1.207, allocations: 0.4903 MB / 0.8188 GB, free: 73.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07801/1.285, allocations: 59.01 MB / 0.8764 GB, free: 8.555 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005181/1.29, allocations: 3.627 MB / 0.88 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005736/1.296, allocations: 2.257 MB / 0.8822 GB, free: 2.633 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004175/1.3, allocations: 2.323 MB / 0.8844 GB, free: 316 kB / 0.5606 GB Notification: Performance of SimCode: time 1.343e-06/1.3, allocations: 0 / 0.8844 GB, free: 316 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4482/1.748, allocations: 91.26 MB / 0.9736 GB, free: 230 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.79/21.54, allocations: 10.56 kB / 0.9736 GB, free: 230 MB / 0.6387 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe 2>&1)