Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.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.001337/0.001337, allocations: 117.9 kB / 18.5 MB, free: 4.52 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.001466/0.001466, allocations: 214.5 kB / 21.46 MB, free: 1.566 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.518/1.518, allocations: 230.5 MB / 254.7 MB, free: 15.19 MB / 206.1 MB " [Timeout remaining time 178] 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.2337/0.2337, allocations: 46.92 MB / 357.7 MB, free: 10.3 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.TestStreams,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStreams",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.002374/0.002374, allocations: 75.88 kB / 0.4916 GB, free: 7.836 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1288, allocations: 66.05 MB / 0.5561 GB, free: 5.664 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001652/0.1305, allocations: 486.7 kB / 0.5566 GB, free: 5.184 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008611/0.1314, allocations: 307.6 kB / 0.5569 GB, free: 4.883 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.421e-05/0.1314, allocations: 0 / 0.5569 GB, free: 4.883 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.706e-05/0.1314, allocations: 0 / 0.5569 GB, free: 4.883 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.843e-06/0.1314, allocations: 0 / 0.5569 GB, free: 4.883 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:221:3-287:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Streams' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0009361/0.1323, allocations: 97.39 kB / 0.557 GB, free: 4.789 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.401e-05/0.1324, allocations: 8 kB / 0.557 GB, free: 4.781 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.207e-05/0.1324, allocations: 0 / 0.557 GB, free: 4.781 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.537e-05/0.1325, allocations: 0 / 0.557 GB, free: 4.781 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.448e-05/0.1325, allocations: 0 / 0.557 GB, free: 4.781 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.602e-06/0.1325, allocations: 0 / 0.557 GB, free: 4.781 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002238/0.1327, allocations: 111.9 kB / 0.5571 GB, free: 4.672 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.245e-06/0.1327, allocations: 3.984 kB / 0.5571 GB, free: 4.668 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.803e-05/0.1327, allocations: 3.984 kB / 0.5571 GB, free: 4.664 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001679/0.1329, allocations: 87.75 kB / 0.5572 GB, free: 4.578 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1329, allocations: 0 / 0.5572 GB, free: 4.578 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1329, allocations: 0 / 0.5572 GB, free: 4.578 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.1329, allocations: 4 kB / 0.5572 GB, free: 4.574 MB / 414.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.0004141/0.1333, allocations: 361 kB / 0.5575 GB, free: 4.164 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.1334, allocations: 11.97 kB / 0.5576 GB, free: 4.152 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.733e-05/0.1334, allocations: 34.75 kB / 0.5576 GB, free: 4.109 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.549e-05/0.1334, allocations: 4.938 kB / 0.5576 GB, free: 4.105 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.1336, allocations: 160.4 kB / 0.5577 GB, free: 3.91 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.1336, allocations: 4.375 kB / 0.5577 GB, free: 3.906 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.552e-06/0.1336, allocations: 384 / 0.5577 GB, free: 3.906 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.33e-05/0.1337, allocations: 38.25 kB / 0.5578 GB, free: 3.863 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.1337, allocations: 3.938 kB / 0.5578 GB, free: 3.859 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-06/0.1337, allocations: 0 / 0.5578 GB, free: 3.859 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.1337, allocations: 3.938 kB / 0.5578 GB, free: 3.855 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.667e-05/0.1337, allocations: 0 / 0.5578 GB, free: 3.855 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000152/0.1338, allocations: 145.7 kB / 0.5579 GB, free: 3.664 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.291e-05/0.1339, allocations: 22.52 kB / 0.558 GB, free: 3.633 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.753e-05/0.1339, allocations: 10.61 kB / 0.558 GB, free: 3.621 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.01e-05/0.1339, allocations: 7.984 kB / 0.558 GB, free: 3.613 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.598e-05/0.134, allocations: 56.27 kB / 0.558 GB, free: 3.543 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.134, allocations: 0 / 0.558 GB, free: 3.543 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000171/0.1341, allocations: 67.28 kB / 0.5581 GB, free: 3.465 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.801e-05/0.1342, allocations: 77.11 kB / 0.5582 GB, free: 3.371 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.801e-05/0.1343, allocations: 97.81 kB / 0.5583 GB, free: 3.266 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.1343, allocations: 25.7 kB / 0.5583 GB, free: 3.234 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.565e-05/0.1343, allocations: 84.25 kB / 0.5584 GB, free: 3.148 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.876e-05/0.1343, allocations: 8 kB / 0.5584 GB, free: 3.141 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.508e-05/0.1344, allocations: 9.719 kB / 0.5584 GB, free: 3.125 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1345, allocations: 310.8 kB / 0.5587 GB, free: 2.812 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.468e-05/0.1345, allocations: 4 kB / 0.5587 GB, free: 2.809 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.931e-06/0.1345, allocations: 0 / 0.5587 GB, free: 2.809 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.988e-05/0.1346, allocations: 64.27 kB / 0.5587 GB, free: 2.73 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1346, allocations: 0 / 0.5587 GB, free: 2.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.518e-05/0.1347, allocations: 67.39 kB / 0.5588 GB, free: 2.652 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.367e-05/0.1347, allocations: 33.7 kB / 0.5588 GB, free: 2.613 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.1347, allocations: 3.938 kB / 0.5588 GB, free: 2.609 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.1347, allocations: 0 / 0.5588 GB, free: 2.609 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.32e-07/0.1347, allocations: 0 / 0.5588 GB, free: 2.609 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.688e-06/0.1347, allocations: 0 / 0.5588 GB, free: 2.609 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.514e-05/0.1347, allocations: 0 / 0.5588 GB, free: 2.609 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.1348, allocations: 4 kB / 0.5588 GB, free: 2.605 MB / 414.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.483e-05/0.1348, allocations: 135.5 kB / 0.559 GB, free: 2.457 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.164e-06/0.1349, allocations: 4.031 kB / 0.559 GB, free: 2.453 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.185e-05/0.1349, allocations: 11.06 kB / 0.559 GB, free: 2.445 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1349, allocations: 0 / 0.559 GB, free: 2.445 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1349, allocations: 0 / 0.559 GB, free: 2.445 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.1349, allocations: 3.938 kB / 0.559 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000121/0.135, allocations: 145.7 kB / 0.5591 GB, free: 2.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.135, allocations: 0 / 0.5591 GB, free: 2.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.464e-06/0.135, allocations: 7.922 kB / 0.5591 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.135, allocations: 4 kB / 0.5591 GB, free: 2.238 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.135, allocations: 7.922 kB / 0.5591 GB, free: 2.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.135, allocations: 0 / 0.5591 GB, free: 2.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.135, allocations: 4 kB / 0.5591 GB, free: 2.227 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001115/0.1351, allocations: 94.77 kB / 0.5592 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.837e-05/0.1352, allocations: 85.03 kB / 0.5593 GB, free: 2.008 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.1352, allocations: 7.938 kB / 0.5593 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.306e-06/0.1352, allocations: 0 / 0.5593 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.768e-06/0.1352, allocations: 0 / 0.5593 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.1352, allocations: 4 kB / 0.5593 GB, free: 1.996 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.2e-05/0.1353, allocations: 79.31 kB / 0.5594 GB, free: 1.918 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1353, allocations: 0 / 0.5594 GB, free: 1.918 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002565/0.1355, allocations: 35.92 kB / 0.5594 GB, free: 1.883 MB / 414.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.0009797/0.1365, allocations: 0.7742 MB / 0.5602 GB, free: 1.113 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.593e-05/0.1366, allocations: 63.34 kB / 0.5603 GB, free: 1.039 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1366, allocations: 3.938 kB / 0.5603 GB, free: 1.035 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.69e-05/0.1366, allocations: 59.39 kB / 0.5603 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001382/0.1368, allocations: 0 / 0.5603 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003117/0.1371, allocations: 134.7 kB / 0.5604 GB, free: 0.793 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.1374, allocations: 0.669 MB / 0.5611 GB, free: 100 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.041e-06/0.1374, allocations: 0 / 0.5611 GB, free: 100 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.405e-05/0.1374, allocations: 7.438 kB / 0.5611 GB, free: 92 kB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1374, allocations: 0 / 0.5611 GB, free: 92 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02285/0.1603, allocations: 1.829 MB / 0.5629 GB, free: 14.34 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.065/8.225, allocations: 2.109 kB / 0.5629 GB, free: 14.34 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams_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_TestStreams.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.336080198176205] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.306700103916228 8.327133787 8.191263408 Calling exit ...