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.001676/0.001676, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002118/0.002118, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 246.8 MB, free: 10.48 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.2348/0.2348, allocations: 46.12 MB / 344.2 MB, free: 11.55 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.002282/0.002282, allocations: 82.42 kB / 417.8 MB, free: 19.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1177, allocations: 62.45 MB / 480.2 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.01307/0.1308, allocations: 11.03 MB / 491.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007941/0.1387, allocations: 3.842 MB / 495.1 MB, free: 6.188 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.1399, allocations: 63.81 kB / 495.1 MB, free: 6.125 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004962/0.1449, allocations: 2.675 MB / 497.8 MB, free: 3.441 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004118/0.149, allocations: 1.755 MB / 499.6 MB, free: 1.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001484/0.1505, allocations: 0.694 MB / 0.4885 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004439/0.1549, allocations: 3.57 MB / 0.492 GB, free: 13.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004236/0.1592, allocations: 3.695 MB / 0.4956 GB, free: 9.648 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002105/0.1613, allocations: 1.464 MB / 0.4971 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002481/0.1638, allocations: 2.001 MB / 0.499 GB, free: 6.172 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005824/0.1644, allocations: 320 kB / 0.4993 GB, free: 5.859 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001911/0.1663, allocations: 1.045 MB / 0.5004 GB, free: 4.812 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001685/0.168, allocations: 1.781 MB / 0.5021 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002223/0.1703, allocations: 2.097 MB / 0.5041 GB, free: 0.918 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2023/0.3726, allocations: 6.455 MB / 0.5104 GB, free: 17.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.3726, allocations: 0 / 0.5104 GB, free: 17.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3726, allocations: 1.438 kB / 0.5104 GB, free: 17.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002719/0.3729, allocations: 0 / 0.5104 GB, free: 17.91 MB / 382.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.02124/0.3942, allocations: 5.081 MB / 0.5154 GB, free: 16.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.3942, allocations: 8.969 kB / 0.5154 GB, free: 16.11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001657/0.3959, allocations: 0.676 MB / 0.5161 GB, free: 16.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007039/0.4029, allocations: 1.87 MB / 0.5179 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005456/0.4084, allocations: 2.435 MB / 0.5203 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001821/0.4086, allocations: 226.4 kB / 0.5205 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001013/0.4097, allocations: 300.1 kB / 0.5208 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01926/0.4289, allocations: 10.05 MB / 0.5306 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001237/0.4291, allocations: 39.83 kB / 0.5306 GB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004749/0.4296, allocations: 145 kB / 0.5308 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002789/0.4324, allocations: 1.801 MB / 0.5325 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01714/0.4495, allocations: 9.034 MB / 0.5414 GB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05682/0.5064, allocations: 37.21 MB / 0.5777 GB, free: 36 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01517/0.5216, allocations: 3.714 MB / 0.5813 GB, free: 12.18 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00342/0.5251, allocations: 1.704 MB / 0.583 GB, free: 10.47 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001303/0.5264, allocations: 0.6814 MB / 0.5836 GB, free: 9.688 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.982e-05/0.5265, allocations: 50.41 kB / 0.5837 GB, free: 9.633 MB / 430.1 MB Notification: Performance of pre-optimization done (n=130): time 6.121e-06/0.5265, allocations: 2.156 kB / 0.5837 GB, free: 9.633 MB / 430.1 MB Notification: Performance of matching and sorting (n=136): time 0.05021/0.5768, allocations: 12.88 MB / 0.5963 GB, free: 12.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.5769, allocations: 152.6 kB / 0.5964 GB, free: 12.48 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006606/0.5835, allocations: 3.963 MB / 0.6003 GB, free: 8.543 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004214/0.584, allocations: 45.7 kB / 0.6003 GB, free: 8.492 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002697/0.5867, allocations: 2.966 MB / 0.6032 GB, free: 5.543 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009608/0.5877, allocations: 0.5451 MB / 0.6038 GB, free: 5.004 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001767/0.5894, allocations: 1.137 MB / 0.6049 GB, free: 3.859 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.5896, allocations: 301.1 kB / 0.6052 GB, free: 3.562 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003169/0.5928, allocations: 1.928 MB / 0.607 GB, free: 1.629 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006584/0.5994, allocations: 5.484 MB / 0.6124 GB, free: 10.41 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01134/0.6107, allocations: 8.051 MB / 0.6203 GB, free: 1.102 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.711e-05/0.6109, allocations: 40 kB / 0.6203 GB, free: 1.062 MB / 462.1 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.01767/0.6285, allocations: 7.892 MB / 0.628 GB, free: 9.406 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.884e-05/0.6287, allocations: 60 kB / 0.6281 GB, free: 9.348 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001457/0.6288, allocations: 124.8 kB / 0.6282 GB, free: 9.227 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002583/0.6314, allocations: 0.9108 MB / 0.6291 GB, free: 8.312 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004326/0.6358, allocations: 1.279 MB / 0.6303 GB, free: 7.031 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007447/0.6432, allocations: 5.185 MB / 0.6354 GB, free: 1.719 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004408/0.6477, allocations: 311.4 kB / 0.6357 GB, free: 1.414 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008626/0.6485, allocations: 356 kB / 0.636 GB, free: 1.066 MB / 478.1 MB 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.004028/0.6526, allocations: 1.954 MB / 0.6379 GB, free: 15.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007742/0.6534, allocations: 335.7 kB / 0.6382 GB, free: 14.77 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00584/0.6592, allocations: 2.786 MB / 0.641 GB, free: 11.97 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.312e-05/0.6593, allocations: 21.75 kB / 0.641 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.6593, allocations: 4 kB / 0.641 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-05/0.6593, allocations: 7.969 kB / 0.641 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01514/0.6744, allocations: 7.189 MB / 0.648 GB, free: 4.699 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-05/0.6745, allocations: 8 kB / 0.648 GB, free: 4.691 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001237/0.6757, allocations: 247.7 kB / 0.6483 GB, free: 4.449 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002227/0.678, allocations: 0.7108 MB / 0.649 GB, free: 3.734 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001694/0.6781, allocations: 35.88 kB / 0.649 GB, free: 3.703 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006877/0.685, allocations: 4.761 MB / 0.6536 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.6851, allocations: 4.031 kB / 0.6536 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009351/0.6944, allocations: 5.143 MB / 0.6587 GB, free: 9.637 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001328/0.6958, allocations: 388.7 kB / 0.659 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009378/0.6967, allocations: 20 kB / 0.6591 GB, free: 9.215 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001595/0.6983, allocations: 80.38 kB / 0.6591 GB, free: 9.137 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003044/0.6987, allocations: 88.45 kB / 0.6592 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/0.6988, allocations: 47.97 kB / 0.6593 GB, free: 9 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005049/0.7038, allocations: 2.481 MB / 0.6617 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2e-07/0.7039, allocations: 0 / 0.6617 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005881/0.7098, allocations: 0.8859 MB / 0.6626 GB, free: 5.656 MB / 0.4981 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.00942/0.7192, allocations: 5.764 MB / 0.6682 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.009129/0.7284, allocations: 5.05 MB / 0.6731 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/0.7284, allocations: 0 / 0.6731 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002209/0.7306, allocations: 1.364 MB / 0.6744 GB, free: 9.445 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002846/0.7335, allocations: 422.5 kB / 0.6749 GB, free: 9.043 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3058/1.039, allocations: 47.9 MB / 0.7216 GB, free: 188.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004328/1.044, allocations: 3.058 MB / 0.7246 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005038/1.049, allocations: 1.787 MB / 0.7264 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0031/1.052, allocations: 1.75 MB / 0.7281 GB, free: 186.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.213e-06/1.052, allocations: 0 / 0.7281 GB, free: 186.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1114/1.163, allocations: 67.67 MB / 0.7942 GB, free: 127.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12/13.16, allocations: 7.5 kB / 0.7942 GB, free: 127.3 MB / 0.545 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)