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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001662/0.001662, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001762/0.001762, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 246.8 MB, free: 10.47 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.2241/0.2241, allocations: 46.11 MB / 344.2 MB, free: 11.51 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.00358/0.00358, allocations: 85.28 kB / 417.7 MB, free: 19.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1525, allocations: 62.46 MB / 480.2 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001824/0.1543, allocations: 483.7 kB / 480.7 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007648/0.1551, allocations: 297.8 kB / 481 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.17e-05/0.1552, allocations: 8 kB / 481 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.471e-05/0.1552, allocations: 0 / 481 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.548e-06/0.1552, allocations: 0 / 481 MB, free: 4.312 MB / 350.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.0008386/0.1561, allocations: 97.69 kB / 481.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.788e-05/0.1561, allocations: 0 / 481.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.637e-05/0.1562, allocations: 0 / 481.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.445e-05/0.1562, allocations: 0 / 481.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.03e-05/0.1562, allocations: 4 kB / 481.1 MB, free: 4.219 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.251e-06/0.1562, allocations: 0 / 481.1 MB, free: 4.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001991/0.1564, allocations: 103.9 kB / 481.2 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.905e-06/0.1564, allocations: 0 / 481.2 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.869e-05/0.1565, allocations: 4 kB / 481.2 MB, free: 4.113 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001734/0.1566, allocations: 87.86 kB / 481.3 MB, free: 4.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.1566, allocations: 0 / 481.3 MB, free: 4.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1567, allocations: 7.875 kB / 481.3 MB, free: 4.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.1567, allocations: 0 / 481.3 MB, free: 4.02 MB / 350.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.0004078/0.1571, allocations: 361.3 kB / 481.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.1571, allocations: 12.03 kB / 481.6 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.712e-05/0.1572, allocations: 30.75 kB / 481.7 MB, free: 3.559 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.566e-05/0.1572, allocations: 0.9375 kB / 481.7 MB, free: 3.559 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/0.1573, allocations: 164.3 kB / 481.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.1573, allocations: 8.359 kB / 481.8 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.224e-06/0.1574, allocations: 384 / 481.8 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.786e-05/0.1575, allocations: 30.27 kB / 481.9 MB, free: 3.316 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.1575, allocations: 3.938 kB / 481.9 MB, free: 3.312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.377e-06/0.1575, allocations: 3.984 kB / 481.9 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.1575, allocations: 0 / 481.9 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.92e-05/0.1575, allocations: 4 kB / 481.9 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001991/0.1577, allocations: 145.7 kB / 482 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.521e-05/0.1578, allocations: 26.5 kB / 482 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.644e-05/0.1578, allocations: 8.953 kB / 482.1 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.967e-06/0.1578, allocations: 0 / 482.1 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.015e-05/0.1579, allocations: 56.27 kB / 482.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.1579, allocations: 0 / 482.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001797/0.1581, allocations: 67.34 kB / 482.2 MB, free: 2.918 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.357e-05/0.1581, allocations: 81.09 kB / 482.3 MB, free: 2.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.957e-05/0.1582, allocations: 93.98 kB / 482.3 MB, free: 2.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.1582, allocations: 25.7 kB / 482.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.078e-05/0.1582, allocations: 84.14 kB / 482.5 MB, free: 2.602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.1583, allocations: 7.875 kB / 482.5 MB, free: 2.594 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.716e-05/0.1583, allocations: 9.719 kB / 482.5 MB, free: 2.578 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1584, allocations: 310.8 kB / 482.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.053e-05/0.1585, allocations: 4 kB / 482.8 MB, free: 2.262 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.568e-06/0.1585, allocations: 0 / 482.8 MB, free: 2.262 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.601e-05/0.1585, allocations: 68.33 kB / 482.8 MB, free: 2.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1585, allocations: 0 / 482.8 MB, free: 2.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.335e-05/0.1586, allocations: 63.39 kB / 482.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.628e-05/0.1587, allocations: 29.7 kB / 482.9 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.1587, allocations: 3.938 kB / 482.9 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.1587, allocations: 0 / 482.9 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.1587, allocations: 0 / 482.9 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.1587, allocations: 3.938 kB / 482.9 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.706e-05/0.1587, allocations: 4 kB / 483 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/0.1587, allocations: 8.031 kB / 483 MB, free: 2.051 MB / 350.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.77e-05/0.1589, allocations: 139.5 kB / 483.1 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.628e-06/0.1589, allocations: 4 kB / 483.1 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.317e-06/0.1589, allocations: 11 kB / 483.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.1589, allocations: 0 / 483.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.1589, allocations: 0 / 483.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.1589, allocations: 0 / 483.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/0.159, allocations: 145.7 kB / 483.3 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.159, allocations: 0 / 483.3 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.159, allocations: 8 kB / 483.3 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.159, allocations: 0 / 483.3 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.1591, allocations: 3.938 kB / 483.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1591, allocations: 0 / 483.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1591, allocations: 0 / 483.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001007/0.1592, allocations: 94.83 kB / 483.4 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.194e-05/0.1592, allocations: 77.39 kB / 483.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.1592, allocations: 3.938 kB / 483.4 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.086e-05/0.1593, allocations: 4.031 kB / 483.4 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.778e-06/0.1593, allocations: 7.938 kB / 483.4 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-06/0.1593, allocations: 0 / 483.4 MB, free: 1.457 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.192e-05/0.1593, allocations: 75.28 kB / 483.5 MB, free: 1.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.184e-06/0.1593, allocations: 0 / 483.5 MB, free: 1.383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000241/0.1596, allocations: 39.92 kB / 483.6 MB, free: 1.344 MB / 350.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.0009397/0.1605, allocations: 0.8007 MB / 484.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001061/0.1606, allocations: 67.39 kB / 484.4 MB, free: 484 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1606, allocations: 3.938 kB / 484.4 MB, free: 480 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.703e-05/0.1607, allocations: 51.41 kB / 484.5 MB, free: 416 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001238/0.1608, allocations: 6.812 kB / 484.5 MB, free: 412 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003188/0.1611, allocations: 122.7 kB / 484.6 MB, free: 248 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.1615, allocations: 0.669 MB / 485.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.454e-06/0.1615, allocations: 4 kB / 485.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.147e-05/0.1615, allocations: 7.562 kB / 485.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1615, allocations: 4 kB / 485.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02442/0.1859, allocations: 1.792 MB / 487.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.09/8.276, allocations: 9.906 kB / 487.1 MB, free: 13.8 MB / 366.1 MB (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)