Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001756/0.001756, allocations: 208.2 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.486/1.486, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2393/0.2393, allocations: 46.95 MB / 360.9 MB, free: 4.031 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002107/0.002107, allocations: 63.91 kB / 0.4961 GB, free: 7.727 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3611/0.3632, allocations: 66.03 MB / 0.5606 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001772/0.365, allocations: 493 kB / 0.561 GB, free: 3.742 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007871/0.3658, allocations: 297.5 kB / 0.5613 GB, free: 3.453 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.742e-05/0.3658, allocations: 4 kB / 0.5613 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.131e-05/0.3658, allocations: 0 / 0.5613 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.38e-06/0.3658, allocations: 0 / 0.5613 GB, free: 3.449 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.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.0008497/0.3667, allocations: 104.9 kB / 0.5614 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.369e-05/0.3667, allocations: 4 kB / 0.5614 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.983e-05/0.3668, allocations: 0 / 0.5614 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.387e-05/0.3668, allocations: 7.984 kB / 0.5614 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.83e-05/0.3668, allocations: 0 / 0.5614 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.841e-06/0.3668, allocations: 0 / 0.5614 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002255/0.367, allocations: 111.9 kB / 0.5615 GB, free: 3.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.947e-06/0.367, allocations: 3.938 kB / 0.5615 GB, free: 3.227 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.773e-05/0.3671, allocations: 3.938 kB / 0.5615 GB, free: 3.223 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002029/0.3673, allocations: 89.56 kB / 0.5616 GB, free: 3.141 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3673, allocations: 0 / 0.5616 GB, free: 3.141 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3673, allocations: 0 / 0.5616 GB, free: 3.141 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.3673, allocations: 4 kB / 0.5616 GB, free: 3.137 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.0003792/0.3677, allocations: 284 kB / 0.5619 GB, free: 2.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.3677, allocations: 12.03 kB / 0.5619 GB, free: 2.809 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.087e-05/0.3677, allocations: 30.75 kB / 0.5619 GB, free: 2.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.418e-05/0.3678, allocations: 0.9375 kB / 0.562 GB, free: 2.77 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.869e-05/0.3679, allocations: 110.5 kB / 0.5621 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.3679, allocations: 384 / 0.5621 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.086e-05/0.3679, allocations: 4.375 kB / 0.5621 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001202/0.368, allocations: 55.97 kB / 0.5621 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.368, allocations: 3.938 kB / 0.5621 GB, free: 2.562 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-06/0.368, allocations: 0 / 0.5621 GB, free: 2.562 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-06/0.368, allocations: 8 kB / 0.5621 GB, free: 2.555 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.696e-05/0.3681, allocations: 29.64 kB / 0.5622 GB, free: 2.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001492/0.3682, allocations: 124.7 kB / 0.5623 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.362e-05/0.3683, allocations: 40.28 kB / 0.5623 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.204e-05/0.3683, allocations: 34.62 kB / 0.5623 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.927e-06/0.3683, allocations: 4 kB / 0.5623 GB, free: 2.254 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.2e-05/0.3684, allocations: 56.27 kB / 0.5624 GB, free: 2.184 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.293e-06/0.3684, allocations: 0 / 0.5624 GB, free: 2.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002465/0.3686, allocations: 122.7 kB / 0.5625 GB, free: 2.039 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.652e-05/0.3687, allocations: 85.23 kB / 0.5626 GB, free: 1.938 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.053e-05/0.3687, allocations: 97.81 kB / 0.5627 GB, free: 1.832 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.3688, allocations: 25.7 kB / 0.5627 GB, free: 1.801 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.737e-05/0.3688, allocations: 80.14 kB / 0.5628 GB, free: 1.719 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.82e-05/0.3688, allocations: 3.938 kB / 0.5628 GB, free: 1.715 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.895e-05/0.3688, allocations: 13.72 kB / 0.5628 GB, free: 1.695 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.369, allocations: 314.8 kB / 0.5631 GB, free: 1.379 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.433e-05/0.369, allocations: 25.7 kB / 0.5631 GB, free: 1.348 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.253e-05/0.3691, allocations: 29.7 kB / 0.5632 GB, free: 1.312 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.947e-05/0.3691, allocations: 64.27 kB / 0.5632 GB, free: 1.234 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3691, allocations: 4.062 kB / 0.5632 GB, free: 1.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000104/0.3692, allocations: 93.03 kB / 0.5633 GB, free: 1.121 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.988e-05/0.3693, allocations: 33.7 kB / 0.5633 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.3693, allocations: 3.938 kB / 0.5634 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.3693, allocations: 0 / 0.5634 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.51e-07/0.3693, allocations: 0 / 0.5634 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.3693, allocations: 0 / 0.5634 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.59e-05/0.3693, allocations: 3.938 kB / 0.5634 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.335e-06/0.3693, allocations: 4 kB / 0.5634 GB, free: 1.07 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.0001088/0.3694, allocations: 139.6 kB / 0.5635 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.153e-06/0.3694, allocations: 0 / 0.5635 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.673e-05/0.3694, allocations: 14.92 kB / 0.5635 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.3694, allocations: 0 / 0.5635 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.3695, allocations: 0 / 0.5635 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.3695, allocations: 0 / 0.5635 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.428e-05/0.3695, allocations: 112.8 kB / 0.5636 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.3696, allocations: 0 / 0.5636 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.3696, allocations: 4 kB / 0.5636 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-06/0.3696, allocations: 0 / 0.5636 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.3696, allocations: 7.875 kB / 0.5636 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.3696, allocations: 0 / 0.5636 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3696, allocations: 7.984 kB / 0.5636 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001313/0.3697, allocations: 116.5 kB / 0.5637 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.286e-06/0.3697, allocations: 0 / 0.5637 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.715e-05/0.3697, allocations: 11.92 kB / 0.5638 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.095e-05/0.3697, allocations: 4 kB / 0.5638 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.477e-05/0.3697, allocations: 0 / 0.5638 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.3697, allocations: 0 / 0.5638 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.685e-05/0.3698, allocations: 75.28 kB / 0.5638 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3698, allocations: 0 / 0.5638 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000241/0.37, allocations: 31.94 kB / 0.5639 GB, free: 476 kB / 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.001004/0.371, allocations: 0.8326 MB / 0.5647 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000139/0.3712, allocations: 118.8 kB / 0.5648 GB, free: 15.51 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3712, allocations: 0 / 0.5648 GB, free: 15.51 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.158e-05/0.3712, allocations: 85.17 kB / 0.5649 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001202/0.3713, allocations: 2.812 kB / 0.5649 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003463/0.3717, allocations: 156.3 kB / 0.565 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.54e-05/0.3717, allocations: 51.36 kB / 0.5651 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.621e-06/0.3717, allocations: 0 / 0.5651 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.566e-05/0.3718, allocations: 11.44 kB / 0.5651 GB, free: 15.13 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3718, allocations: 0 / 0.5651 GB, free: 15.13 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02786/0.3996, allocations: 2.355 MB / 0.5674 GB, free: 12.9 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.57, allocations: 18.89 kB / 0.5674 GB, free: 12.89 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.544092736206949]