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.001627/0.001627, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001815/0.001815, allocations: 211.9 kB / 24.54 MB, free: 4.02 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.482/1.482, allocations: 230.5 MB / 258.2 MB, free: 8 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.2321/0.2321, allocations: 46.94 MB / 361.6 MB, free: 4.168 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.002364/0.002364, allocations: 76.16 kB / 0.4969 GB, free: 7.777 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3287, allocations: 66.09 MB / 0.5615 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001634/0.3303, allocations: 485.1 kB / 0.5619 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007599/0.3311, allocations: 313.3 kB / 0.5622 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.895e-05/0.3311, allocations: 0 / 0.5622 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.613e-05/0.3311, allocations: 0 / 0.5622 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.32e-06/0.3311, allocations: 0 / 0.5622 GB, free: 3.516 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.0008586/0.332, allocations: 114.8 kB / 0.5624 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.895e-05/0.332, allocations: 4 kB / 0.5624 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.649e-05/0.3321, allocations: 0 / 0.5624 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.319e-05/0.3321, allocations: 0 / 0.5624 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.782e-05/0.3321, allocations: 0 / 0.5624 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.309e-06/0.3321, allocations: 0 / 0.5624 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002083/0.3323, allocations: 115.9 kB / 0.5625 GB, free: 3.293 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.262e-06/0.3323, allocations: 0 / 0.5625 GB, free: 3.293 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.975e-05/0.3323, allocations: 3.984 kB / 0.5625 GB, free: 3.289 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001716/0.3325, allocations: 89.72 kB / 0.5626 GB, free: 3.207 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3325, allocations: 0 / 0.5626 GB, free: 3.207 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3325, allocations: 4 kB / 0.5626 GB, free: 3.203 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.3325, allocations: 4 kB / 0.5626 GB, free: 3.199 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.000347/0.3329, allocations: 280 kB / 0.5628 GB, free: 2.887 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.3329, allocations: 12.03 kB / 0.5628 GB, free: 2.875 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.44e-05/0.333, allocations: 34.69 kB / 0.5629 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.222e-05/0.333, allocations: 0.9375 kB / 0.5629 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.394e-05/0.3331, allocations: 106.5 kB / 0.563 GB, free: 2.703 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.3331, allocations: 4.375 kB / 0.563 GB, free: 2.699 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-06/0.3331, allocations: 384 / 0.563 GB, free: 2.699 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.507e-05/0.3332, allocations: 30.27 kB / 0.563 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.3332, allocations: 7.938 kB / 0.563 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.3332, allocations: 0 / 0.563 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.3332, allocations: 0 / 0.563 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.783e-05/0.3332, allocations: 0 / 0.563 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000146/0.3334, allocations: 124.7 kB / 0.5631 GB, free: 2.492 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.227e-05/0.3334, allocations: 26.45 kB / 0.5632 GB, free: 2.457 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.546e-05/0.3334, allocations: 4.859 kB / 0.5632 GB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.056e-06/0.3334, allocations: 4 kB / 0.5632 GB, free: 2.445 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.428e-05/0.3335, allocations: 60.33 kB / 0.5632 GB, free: 2.371 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.3335, allocations: 0 / 0.5632 GB, free: 2.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001867/0.3337, allocations: 71.33 kB / 0.5633 GB, free: 2.289 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.256e-05/0.3337, allocations: 81.05 kB / 0.5634 GB, free: 2.191 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.801e-05/0.3338, allocations: 93.81 kB / 0.5635 GB, free: 2.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/0.3338, allocations: 25.7 kB / 0.5635 GB, free: 2.059 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.416e-05/0.3338, allocations: 84.27 kB / 0.5636 GB, free: 1.973 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.3339, allocations: 3.938 kB / 0.5636 GB, free: 1.969 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.183e-05/0.3339, allocations: 13.72 kB / 0.5636 GB, free: 1.949 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.334, allocations: 310.8 kB / 0.5639 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.947e-06/0.334, allocations: 0 / 0.5639 GB, free: 1.637 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.077e-06/0.334, allocations: 4 kB / 0.5639 GB, free: 1.633 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.545e-05/0.3341, allocations: 64.25 kB / 0.564 GB, free: 1.555 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3341, allocations: 0 / 0.564 GB, free: 1.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.35e-05/0.3342, allocations: 67.41 kB / 0.564 GB, free: 1.477 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.769e-05/0.3342, allocations: 33.7 kB / 0.564 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.3342, allocations: 3.938 kB / 0.5641 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.3342, allocations: 0 / 0.5641 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.3342, allocations: 0 / 0.5641 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.3343, allocations: 3.984 kB / 0.5641 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.596e-05/0.3343, allocations: 0 / 0.5641 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.3343, allocations: 4 kB / 0.5641 GB, free: 1.426 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.0001128/0.3344, allocations: 139.5 kB / 0.5642 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.145e-06/0.3344, allocations: 4.031 kB / 0.5642 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.579e-05/0.3344, allocations: 6.938 kB / 0.5642 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3344, allocations: 0 / 0.5642 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.3344, allocations: 0 / 0.5642 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.3344, allocations: 4 kB / 0.5642 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001036/0.3345, allocations: 116.8 kB / 0.5643 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3345, allocations: 0 / 0.5643 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3345, allocations: 0 / 0.5643 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.3345, allocations: 0 / 0.5643 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.3345, allocations: 7.938 kB / 0.5643 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.3345, allocations: 7.938 kB / 0.5643 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.3345, allocations: 0 / 0.5643 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001078/0.3346, allocations: 94.77 kB / 0.5644 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.517e-06/0.3346, allocations: 0 / 0.5644 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.516e-05/0.3347, allocations: 3.938 kB / 0.5644 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.396e-06/0.3347, allocations: 3.938 kB / 0.5644 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.671e-05/0.3347, allocations: 3.984 kB / 0.5644 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.3347, allocations: 4 kB / 0.5644 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.657e-05/0.3347, allocations: 79.31 kB / 0.5645 GB, free: 0.875 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3347, allocations: 0 / 0.5645 GB, free: 0.875 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002569/0.335, allocations: 35.92 kB / 0.5645 GB, free: 0.8398 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.0009237/0.3359, allocations: 0.782 MB / 0.5653 GB, free: 64 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001175/0.336, allocations: 63.33 kB / 0.5654 GB, free: 15.99 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.336, allocations: 0 / 0.5654 GB, free: 15.99 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.158e-05/0.3361, allocations: 55.41 kB / 0.5654 GB, free: 15.92 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001302/0.3362, allocations: 7.938 kB / 0.5654 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003077/0.3365, allocations: 130.7 kB / 0.5656 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003012/0.3368, allocations: 0.669 MB / 0.5662 GB, free: 15.05 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.052e-06/0.3368, allocations: 0 / 0.5662 GB, free: 15.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.486e-05/0.3368, allocations: 7.438 kB / 0.5662 GB, free: 15.04 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3368, allocations: 0 / 0.5662 GB, free: 15.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02395/0.3608, allocations: 1.838 MB / 0.568 GB, free: 13.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.088/8.448, allocations: 11.62 kB / 0.568 GB, free: 13.26 MB / 414.1 MB " [Timeout remaining time 651] (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.434501453768462] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.521142586134374 8.5458057 8.208533252 Calling exit ...