Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.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.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001348/0.001348, 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.001475/0.001475, 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.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.228/0.228, 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.002535/0.002535, allocations: 71.88 kB / 480.9 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3258, allocations: 62.44 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001471/0.3273, allocations: 488.5 kB / 0.531 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003087/0.3304, allocations: 2.127 MB / 0.5331 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.424e-05/0.3305, allocations: 1.344 kB / 0.5331 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.45e-05/0.3305, allocations: 0 / 0.5331 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.558e-05/0.3305, allocations: 4 kB / 0.5331 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.3317, allocations: 406 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.193e-05/0.3317, allocations: 5.781 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.299e-05/0.3318, allocations: 2 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.354e-05/0.3318, allocations: 1.906 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02046/0.3523, allocations: 3.358 MB / 0.5368 GB, free: 9.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.3523, allocations: 0 / 0.5368 GB, free: 9.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.678e-05/0.3524, allocations: 3.5 kB / 0.5368 GB, free: 9.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.14e-05/0.3524, allocations: 5.156 kB / 0.5368 GB, free: 9.816 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.08e-05/0.3524, allocations: 1 kB / 0.5368 GB, free: 9.816 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001363/0.3526, allocations: 20.44 kB / 0.5368 GB, free: 9.801 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.3526, allocations: 0 / 0.5368 GB, free: 9.801 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3526, allocations: 0 / 0.5368 GB, free: 9.801 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.868e-06/0.3526, allocations: 1.281 kB / 0.5368 GB, free: 9.801 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003177/0.3529, allocations: 312.3 kB / 0.5371 GB, free: 9.453 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.353, allocations: 13.33 kB / 0.5371 GB, free: 9.449 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.228e-05/0.353, allocations: 107.3 kB / 0.5372 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000195/0.3532, allocations: 86 kB / 0.5373 GB, free: 9.258 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001764/0.3534, allocations: 247.5 kB / 0.5376 GB, free: 8.977 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.273e-05/0.3535, allocations: 152.2 kB / 0.5377 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.734e-05/0.3536, allocations: 162.5 kB / 0.5379 GB, free: 8.668 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.468e-05/0.3537, allocations: 102.1 kB / 0.538 GB, free: 8.562 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.124e-05/0.3537, allocations: 79.28 kB / 0.538 GB, free: 8.484 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.456e-05/0.3538, allocations: 150.6 kB / 0.5382 GB, free: 8.336 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.627e-05/0.3538, allocations: 151.3 kB / 0.5383 GB, free: 8.188 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.04e-05/0.3539, allocations: 163.6 kB / 0.5385 GB, free: 8.027 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003008/0.3542, allocations: 443.1 kB / 0.5389 GB, free: 7.547 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001048/0.3543, allocations: 169.8 kB / 0.5391 GB, free: 7.371 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.062e-05/0.3544, allocations: 85.06 kB / 0.5391 GB, free: 7.285 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.142e-05/0.3544, allocations: 83.28 kB / 0.5392 GB, free: 7.203 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.438e-05/0.3545, allocations: 106.8 kB / 0.5393 GB, free: 7.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 9.21e-07/0.3545, allocations: 0.8438 kB / 0.5393 GB, free: 7.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.823e-05/0.3546, allocations: 30.73 kB / 0.5394 GB, free: 7.055 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/0.3547, allocations: 179.1 kB / 0.5395 GB, free: 6.855 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.67e-05/0.3548, allocations: 90.86 kB / 0.5396 GB, free: 6.758 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/0.3548, allocations: 26.83 kB / 0.5396 GB, free: 6.727 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.166e-05/0.3549, allocations: 85.11 kB / 0.5397 GB, free: 6.641 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.402e-06/0.3549, allocations: 0 / 0.5397 GB, free: 6.641 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.841e-05/0.3549, allocations: 15.72 kB / 0.5397 GB, free: 6.621 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3551, allocations: 315.8 kB / 0.54 GB, free: 6.305 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.468e-06/0.3551, allocations: 0 / 0.54 GB, free: 6.305 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.607e-05/0.3551, allocations: 12.25 kB / 0.54 GB, free: 6.289 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.489e-05/0.3551, allocations: 76.09 kB / 0.5401 GB, free: 6.215 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.129e-05/0.3552, allocations: 79.31 kB / 0.5402 GB, free: 6.137 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.73e-05/0.3552, allocations: 36.14 kB / 0.5402 GB, free: 6.098 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.723e-05/0.3553, allocations: 81.12 kB / 0.5403 GB, free: 6.023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.454e-05/0.3553, allocations: 76.41 kB / 0.5404 GB, free: 5.949 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.473e-05/0.3554, allocations: 155.5 kB / 0.5405 GB, free: 5.797 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.555e-05/0.3554, allocations: 83.95 kB / 0.5406 GB, free: 5.715 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.304e-05/0.3555, allocations: 151.3 kB / 0.5408 GB, free: 5.566 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.574e-05/0.3556, allocations: 88.66 kB / 0.5408 GB, free: 5.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.073e-05/0.3556, allocations: 76.44 kB / 0.5409 GB, free: 5.406 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001423/0.3558, allocations: 262.4 kB / 0.5412 GB, free: 5.141 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.607e-05/0.3559, allocations: 110.8 kB / 0.5413 GB, free: 5.027 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.448e-05/0.3559, allocations: 116.9 kB / 0.5414 GB, free: 4.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.941e-05/0.356, allocations: 181.5 kB / 0.5416 GB, free: 4.727 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.047e-05/0.3561, allocations: 185.4 kB / 0.5417 GB, free: 4.539 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.658e-05/0.3562, allocations: 176.3 kB / 0.5419 GB, free: 4.359 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002652/0.3565, allocations: 411.2 kB / 0.5423 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.311e-05/0.3565, allocations: 102.1 kB / 0.5424 GB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.285e-05/0.3566, allocations: 101.9 kB / 0.5425 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.571e-05/0.3566, allocations: 185.3 kB / 0.5427 GB, free: 3.504 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.998e-05/0.3567, allocations: 177.3 kB / 0.5428 GB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.035e-05/0.3568, allocations: 185.2 kB / 0.543 GB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-05/0.3569, allocations: 177.3 kB / 0.5432 GB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001669/0.3571, allocations: 311.9 kB / 0.5435 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.028e-05/0.3572, allocations: 182.9 kB / 0.5436 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.953e-05/0.3573, allocations: 194.3 kB / 0.5438 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.3574, allocations: 102.2 kB / 0.5439 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.664e-05/0.3575, allocations: 177.4 kB / 0.5441 GB, free: 1.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-05/0.3575, allocations: 110.1 kB / 0.5442 GB, free: 1.836 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.1e-05/0.3576, allocations: 76.53 kB / 0.5443 GB, free: 1.762 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3576, allocations: 0 / 0.5443 GB, free: 1.762 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002462/0.3578, allocations: 1.25 kB / 0.5443 GB, free: 1.762 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004651/0.3583, allocations: 0.8087 MB / 0.5451 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 4.826e-05/0.3583, allocations: 6.281 kB / 0.5451 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3584, allocations: 0 / 0.5451 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.412e-06/0.3584, allocations: 0 / 0.5451 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003905/0.3588, allocations: 459.2 kB / 0.5455 GB, free: 496 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003577/0.3591, allocations: 174.6 kB / 0.5457 GB, free: 284 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003209/0.3595, allocations: 0.6739 MB / 0.5463 GB, free: 15.58 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.38e-05/0.3595, allocations: 1.219 kB / 0.5463 GB, free: 15.58 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.491e-05/0.3595, allocations: 8.562 kB / 0.5463 GB, free: 15.57 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3595, allocations: 0 / 0.5463 GB, free: 15.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02244/0.382, allocations: 1.023 MB / 0.5473 GB, free: 14.96 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.043/8.425, allocations: 13.12 kB / 0.5474 GB, free: 14.96 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1)