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_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 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_2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001426/0.001426, allocations: 118.2 kB / 17.78 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.001488/0.001488, allocations: 205.2 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.484/1.484, allocations: 227.4 MB / 247 MB, free: 10.4 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.2263/0.2263, 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.002692/0.002692, allocations: 87.86 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3667/0.3694, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.01313/0.3825, allocations: 11.04 MB / 0.5414 GB, free: 4.715 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009311/0.3919, allocations: 3.816 MB / 0.5451 GB, free: 1.734 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002638/0.3946, allocations: 64.59 kB / 0.5452 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005832/0.4005, allocations: 2.684 MB / 0.5478 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006156/0.4067, allocations: 1.749 MB / 0.5495 GB, free: 14.31 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00232/0.4091, allocations: 0.7056 MB / 0.5502 GB, free: 13.6 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006485/0.4156, allocations: 3.582 MB / 0.5537 GB, free: 10.01 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004706/0.4203, allocations: 3.69 MB / 0.5573 GB, free: 6.258 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00276/0.4231, allocations: 1.464 MB / 0.5587 GB, free: 4.789 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003217/0.4264, allocations: 2.002 MB / 0.5607 GB, free: 2.781 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009429/0.4273, allocations: 320 kB / 0.561 GB, free: 2.469 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002613/0.43, allocations: 1.045 MB / 0.562 GB, free: 1.422 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00229/0.4323, allocations: 1.784 MB / 0.5637 GB, free: 15.63 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003294/0.4356, allocations: 2.086 MB / 0.5658 GB, free: 13.54 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009781/0.4454, allocations: 6.72 MB / 0.5723 GB, free: 6.789 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.4454, allocations: 0 / 0.5723 GB, free: 6.789 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4455, allocations: 0 / 0.5723 GB, free: 6.789 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002214/0.4457, allocations: 0 / 0.5723 GB, free: 6.789 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.01838/0.4641, allocations: 5.196 MB / 0.5774 GB, free: 1.52 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.739e-05/0.4641, allocations: 16.03 kB / 0.5774 GB, free: 1.504 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001213/0.4654, allocations: 0.678 MB / 0.5781 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006947/0.4723, allocations: 1.89 MB / 0.5799 GB, free: 14.92 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005286/0.4776, allocations: 2.495 MB / 0.5824 GB, free: 12.37 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002305/0.4779, allocations: 225.8 kB / 0.5826 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001056/0.479, allocations: 295.8 kB / 0.5829 GB, free: 11.86 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02169/0.5007, allocations: 10.05 MB / 0.5927 GB, free: 1.152 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002036/0.5009, allocations: 39.64 kB / 0.5927 GB, free: 1.113 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001144/0.5021, allocations: 147.9 kB / 0.5929 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003607/0.5057, allocations: 1.798 MB / 0.5946 GB, free: 15.16 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02121/0.527, allocations: 9.034 MB / 0.6034 GB, free: 6.109 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05471/0.5817, allocations: 37.14 MB / 0.6397 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01422/0.596, allocations: 3.712 MB / 0.6433 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002726/0.5988, allocations: 1.711 MB / 0.645 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00121/0.6, allocations: 0.6784 MB / 0.6457 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.117e-05/0.6001, allocations: 47.12 kB / 0.6457 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=130): time 5.781e-06/0.6001, allocations: 0 / 0.6457 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of matching and sorting (n=136): time 0.04693/0.6471, allocations: 13.1 MB / 0.6585 GB, free: 12.28 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.6472, allocations: 149.1 kB / 0.6587 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007764/0.655, allocations: 3.976 MB / 0.6625 GB, free: 8.148 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003435/0.6554, allocations: 45.7 kB / 0.6626 GB, free: 8.098 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002912/0.6583, allocations: 3.093 MB / 0.6656 GB, free: 4.977 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000938/0.6593, allocations: 0.5739 MB / 0.6662 GB, free: 4.398 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002862/0.6622, allocations: 1.139 MB / 0.6673 GB, free: 3.25 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.6623, allocations: 305.1 kB / 0.6676 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0035/0.6658, allocations: 1.924 MB / 0.6695 GB, free: 1.02 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006712/0.6726, allocations: 5.49 MB / 0.6748 GB, free: 9.727 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01082/0.6834, allocations: 8.035 MB / 0.6827 GB, free: 15.91 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001338/0.6836, allocations: 36 kB / 0.6827 GB, free: 15.88 MB / 0.545 GB Notification: Performance of matching and sorting (n=716) (initialization): time 0.01616/0.6998, allocations: 7.909 MB / 0.6904 GB, free: 7.957 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001885/0.7, allocations: 64.59 kB / 0.6905 GB, free: 7.895 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000296/0.7003, allocations: 128 kB / 0.6906 GB, free: 7.77 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002937/0.7033, allocations: 0.9132 MB / 0.6915 GB, free: 6.855 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004678/0.708, allocations: 1.275 MB / 0.6927 GB, free: 5.578 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007663/0.7157, allocations: 5.192 MB / 0.6978 GB, free: 260 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004589/0.7203, allocations: 299.8 kB / 0.6981 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001103/0.7215, allocations: 363.9 kB / 0.6984 GB, free: 15.61 MB / 0.5606 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 (677): * Single equations (assignments): 673 * 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.004381/0.7259, allocations: 1.964 MB / 0.7004 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009424/0.7268, allocations: 353.6 kB / 0.7007 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006401/0.7332, allocations: 2.786 MB / 0.7034 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.752e-05/0.7333, allocations: 16 kB / 0.7034 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.692e-05/0.7333, allocations: 4 kB / 0.7034 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.728e-05/0.7334, allocations: 11.97 kB / 0.7034 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01634/0.7497, allocations: 7.175 MB / 0.7105 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-05/0.7498, allocations: 0 / 0.7105 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001326/0.7511, allocations: 247.6 kB / 0.7107 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002307/0.7534, allocations: 0.7109 MB / 0.7114 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002333/0.7537, allocations: 35.97 kB / 0.7114 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007014/0.7607, allocations: 4.759 MB / 0.7161 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/0.7608, allocations: 4.031 kB / 0.7161 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009094/0.7699, allocations: 5.152 MB / 0.7211 GB, free: 8.113 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001091/0.771, allocations: 398.6 kB / 0.7215 GB, free: 7.703 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008677/0.7719, allocations: 20 kB / 0.7215 GB, free: 7.684 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001735/0.7736, allocations: 79.91 kB / 0.7216 GB, free: 7.605 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003728/0.774, allocations: 92.45 kB / 0.7217 GB, free: 7.516 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001976/0.7743, allocations: 55.95 kB / 0.7217 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005238/0.7795, allocations: 2.485 MB / 0.7241 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.52e-07/0.7795, allocations: 0 / 0.7241 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005425/0.785, allocations: 0.8749 MB / 0.725 GB, free: 4.121 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.2796/1.065, allocations: 5.772 MB / 0.7306 GB, free: 176.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.006993/1.072, allocations: 4.599 MB / 0.7351 GB, free: 175 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/1.072, allocations: 0 / 0.7351 GB, free: 175 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00184/1.073, allocations: 1.361 MB / 0.7365 GB, free: 174.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002526/1.076, allocations: 430.5 kB / 0.7369 GB, free: 174.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05316/1.129, allocations: 42.84 MB / 0.7787 GB, free: 137.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003702/1.133, allocations: 3.065 MB / 0.7817 GB, free: 134.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003561/1.137, allocations: 1.782 MB / 0.7834 GB, free: 132.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00211/1.139, allocations: 1.749 MB / 0.7851 GB, free: 131 MB / 0.5762 GB Notification: Performance of SimCode: time 1.052e-06/1.139, allocations: 2.953 kB / 0.7851 GB, free: 131 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1058/1.245, allocations: 64.07 MB / 0.8477 GB, free: 67.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.79/24.03, allocations: 3.609 kB / 0.8477 GB, free: 67.3 MB / 0.5762 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1)