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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001395/0.001395, allocations: 105 kB / 19.74 MB, free: 2.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001599/0.001599, allocations: 216.9 kB / 22.92 MB, free: 5.195 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 230.2 MB / 256.1 MB, free: 8.609 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2016/0.2016, allocations: 46.89 MB / 359.3 MB, free: 4.988 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "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.002121/0.002121, allocations: 83.84 kB / 0.4939 GB, free: 9.156 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2564, allocations: 65.98 MB / 0.5584 GB, free: 5.242 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001394/0.2578, allocations: 485.1 kB / 0.5588 GB, free: 4.766 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.259, allocations: 0.8546 MB / 0.5597 GB, free: 3.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.194e-05/0.259, allocations: 0 / 0.5597 GB, free: 3.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.387e-06/0.259, allocations: 0 / 0.5597 GB, free: 3.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001365/0.2591, allocations: 7.922 kB / 0.5597 GB, free: 3.902 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.0004934/0.2596, allocations: 52.92 kB / 0.5597 GB, free: 3.855 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.356e-05/0.2597, allocations: 7.938 kB / 0.5597 GB, free: 3.848 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.072e-05/0.2597, allocations: 4 kB / 0.5597 GB, free: 3.844 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.428e-05/0.2597, allocations: 0 / 0.5597 GB, free: 3.844 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.494e-05/0.2598, allocations: 7.984 kB / 0.5598 GB, free: 3.836 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.013e-06/0.2598, allocations: 0 / 0.5598 GB, free: 3.836 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001272/0.2599, allocations: 63.94 kB / 0.5598 GB, free: 3.773 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.254e-06/0.2599, allocations: 4 kB / 0.5598 GB, free: 3.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.576e-05/0.2599, allocations: 3.938 kB / 0.5598 GB, free: 3.766 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001077/0.26, allocations: 47.73 kB / 0.5599 GB, free: 3.723 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.26, allocations: 0 / 0.5599 GB, free: 3.723 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.26, allocations: 0 / 0.5599 GB, free: 3.723 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.507e-06/0.2601, allocations: 0 / 0.5599 GB, free: 3.723 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.00035/0.2604, allocations: 355.1 kB / 0.5602 GB, free: 3.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.962e-05/0.2604, allocations: 8.031 kB / 0.5602 GB, free: 3.312 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.736e-05/0.2605, allocations: 30.75 kB / 0.5602 GB, free: 3.273 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.817e-05/0.2605, allocations: 4.938 kB / 0.5603 GB, free: 3.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001221/0.2606, allocations: 172.3 kB / 0.5604 GB, free: 3.062 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.2606, allocations: 4.375 kB / 0.5604 GB, free: 3.059 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-06/0.2606, allocations: 384 / 0.5604 GB, free: 3.059 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.57e-05/0.2607, allocations: 30.27 kB / 0.5604 GB, free: 3.023 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.2607, allocations: 3.938 kB / 0.5605 GB, free: 3.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.38e-06/0.2607, allocations: 0 / 0.5605 GB, free: 3.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.056e-06/0.2607, allocations: 0 / 0.5605 GB, free: 3.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.223e-05/0.2607, allocations: 3.938 kB / 0.5605 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000172/0.2609, allocations: 153.7 kB / 0.5606 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.603e-05/0.2609, allocations: 22.45 kB / 0.5606 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.51e-05/0.2609, allocations: 8.859 kB / 0.5606 GB, free: 2.773 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.991e-06/0.2609, allocations: 4.094 kB / 0.5606 GB, free: 2.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.448e-05/0.261, allocations: 56.27 kB / 0.5607 GB, free: 2.699 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.261, allocations: 0 / 0.5607 GB, free: 2.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001474/0.2611, allocations: 71.33 kB / 0.5608 GB, free: 2.617 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.2612, allocations: 77.11 kB / 0.5608 GB, free: 2.523 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.279e-05/0.2613, allocations: 97.86 kB / 0.5609 GB, free: 2.418 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.416e-05/0.2613, allocations: 25.7 kB / 0.561 GB, free: 2.387 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.323e-05/0.2613, allocations: 80.14 kB / 0.561 GB, free: 2.305 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.979e-06/0.2613, allocations: 3.938 kB / 0.561 GB, free: 2.301 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.538e-05/0.2613, allocations: 13.72 kB / 0.561 GB, free: 2.281 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.2615, allocations: 315.1 kB / 0.5613 GB, free: 1.965 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.874e-06/0.2615, allocations: 4 kB / 0.5613 GB, free: 1.961 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.679e-06/0.2615, allocations: 0 / 0.5613 GB, free: 1.961 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.681e-05/0.2615, allocations: 64.27 kB / 0.5614 GB, free: 1.883 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.2615, allocations: 0 / 0.5614 GB, free: 1.883 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.757e-05/0.2616, allocations: 59.41 kB / 0.5615 GB, free: 1.812 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.337e-05/0.2616, allocations: 41.62 kB / 0.5615 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/0.2616, allocations: 0 / 0.5615 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.658e-06/0.2616, allocations: 0 / 0.5615 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.385e-06/0.2616, allocations: 8.094 kB / 0.5615 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.2617, allocations: 3.938 kB / 0.5615 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.286e-05/0.2617, allocations: 0 / 0.5615 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-06/0.2617, allocations: 0 / 0.5615 GB, free: 1.754 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 9.461e-05/0.2618, allocations: 139.5 kB / 0.5617 GB, free: 1.602 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.047e-06/0.2618, allocations: 3.938 kB / 0.5617 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.48e-06/0.2618, allocations: 3.125 kB / 0.5617 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.22e-07/0.2618, allocations: 0 / 0.5617 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.2618, allocations: 7.984 kB / 0.5617 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2618, allocations: 7.984 kB / 0.5617 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000112/0.2619, allocations: 145.7 kB / 0.5618 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.2619, allocations: 0 / 0.5618 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-07/0.2619, allocations: 0 / 0.5618 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.2619, allocations: 7.875 kB / 0.5618 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.787e-06/0.2619, allocations: 4 kB / 0.5618 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.2619, allocations: 0 / 0.5618 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.2619, allocations: 3.984 kB / 0.5618 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.213e-05/0.262, allocations: 90.84 kB / 0.5619 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.738e-05/0.2621, allocations: 81.06 kB / 0.562 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.316e-05/0.2621, allocations: 7.922 kB / 0.562 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.147e-06/0.2621, allocations: 0 / 0.562 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.856e-06/0.2621, allocations: 11.88 kB / 0.562 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.2621, allocations: 0 / 0.562 GB, free: 1.145 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.545e-05/0.2621, allocations: 75.28 kB / 0.5621 GB, free: 1.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2621, allocations: 0 / 0.5621 GB, free: 1.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001994/0.2623, allocations: 23.94 kB / 0.5621 GB, free: 1.047 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.0006845/0.263, allocations: 0.7191 MB / 0.5628 GB, free: 324 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.404e-05/0.2631, allocations: 63.41 kB / 0.5629 GB, free: 248 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.2631, allocations: 3.938 kB / 0.5629 GB, free: 244 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.24e-05/0.2631, allocations: 51.41 kB / 0.5629 GB, free: 180 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001133/0.2633, allocations: 4 kB / 0.5629 GB, free: 176 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002633/0.2635, allocations: 118.7 kB / 0.563 GB, free: 16 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002958/0.2638, allocations: 0.6729 MB / 0.5637 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.402e-06/0.2638, allocations: 0 / 0.5637 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.93e-05/0.2638, allocations: 11.42 kB / 0.5637 GB, free: 15.3 MB / 414.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2638, allocations: 0 / 0.5637 GB, free: 15.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02394/0.2878, allocations: 1.476 MB / 0.5651 GB, free: 13.89 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.959/7.247, allocations: 22.8 kB / 0.5652 GB, free: 13.88 MB / 414.1 MB " [Timeout remaining time 653] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.757947509002406]