Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.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.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001474/0.001473, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001568/0.001568, allocations: 198 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.451/1.451, 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.2392/0.2392, allocations: 46.11 MB / 344.3 MB, free: 11.48 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.003752/0.003752, allocations: 71.88 kB / 480.9 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3799/0.3837, allocations: 62.46 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.01039/0.3941, allocations: 5.775 MB / 0.5362 GB, free: 8.793 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005698/0.3999, allocations: 2.35 MB / 0.5385 GB, free: 6.867 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009655/0.4009, allocations: 40.62 kB / 0.5386 GB, free: 6.852 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005911/0.4015, allocations: 225.3 kB / 0.5388 GB, free: 6.652 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000605/0.4021, allocations: 188.8 kB / 0.539 GB, free: 6.484 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001286/0.4034, allocations: 470.2 kB / 0.5394 GB, free: 6.098 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001468/0.4049, allocations: 1.125 MB / 0.5405 GB, free: 5.395 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009295/0.4058, allocations: 0.6118 MB / 0.5411 GB, free: 5.012 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006176/0.4065, allocations: 367.7 kB / 0.5415 GB, free: 4.789 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004872/0.407, allocations: 391.8 kB / 0.5418 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001303/0.4071, allocations: 95.47 kB / 0.5419 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003249/0.4074, allocations: 156.5 kB / 0.5421 GB, free: 4.477 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002206/0.4077, allocations: 218.7 kB / 0.5423 GB, free: 4.297 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000509/0.4082, allocations: 471.3 kB / 0.5427 GB, free: 3.961 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001616/0.4098, allocations: 1.283 MB / 0.544 GB, free: 2.992 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.4098, allocations: 0 / 0.544 GB, free: 2.992 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4098, allocations: 4 kB / 0.544 GB, free: 2.988 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.979e-05/0.4099, allocations: 1.281 kB / 0.544 GB, free: 2.988 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001788/0.4117, allocations: 1.168 MB / 0.5451 GB, free: 2.039 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.4117, allocations: 9.062 kB / 0.5451 GB, free: 2.039 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001709/0.4119, allocations: 138.1 kB / 0.5453 GB, free: 1.926 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002783/0.4122, allocations: 119.2 kB / 0.5454 GB, free: 1.863 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009902/0.4132, allocations: 0.6034 MB / 0.546 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.272e-05/0.4133, allocations: 66.34 kB / 0.546 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.4134, allocations: 95.42 kB / 0.5461 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.4149, allocations: 0.8841 MB / 0.547 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.472e-05/0.415, allocations: 4.469 kB / 0.547 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.589e-05/0.4151, allocations: 40.94 kB / 0.547 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.065e-05/0.4151, allocations: 23.31 kB / 0.547 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.4161, allocations: 0.5228 MB / 0.5476 GB, free: 124 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00405/0.4202, allocations: 3.613 MB / 0.5511 GB, free: 12.35 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005752/0.4208, allocations: 235.7 kB / 0.5513 GB, free: 12.11 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001796/0.421, allocations: 100.8 kB / 0.5514 GB, free: 12.01 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002543/0.4213, allocations: 251.3 kB / 0.5516 GB, free: 11.71 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.98e-05/0.4213, allocations: 34.56 kB / 0.5517 GB, free: 11.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 2.384e-06/0.4213, allocations: 0 / 0.5517 GB, free: 11.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002568/0.4239, allocations: 1.31 MB / 0.553 GB, free: 10.26 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.424, allocations: 59.34 kB / 0.553 GB, free: 10.19 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004628/0.4244, allocations: 401.8 kB / 0.5534 GB, free: 9.793 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.198e-05/0.4245, allocations: 37.7 kB / 0.5534 GB, free: 9.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003421/0.4248, allocations: 483.4 kB / 0.5539 GB, free: 9.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.4249, allocations: 138.8 kB / 0.554 GB, free: 9.133 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.4251, allocations: 102.2 kB / 0.5541 GB, free: 9.027 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.4253, allocations: 362.8 kB / 0.5545 GB, free: 8.664 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002276/0.4255, allocations: 109.1 kB / 0.5546 GB, free: 8.555 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003885/0.4259, allocations: 314.1 kB / 0.5549 GB, free: 8.164 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006364/0.4266, allocations: 455.6 kB / 0.5553 GB, free: 7.633 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.4266, allocations: 3.984 kB / 0.5553 GB, free: 7.629 MB / 414.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008469/0.4274, allocations: 0.5173 MB / 0.5558 GB, free: 7.102 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.4274, allocations: 8 kB / 0.5558 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.4275, allocations: 11.98 kB / 0.5558 GB, free: 7.082 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001907/0.4277, allocations: 36.84 kB / 0.5559 GB, free: 7.043 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000384/0.4281, allocations: 127.8 kB / 0.556 GB, free: 6.918 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000496/0.4286, allocations: 0.5563 MB / 0.5565 GB, free: 6.336 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002277/0.4288, allocations: 20.16 kB / 0.5566 GB, free: 6.316 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.52e-05/0.4289, allocations: 24 kB / 0.5566 GB, free: 6.293 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003145/0.4292, allocations: 237.6 kB / 0.5568 GB, free: 6.051 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.436e-05/0.4293, allocations: 51.61 kB / 0.5569 GB, free: 6 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000681/0.4299, allocations: 326.9 kB / 0.5572 GB, free: 5.668 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.43, allocations: 8 kB / 0.5572 GB, free: 5.66 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.43, allocations: 0 / 0.5572 GB, free: 5.66 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.43, allocations: 3.984 kB / 0.5572 GB, free: 5.656 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001562/0.4316, allocations: 1.055 MB / 0.5582 GB, free: 4.527 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.4316, allocations: 4.156 kB / 0.5582 GB, free: 4.523 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003644/0.4319, allocations: 79.89 kB / 0.5583 GB, free: 4.445 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001493/0.4321, allocations: 36.78 kB / 0.5583 GB, free: 4.406 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/0.4321, allocations: 8 kB / 0.5583 GB, free: 4.398 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003787/0.4325, allocations: 0.5407 MB / 0.5589 GB, free: 3.832 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.4325, allocations: 4.031 kB / 0.5589 GB, free: 3.828 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008394/0.4334, allocations: 0.5654 MB / 0.5594 GB, free: 3.223 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/0.4335, allocations: 124.9 kB / 0.5595 GB, free: 3.082 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.305e-05/0.4336, allocations: 15.98 kB / 0.5596 GB, free: 3.066 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001567/0.4337, allocations: 15.98 kB / 0.5596 GB, free: 3.051 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.01e-05/0.4338, allocations: 19.91 kB / 0.5596 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.4338, allocations: 16 kB / 0.5596 GB, free: 3.016 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003048/0.4341, allocations: 271.1 kB / 0.5599 GB, free: 2.754 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4342, allocations: 192 / 0.5599 GB, free: 2.754 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000572/0.4347, allocations: 127.9 kB / 0.56 GB, free: 2.629 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001184/0.4359, allocations: 1.138 MB / 0.5611 GB, free: 1.445 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006565/0.4366, allocations: 329.3 kB / 0.5614 GB, free: 1.125 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.4366, allocations: 4.125 kB / 0.5614 GB, free: 1.121 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002741/0.4369, allocations: 143.8 kB / 0.5615 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005208/0.4374, allocations: 69.69 kB / 0.5616 GB, free: 0.918 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006848/0.4443, allocations: 4.849 MB / 0.5663 GB, free: 11.79 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006407/0.4449, allocations: 0.9563 MB / 0.5673 GB, free: 10.8 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001988/0.4452, allocations: 64.47 kB / 0.5673 GB, free: 10.74 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003839/0.4455, allocations: 291.3 kB / 0.5676 GB, free: 10.45 MB / 430.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4456, allocations: 0 / 0.5676 GB, free: 10.45 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03845/0.484, allocations: 9.413 MB / 0.5768 GB, free: 1.191 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/12.88, allocations: 16.22 kB / 0.5768 GB, free: 1.18 MB / 430.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1)