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.001423/0.001423, allocations: 105 kB / 19.74 MB, free: 2.566 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.001543/0.001543, allocations: 215.5 kB / 22.92 MB, free: 5.535 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.318/1.318, allocations: 230.2 MB / 256.1 MB, free: 8.758 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.2051/0.2051, allocations: 46.9 MB / 359.3 MB, free: 4.98 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.002135/0.002135, allocations: 83.86 kB / 0.494 GB, free: 9.129 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2668, allocations: 65.97 MB / 0.5584 GB, free: 5.094 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001372/0.2681, allocations: 493 kB / 0.5589 GB, free: 4.609 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006651/0.2688, allocations: 305.5 kB / 0.5591 GB, free: 4.312 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.613e-05/0.2688, allocations: 0 / 0.5591 GB, free: 4.312 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.081e-05/0.2688, allocations: 0 / 0.5591 GB, free: 4.312 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.189e-06/0.2688, allocations: 0 / 0.5591 GB, free: 4.312 MB / 398.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.0007342/0.2696, allocations: 98.16 kB / 0.5592 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.768e-05/0.2696, allocations: 8 kB / 0.5592 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.708e-05/0.2696, allocations: 3.984 kB / 0.5592 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.166e-05/0.2697, allocations: 0 / 0.5592 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.83e-05/0.2697, allocations: 4 kB / 0.5593 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.283e-06/0.2697, allocations: 3.984 kB / 0.5593 GB, free: 4.199 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001811/0.2699, allocations: 111.8 kB / 0.5594 GB, free: 4.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.27e-06/0.2699, allocations: 0 / 0.5594 GB, free: 4.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.838e-05/0.2699, allocations: 0 / 0.5594 GB, free: 4.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001601/0.2701, allocations: 89.58 kB / 0.5594 GB, free: 4.008 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2701, allocations: 0 / 0.5594 GB, free: 4.008 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2701, allocations: 0 / 0.5594 GB, free: 4.008 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.369e-06/0.2701, allocations: 0 / 0.5594 GB, free: 4.008 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.0003322/0.2704, allocations: 361.1 kB / 0.5598 GB, free: 3.598 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.2704, allocations: 12.03 kB / 0.5598 GB, free: 3.586 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.698e-05/0.2705, allocations: 30.75 kB / 0.5598 GB, free: 3.547 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.895e-05/0.2705, allocations: 4.938 kB / 0.5598 GB, free: 3.543 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/0.2706, allocations: 164.4 kB / 0.56 GB, free: 3.344 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.317e-06/0.2706, allocations: 384 / 0.56 GB, free: 3.344 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.731e-06/0.2706, allocations: 384 / 0.56 GB, free: 3.344 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.539e-05/0.2707, allocations: 34.2 kB / 0.56 GB, free: 3.305 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.2707, allocations: 3.938 kB / 0.56 GB, free: 3.301 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.49e-06/0.2707, allocations: 0 / 0.56 GB, free: 3.301 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.427e-06/0.2707, allocations: 0 / 0.56 GB, free: 3.301 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.991e-05/0.2707, allocations: 4 kB / 0.56 GB, free: 3.297 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001379/0.2708, allocations: 153.7 kB / 0.5602 GB, free: 3.098 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.004e-05/0.2709, allocations: 18.52 kB / 0.5602 GB, free: 3.07 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.346e-05/0.2709, allocations: 4.859 kB / 0.5602 GB, free: 3.062 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.943e-06/0.2709, allocations: 96 / 0.5602 GB, free: 3.062 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.429e-05/0.271, allocations: 64.2 kB / 0.5603 GB, free: 2.984 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.271, allocations: 4 kB / 0.5603 GB, free: 2.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001531/0.2711, allocations: 71.33 kB / 0.5603 GB, free: 2.898 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/0.2712, allocations: 77.11 kB / 0.5604 GB, free: 2.805 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.096e-05/0.2712, allocations: 93.81 kB / 0.5605 GB, free: 2.703 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.393e-05/0.2712, allocations: 25.7 kB / 0.5605 GB, free: 2.672 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.331e-05/0.2712, allocations: 80.14 kB / 0.5606 GB, free: 2.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.458e-05/0.2713, allocations: 3.938 kB / 0.5606 GB, free: 2.586 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.656e-05/0.2713, allocations: 13.72 kB / 0.5606 GB, free: 2.566 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.2714, allocations: 319 kB / 0.5609 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.895e-06/0.2714, allocations: 0 / 0.5609 GB, free: 2.246 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.522e-06/0.2714, allocations: 4 kB / 0.5609 GB, free: 2.242 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.044e-05/0.2715, allocations: 68.12 kB / 0.561 GB, free: 2.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-06/0.2715, allocations: 4 kB / 0.561 GB, free: 2.156 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.588e-05/0.2715, allocations: 55.41 kB / 0.561 GB, free: 2.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.221e-05/0.2716, allocations: 33.7 kB / 0.5611 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.2716, allocations: 3.938 kB / 0.5611 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.478e-06/0.2716, allocations: 4.094 kB / 0.5611 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.2716, allocations: 0 / 0.5611 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.2716, allocations: 3.984 kB / 0.5611 GB, free: 2.039 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.207e-05/0.2716, allocations: 0 / 0.5611 GB, free: 2.039 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.2716, allocations: 3.984 kB / 0.5611 GB, free: 2.035 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 8.396e-05/0.2717, allocations: 143.5 kB / 0.5612 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.883e-06/0.2717, allocations: 0 / 0.5612 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.588e-06/0.2717, allocations: 11.05 kB / 0.5612 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2717, allocations: 4 kB / 0.5612 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.2717, allocations: 4 kB / 0.5613 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-06/0.2717, allocations: 0 / 0.5613 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.498e-05/0.2718, allocations: 145.7 kB / 0.5614 GB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.2718, allocations: 0 / 0.5614 GB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.2718, allocations: 3.938 kB / 0.5614 GB, free: 1.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.129e-06/0.2718, allocations: 4 kB / 0.5614 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.2718, allocations: 7.938 kB / 0.5614 GB, free: 1.656 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.2718, allocations: 3.938 kB / 0.5614 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-07/0.2718, allocations: 0 / 0.5614 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.136e-05/0.2719, allocations: 94.83 kB / 0.5615 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.025e-05/0.272, allocations: 77.11 kB / 0.5616 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.112e-05/0.272, allocations: 3.938 kB / 0.5616 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.474e-06/0.272, allocations: 0 / 0.5616 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.064e-05/0.272, allocations: 0 / 0.5616 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.217e-06/0.272, allocations: 4 kB / 0.5616 GB, free: 1.434 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.022e-05/0.272, allocations: 79.28 kB / 0.5617 GB, free: 1.355 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.272, allocations: 0 / 0.5617 GB, free: 1.355 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002129/0.2722, allocations: 31.92 kB / 0.5617 GB, free: 1.324 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.0008379/0.2731, allocations: 0.8028 MB / 0.5625 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.446e-05/0.2732, allocations: 59.39 kB / 0.5625 GB, free: 476 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.2732, allocations: 0 / 0.5625 GB, free: 476 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.388e-05/0.2732, allocations: 55.41 kB / 0.5626 GB, free: 408 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001079/0.2733, allocations: 4 kB / 0.5626 GB, free: 404 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002704/0.2736, allocations: 138.6 kB / 0.5627 GB, free: 224 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002683/0.2738, allocations: 0.669 MB / 0.5634 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.088e-06/0.2738, allocations: 0 / 0.5634 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.202e-05/0.2739, allocations: 7.438 kB / 0.5634 GB, free: 15.52 MB / 414.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2739, allocations: 0 / 0.5634 GB, free: 15.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02243/0.2963, allocations: 1.821 MB / 0.5652 GB, free: 13.76 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.029/7.325, allocations: 9.812 kB / 0.5652 GB, free: 13.75 MB / 414.1 MB " [Timeout remaining time 653] (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: 9.874191073991824]