Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.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.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001373/0.001374, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002292/0.002292, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 247 MB, free: 10.46 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.2267/0.2267, allocations: 46.12 MB / 344.4 MB, free: 11.49 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.002586/0.002586, allocations: 83.84 kB / 480.9 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.3522, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001553/0.3538, allocations: 490 kB / 0.531 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.355, allocations: 0.7816 MB / 0.5318 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.737e-05/0.3551, allocations: 1.156 kB / 0.5318 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.73e-05/0.3551, allocations: 0 / 0.5318 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001828/0.3553, allocations: 10.39 kB / 0.5318 GB, free: 12.41 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:322:3-362:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0006102/0.3559, allocations: 65.52 kB / 0.5319 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.058e-05/0.356, allocations: 2.344 kB / 0.5319 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.433e-05/0.356, allocations: 1.188 kB / 0.5319 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.715e-05/0.356, allocations: 1.25 kB / 0.5319 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.104e-05/0.3561, allocations: 2.375 kB / 0.5319 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.925e-06/0.3561, allocations: 3.938 kB / 0.5319 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001434/0.3563, allocations: 66.31 kB / 0.532 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.194e-06/0.3563, allocations: 0 / 0.532 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.179e-05/0.3563, allocations: 9.422 kB / 0.532 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000123/0.3565, allocations: 46.17 kB / 0.532 GB, free: 12.3 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.3565, allocations: 0 / 0.532 GB, free: 12.3 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3565, allocations: 4 kB / 0.532 GB, free: 12.3 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.3565, allocations: 2 kB / 0.532 GB, free: 12.3 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003932/0.3569, allocations: 356.4 kB / 0.5324 GB, free: 11.9 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.3569, allocations: 9.844 kB / 0.5324 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.446e-05/0.357, allocations: 30.75 kB / 0.5324 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.243e-05/0.357, allocations: 0.9375 kB / 0.5324 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.3571, allocations: 162.2 kB / 0.5325 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.3572, allocations: 384 / 0.5325 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.672e-06/0.3572, allocations: 2.125 kB / 0.5326 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.314e-05/0.3573, allocations: 36.25 kB / 0.5326 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.3573, allocations: 3.938 kB / 0.5326 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.3573, allocations: 0 / 0.5326 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-06/0.3573, allocations: 3.938 kB / 0.5326 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.452e-05/0.3573, allocations: 1.875 kB / 0.5326 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001521/0.3575, allocations: 147.6 kB / 0.5327 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.836e-05/0.3575, allocations: 20.3 kB / 0.5328 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.258e-05/0.3576, allocations: 14.5 kB / 0.5328 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.104e-06/0.3576, allocations: 0 / 0.5328 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.038e-05/0.3576, allocations: 61.64 kB / 0.5328 GB, free: 11.31 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.3576, allocations: 0 / 0.5328 GB, free: 11.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001578/0.3578, allocations: 68.81 kB / 0.5329 GB, free: 11.24 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.53e-05/0.3579, allocations: 81.09 kB / 0.533 GB, free: 11.14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.018e-05/0.358, allocations: 90.95 kB / 0.5331 GB, free: 11.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.358, allocations: 30.83 kB / 0.5331 GB, free: 11.01 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.676e-05/0.358, allocations: 80.14 kB / 0.5332 GB, free: 10.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.429e-05/0.358, allocations: 5.719 kB / 0.5332 GB, free: 10.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.713e-05/0.3581, allocations: 11.12 kB / 0.5332 GB, free: 10.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.3582, allocations: 312.5 kB / 0.5335 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.636e-06/0.3582, allocations: 0 / 0.5335 GB, free: 10.6 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.2e-06/0.3583, allocations: 1.469 kB / 0.5335 GB, free: 10.6 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.442e-05/0.3583, allocations: 72.81 kB / 0.5335 GB, free: 10.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.3583, allocations: 0 / 0.5335 GB, free: 10.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.562e-05/0.3584, allocations: 67.03 kB / 0.5336 GB, free: 10.45 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.546e-05/0.3585, allocations: 35.33 kB / 0.5336 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.3585, allocations: 0 / 0.5336 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.3585, allocations: 0 / 0.5336 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-07/0.3585, allocations: 3.938 kB / 0.5336 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.3585, allocations: 1.094 kB / 0.5336 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.688e-05/0.3585, allocations: 3.984 kB / 0.5337 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.3585, allocations: 1.156 kB / 0.5337 GB, free: 10.4 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.000101/0.3586, allocations: 141.9 kB / 0.5338 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.149e-05/0.3587, allocations: 5.656 kB / 0.5338 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.714e-06/0.3587, allocations: 3.125 kB / 0.5338 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.3587, allocations: 0 / 0.5338 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.3587, allocations: 1.562 kB / 0.5338 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.3587, allocations: 0 / 0.5338 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001165/0.3588, allocations: 150.9 kB / 0.5339 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3588, allocations: 1.594 kB / 0.5339 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3588, allocations: 0 / 0.5339 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-05/0.3588, allocations: 3.938 kB / 0.5339 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.697e-06/0.3588, allocations: 5.844 kB / 0.534 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.3589, allocations: 7.875 kB / 0.534 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3589, allocations: 0 / 0.534 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001055/0.359, allocations: 90.2 kB / 0.534 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.844e-05/0.359, allocations: 86.19 kB / 0.5341 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.359, allocations: 5.094 kB / 0.5341 GB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.999e-06/0.3591, allocations: 0 / 0.5341 GB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.36e-05/0.3591, allocations: 5.25 kB / 0.5341 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.3591, allocations: 1.188 kB / 0.5341 GB, free: 9.824 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.638e-05/0.3591, allocations: 79.27 kB / 0.5342 GB, free: 9.746 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3591, allocations: 1.281 kB / 0.5342 GB, free: 9.746 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000215/0.3594, allocations: 17.28 kB / 0.5342 GB, free: 9.742 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0007653/0.3601, allocations: 0.7297 MB / 0.5349 GB, free: 9.051 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001005/0.3602, allocations: 60.89 kB / 0.535 GB, free: 8.984 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3603, allocations: 0 / 0.535 GB, free: 8.984 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.639e-05/0.3603, allocations: 54.94 kB / 0.5351 GB, free: 8.922 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001275/0.3604, allocations: 5.781 kB / 0.5351 GB, free: 8.918 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002994/0.3607, allocations: 111.2 kB / 0.5352 GB, free: 8.781 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.3611, allocations: 0.6707 MB / 0.5358 GB, free: 8.086 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.785e-06/0.3611, allocations: 3.938 kB / 0.5358 GB, free: 8.082 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.275e-05/0.3611, allocations: 13.31 kB / 0.5358 GB, free: 8.07 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3611, allocations: 0 / 0.5358 GB, free: 8.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02473/0.3858, allocations: 1.484 MB / 0.5373 GB, free: 7.207 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.155/8.541, allocations: 7.078 kB / 0.5373 GB, free: 7.203 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile_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_TestReadFile.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe 2>&1)