Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001231/0.001231, 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.00136/0.00136, 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.467/1.467, allocations: 227.4 MB / 247 MB, free: 10.44 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.2328/0.2328, allocations: 46.13 MB / 344.4 MB, free: 11.44 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.00243/0.00243, allocations: 75.88 kB / 480.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4065/0.4089, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003561/0.4125, allocations: 1.919 MB / 0.5325 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.4136, allocations: 0.5599 MB / 0.533 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.9e-05/0.4137, allocations: 6.594 kB / 0.533 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001392/0.4139, allocations: 18.23 kB / 0.533 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.406e-05/0.414, allocations: 40.06 kB / 0.5331 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002363/0.4142, allocations: 51.69 kB / 0.5331 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002078/0.4144, allocations: 150 kB / 0.5333 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001947/0.4146, allocations: 68.84 kB / 0.5333 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/0.4148, allocations: 63.31 kB / 0.5334 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001247/0.4149, allocations: 62.27 kB / 0.5335 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.646e-05/0.415, allocations: 11.72 kB / 0.5335 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.358e-05/0.415, allocations: 18.06 kB / 0.5335 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.075e-05/0.4151, allocations: 28.75 kB / 0.5335 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.502e-05/0.4151, allocations: 68.7 kB / 0.5336 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002443/0.4154, allocations: 156.6 kB / 0.5337 GB, free: 10.92 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.4154, allocations: 5.422 kB / 0.5337 GB, free: 10.92 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4154, allocations: 0 / 0.5337 GB, free: 10.92 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.4154, allocations: 0 / 0.5337 GB, free: 10.92 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006588/0.4161, allocations: 442 kB / 0.5341 GB, free: 10.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.4161, allocations: 10.12 kB / 0.5342 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.439e-05/0.4162, allocations: 47.02 kB / 0.5342 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.4164, allocations: 21.22 kB / 0.5342 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003364/0.4167, allocations: 213.9 kB / 0.5344 GB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.4167, allocations: 9.875 kB / 0.5344 GB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.952e-05/0.4168, allocations: 21.95 kB / 0.5345 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002655/0.4171, allocations: 130.9 kB / 0.5346 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.4171, allocations: 0 / 0.5346 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.682e-05/0.4171, allocations: 5.375 kB / 0.5346 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.4171, allocations: 4.125 kB / 0.5346 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001794/0.4173, allocations: 75.95 kB / 0.5347 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000731/0.418, allocations: 473.6 kB / 0.5351 GB, free: 9.621 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002293/0.4183, allocations: 119.4 kB / 0.5352 GB, free: 9.555 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.4184, allocations: 65.64 kB / 0.5353 GB, free: 9.516 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.4184, allocations: 1.375 kB / 0.5353 GB, free: 9.516 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.4185, allocations: 39.94 kB / 0.5353 GB, free: 9.469 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 2.956e-06/0.4185, allocations: 0 / 0.5353 GB, free: 9.469 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001592/0.4201, allocations: 0.8155 MB / 0.5361 GB, free: 8.793 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.168e-05/0.4201, allocations: 53.66 kB / 0.5362 GB, free: 8.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001491/0.4203, allocations: 142.6 kB / 0.5363 GB, free: 8.609 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.893e-05/0.4203, allocations: 30.86 kB / 0.5363 GB, free: 8.574 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.38e-05/0.4204, allocations: 110.2 kB / 0.5365 GB, free: 8.465 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.124e-05/0.4205, allocations: 70.06 kB / 0.5365 GB, free: 8.402 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-05/0.4206, allocations: 37.61 kB / 0.5366 GB, free: 8.371 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.4207, allocations: 330.1 kB / 0.5369 GB, free: 8.043 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.4209, allocations: 43.89 kB / 0.5369 GB, free: 8.023 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001379/0.421, allocations: 80.59 kB / 0.537 GB, free: 7.961 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002497/0.4213, allocations: 132 kB / 0.5371 GB, free: 7.875 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.4213, allocations: 0.9375 kB / 0.5371 GB, free: 7.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000397/0.4217, allocations: 209.5 kB / 0.5373 GB, free: 7.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.4217, allocations: 9.219 kB / 0.5373 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.4217, allocations: 2.188 kB / 0.5373 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001721/0.4219, allocations: 49.39 kB / 0.5374 GB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.4221, allocations: 34.69 kB / 0.5374 GB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001697/0.4238, allocations: 1.738 MB / 0.5391 GB, free: 5.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.608e-05/0.4239, allocations: 6.531 kB / 0.5391 GB, free: 5.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.4239, allocations: 5.594 kB / 0.5391 GB, free: 5.988 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001485/0.4241, allocations: 127.7 kB / 0.5392 GB, free: 5.859 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.051e-05/0.4241, allocations: 14.94 kB / 0.5392 GB, free: 5.852 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.138e-05/0.4242, allocations: 23.64 kB / 0.5393 GB, free: 5.836 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.4242, allocations: 6.031 kB / 0.5393 GB, free: 5.832 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.4242, allocations: 1.219 kB / 0.5393 GB, free: 5.832 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.4242, allocations: 4.062 kB / 0.5393 GB, free: 5.828 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008428/0.425, allocations: 0.5531 MB / 0.5398 GB, free: 5.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.4251, allocations: 1.125 kB / 0.5398 GB, free: 5.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001675/0.4252, allocations: 35.62 kB / 0.5399 GB, free: 5.332 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001149/0.4254, allocations: 31.5 kB / 0.5399 GB, free: 5.312 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.4254, allocations: 6.375 kB / 0.5399 GB, free: 5.309 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00129/0.4267, allocations: 1.477 MB / 0.5413 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.4267, allocations: 1.031 kB / 0.5413 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005476/0.4272, allocations: 349.7 kB / 0.5417 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.985e-05/0.4273, allocations: 89.05 kB / 0.5418 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.88e-05/0.4273, allocations: 5.781 kB / 0.5418 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.089e-05/0.4274, allocations: 7.375 kB / 0.5418 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.76e-05/0.4275, allocations: 25.84 kB / 0.5418 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.4275, allocations: 8.188 kB / 0.5418 GB, free: 3.422 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.191e-05/0.4276, allocations: 107.6 kB / 0.5419 GB, free: 3.336 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4276, allocations: 0 / 0.5419 GB, free: 3.336 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003696/0.428, allocations: 42.06 kB / 0.5419 GB, free: 3.328 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.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 (16): * Single equations (assignments): 15 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009365/0.4289, allocations: 0.8775 MB / 0.5428 GB, free: 2.543 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006206/0.4296, allocations: 260.1 kB / 0.543 GB, free: 2.363 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.4296, allocations: 0 / 0.543 GB, free: 2.363 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003138/0.4299, allocations: 196.6 kB / 0.5432 GB, free: 2.211 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003559/0.4303, allocations: 23.56 kB / 0.5433 GB, free: 2.199 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002736/0.433, allocations: 2.071 MB / 0.5453 GB, free: 460 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004529/0.4335, allocations: 0.718 MB / 0.546 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.103e-05/0.4336, allocations: 14.64 kB / 0.546 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.026e-05/0.4337, allocations: 42.86 kB / 0.546 GB, free: 15.69 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4337, allocations: 0 / 0.546 GB, free: 15.69 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03294/0.4666, allocations: 3.45 MB / 0.5494 GB, free: 13.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.44/10.91, allocations: 7.188 kB / 0.5494 GB, free: 13.7 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1)