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.001656/0.001656, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001577/0.001577, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 227.4 MB / 246.8 MB, free: 10.61 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.2459/0.2459, allocations: 46.11 MB / 344.2 MB, free: 11.59 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.003354/0.003354, allocations: 87.97 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.123, allocations: 62.45 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3): time 0.01579/0.1388, allocations: 13.04 MB / 493.3 MB, free: 8.051 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008726/0.1476, allocations: 4.275 MB / 497.5 MB, free: 3.762 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001957/0.1496, allocations: 83.75 kB / 497.6 MB, free: 3.68 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006994/0.1566, allocations: 3.703 MB / 0.4896 GB, free: 15.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005719/0.1624, allocations: 1.976 MB / 0.4915 GB, free: 13.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002396/0.1648, allocations: 0.8148 MB / 0.4923 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007664/0.1725, allocations: 4.216 MB / 0.4964 GB, free: 8.938 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007344/0.1799, allocations: 4.848 MB / 0.5011 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003254/0.1832, allocations: 1.838 MB / 0.5029 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2552/0.4384, allocations: 2.462 MB / 0.5053 GB, free: 16.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001711/0.4401, allocations: 413.9 kB / 0.5057 GB, free: 16.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003585/0.4437, allocations: 1.13 MB / 0.5068 GB, free: 16.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003391/0.4471, allocations: 2.186 MB / 0.509 GB, free: 16.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005925/0.4531, allocations: 2.6 MB / 0.5115 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0118/0.4649, allocations: 7.833 MB / 0.5192 GB, free: 14.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.984e-06/0.465, allocations: 0 / 0.5192 GB, free: 14.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.465, allocations: 1.062 kB / 0.5192 GB, free: 14.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003846/0.4654, allocations: 0.5 kB / 0.5192 GB, free: 14.63 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: 1736 * Number of variables: 1736 Notification: Performance of Generate backend data structure: time 0.02672/0.4921, allocations: 6.223 MB / 0.5252 GB, free: 12.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/0.4922, allocations: 9.438 kB / 0.5252 GB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00336/0.4956, allocations: 0.8303 MB / 0.5261 GB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00917/0.5047, allocations: 1.974 MB / 0.528 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007618/0.5124, allocations: 2.858 MB / 0.5308 GB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000353/0.5128, allocations: 295.1 kB / 0.5311 GB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002628/0.5154, allocations: 392.9 kB / 0.5314 GB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02975/0.5452, allocations: 12.2 MB / 0.5433 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002612/0.5455, allocations: 46.97 kB / 0.5434 GB, free: 2.062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001831/0.5474, allocations: 185.3 kB / 0.5436 GB, free: 1.973 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003999/0.5514, allocations: 2.194 MB / 0.5457 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03002/0.5814, allocations: 11.19 MB / 0.5566 GB, free: 5.562 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07923/0.6607, allocations: 46.1 MB / 0.6017 GB, free: 6.969 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02006/0.6808, allocations: 5.485 MB / 0.607 GB, free: 1.352 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005449/0.6863, allocations: 3.439 MB / 0.6104 GB, free: 13.9 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001247/0.6876, allocations: 0.7005 MB / 0.6111 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.193e-05/0.6876, allocations: 55.25 kB / 0.6111 GB, free: 13.05 MB / 462.1 MB Notification: Performance of pre-optimization done (n=203): time 5.13e-06/0.6877, allocations: 0 / 0.6111 GB, free: 13.05 MB / 462.1 MB Notification: Performance of matching and sorting (n=234): time 0.09319/0.7809, allocations: 27.29 MB / 0.6378 GB, free: 1.672 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.781, allocations: 157.9 kB / 0.6379 GB, free: 1.488 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009679/0.7907, allocations: 4.403 MB / 0.6422 GB, free: 13.06 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001359/0.7921, allocations: 61.7 kB / 0.6423 GB, free: 13 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004554/0.7967, allocations: 3.389 MB / 0.6456 GB, free: 9.605 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002081/0.7988, allocations: 0.8728 MB / 0.6464 GB, free: 8.738 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003234/0.8021, allocations: 1.41 MB / 0.6478 GB, free: 7.32 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.8022, allocations: 305.1 kB / 0.6481 GB, free: 7.02 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005731/0.808, allocations: 3.269 MB / 0.6513 GB, free: 3.746 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01014/0.8182, allocations: 7.083 MB / 0.6582 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01764/0.8358, allocations: 11.15 MB / 0.6691 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001757/0.8361, allocations: 40 kB / 0.6691 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of matching and sorting (n=851) (initialization): time 0.02712/0.8632, allocations: 11.25 MB / 0.6801 GB, free: 3.363 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/0.8633, allocations: 70.05 kB / 0.6802 GB, free: 3.297 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001671/0.8635, allocations: 139.9 kB / 0.6803 GB, free: 3.16 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003155/0.8667, allocations: 1.121 MB / 0.6814 GB, free: 2.035 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006803/0.8735, allocations: 1.684 MB / 0.6831 GB, free: 356 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009305/0.8828, allocations: 6.358 MB / 0.6893 GB, free: 9.859 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006319/0.8892, allocations: 395.5 kB / 0.6897 GB, free: 9.473 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00163/0.8908, allocations: 451.7 kB / 0.6901 GB, free: 9.035 MB / 0.5294 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.005999/0.8968, allocations: 2.302 MB / 0.6923 GB, free: 6.723 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001357/0.8982, allocations: 394.8 kB / 0.6927 GB, free: 6.332 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01246/0.9107, allocations: 6.191 MB / 0.6988 GB, free: 120 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000106/0.9108, allocations: 24 kB / 0.6988 GB, free: 96 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.135e-05/0.9109, allocations: 7.938 kB / 0.6988 GB, free: 88 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.107e-05/0.9109, allocations: 11.97 kB / 0.6988 GB, free: 76 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02878/0.9397, allocations: 13.03 MB / 0.7115 GB, free: 2.957 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.178e-05/0.9398, allocations: 8.031 kB / 0.7115 GB, free: 2.949 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003255/0.943, allocations: 0.5382 MB / 0.7121 GB, free: 2.41 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002813/0.9459, allocations: 0.945 MB / 0.713 GB, free: 1.461 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006606/0.9466, allocations: 87.89 kB / 0.7131 GB, free: 1.375 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2343/1.181, allocations: 6.059 MB / 0.719 GB, free: 191.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/1.181, allocations: 3.125 kB / 0.719 GB, free: 191.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01561/1.197, allocations: 10.47 MB / 0.7292 GB, free: 188.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002381/1.199, allocations: 0.8869 MB / 0.7301 GB, free: 188.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001214/1.2, allocations: 39 kB / 0.7301 GB, free: 188.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002896/1.203, allocations: 170 kB / 0.7303 GB, free: 188.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005646/1.204, allocations: 188.7 kB / 0.7304 GB, free: 188.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000254/1.204, allocations: 102 kB / 0.7305 GB, free: 188.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004984/1.209, allocations: 2.776 MB / 0.7333 GB, free: 187.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 4e-07/1.209, allocations: 3.344 kB / 0.7333 GB, free: 187.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008164/1.217, allocations: 1.177 MB / 0.7344 GB, free: 187.4 MB / 0.545 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.01412/1.231, allocations: 11.14 MB / 0.7453 GB, free: 183.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01518/1.247, allocations: 9.809 MB / 0.7549 GB, free: 175.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.848e-06/1.247, allocations: 0 / 0.7549 GB, free: 175.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004384/1.251, allocations: 3.021 MB / 0.7578 GB, free: 172.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004539/1.256, allocations: 499.7 kB / 0.7583 GB, free: 172.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08768/1.343, allocations: 66.46 MB / 0.8232 GB, free: 97.96 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004401/1.348, allocations: 3.624 MB / 0.8267 GB, free: 94.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005177/1.353, allocations: 2.261 MB / 0.8289 GB, free: 92.03 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003738/1.357, allocations: 2.327 MB / 0.8312 GB, free: 89.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.082e-06/1.357, allocations: 0 / 0.8312 GB, free: 89.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3924/1.749, allocations: 95.35 MB / 0.9243 GB, free: 185.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/14.28, allocations: 11.8 kB / 0.9243 GB, free: 185.5 MB / 0.545 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)