Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001446/0.001446, allocations: 108.3 kB / 20.48 MB, free: 0.9805 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.001524/0.001524, allocations: 218.7 kB / 23.78 MB, free: 4.215 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.48/1.48, allocations: 230.5 MB / 257.5 MB, free: 7.723 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3051/0.3051, allocations: 46.94 MB / 360.9 MB, free: 3.867 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002252/0.002252, allocations: 83.86 kB / 0.4962 GB, free: 7.5 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.302, allocations: 66.09 MB / 0.5608 GB, free: 4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001543/0.3035, allocations: 481.1 kB / 0.5612 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000732/0.3043, allocations: 301.5 kB / 0.5615 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.616e-05/0.3043, allocations: 0 / 0.5615 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.092e-05/0.3043, allocations: 4 kB / 0.5615 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.699e-06/0.3043, allocations: 3.938 kB / 0.5615 GB, free: 3.23 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:232:3-298: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.0007836/0.3051, allocations: 97.2 kB / 0.5616 GB, free: 3.137 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.597e-05/0.3051, allocations: 4 kB / 0.5616 GB, free: 3.133 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.653e-05/0.3051, allocations: 4 kB / 0.5616 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.323e-05/0.3052, allocations: 0 / 0.5616 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.94e-05/0.3052, allocations: 3.984 kB / 0.5616 GB, free: 3.125 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.36e-06/0.3052, allocations: 0 / 0.5616 GB, free: 3.125 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002037/0.3054, allocations: 111.9 kB / 0.5617 GB, free: 3.016 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.844e-06/0.3054, allocations: 0 / 0.5617 GB, free: 3.016 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.177e-05/0.3054, allocations: 4 kB / 0.5617 GB, free: 3.012 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001959/0.3056, allocations: 89.58 kB / 0.5618 GB, free: 2.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3056, allocations: 3.938 kB / 0.5618 GB, free: 2.926 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3056, allocations: 0 / 0.5618 GB, free: 2.926 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.678e-06/0.3056, allocations: 0 / 0.5618 GB, free: 2.926 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.0004103/0.306, allocations: 284 kB / 0.5621 GB, free: 2.609 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.3061, allocations: 8.031 kB / 0.5621 GB, free: 2.602 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.059e-05/0.3061, allocations: 30.75 kB / 0.5621 GB, free: 2.562 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.634e-05/0.3061, allocations: 4.938 kB / 0.5621 GB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.834e-05/0.3062, allocations: 102.5 kB / 0.5622 GB, free: 2.434 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.3062, allocations: 4.375 kB / 0.5622 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.815e-06/0.3062, allocations: 4.375 kB / 0.5622 GB, free: 2.426 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001066/0.3064, allocations: 59.95 kB / 0.5623 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.3064, allocations: 3.938 kB / 0.5623 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.023e-06/0.3064, allocations: 0 / 0.5623 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.3064, allocations: 0 / 0.5623 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.105e-05/0.3064, allocations: 29.64 kB / 0.5623 GB, free: 2.316 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001907/0.3066, allocations: 120.8 kB / 0.5624 GB, free: 2.156 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.115e-05/0.3067, allocations: 40.28 kB / 0.5625 GB, free: 2.102 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.248e-05/0.3067, allocations: 38.64 kB / 0.5625 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.396e-06/0.3067, allocations: 0 / 0.5625 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.136e-05/0.3067, allocations: 64.25 kB / 0.5626 GB, free: 1.977 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.3068, allocations: 0 / 0.5626 GB, free: 1.977 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002186/0.307, allocations: 126.7 kB / 0.5627 GB, free: 1.828 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.087e-05/0.307, allocations: 81.09 kB / 0.5628 GB, free: 1.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.688e-05/0.3071, allocations: 93.81 kB / 0.5629 GB, free: 1.629 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.3071, allocations: 25.7 kB / 0.5629 GB, free: 1.598 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.411e-05/0.3071, allocations: 84.08 kB / 0.563 GB, free: 1.512 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.3072, allocations: 3.938 kB / 0.563 GB, free: 1.508 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.896e-05/0.3072, allocations: 13.72 kB / 0.563 GB, free: 1.488 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.3074, allocations: 318.8 kB / 0.5633 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.679e-05/0.3074, allocations: 29.83 kB / 0.5633 GB, free: 1.133 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.054e-05/0.3074, allocations: 29.7 kB / 0.5634 GB, free: 1.098 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.058e-05/0.3075, allocations: 64.25 kB / 0.5634 GB, free: 1.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3075, allocations: 0 / 0.5634 GB, free: 1.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.603e-05/0.3076, allocations: 93.05 kB / 0.5635 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/0.3076, allocations: 29.7 kB / 0.5635 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.3076, allocations: 3.938 kB / 0.5635 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.3076, allocations: 0 / 0.5635 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.3076, allocations: 0 / 0.5635 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.022e-06/0.3076, allocations: 4.078 kB / 0.5635 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.435e-05/0.3076, allocations: 8 kB / 0.5635 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.3077, allocations: 0 / 0.5635 GB, free: 0.8594 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 9.857e-05/0.3078, allocations: 135.5 kB / 0.5637 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.484e-06/0.3078, allocations: 0 / 0.5637 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.478e-05/0.3078, allocations: 6.938 kB / 0.5637 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.3078, allocations: 3.984 kB / 0.5637 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.3078, allocations: 0 / 0.5637 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-06/0.3078, allocations: 0 / 0.5637 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.848e-05/0.3079, allocations: 128.8 kB / 0.5638 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.3079, allocations: 0 / 0.5638 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.3079, allocations: 4 kB / 0.5638 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.3079, allocations: 0 / 0.5638 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.165e-06/0.3079, allocations: 3.938 kB / 0.5638 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3079, allocations: 0 / 0.5638 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3079, allocations: 0 / 0.5638 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001186/0.308, allocations: 120.5 kB / 0.5639 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.657e-06/0.308, allocations: 4 kB / 0.5639 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/0.308, allocations: 3.938 kB / 0.5639 GB, free: 376 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.135e-06/0.308, allocations: 0 / 0.5639 GB, free: 376 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.142e-05/0.3081, allocations: 0 / 0.5639 GB, free: 376 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.3081, allocations: 8.031 kB / 0.5639 GB, free: 368 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.627e-05/0.3081, allocations: 75.28 kB / 0.564 GB, free: 292 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3081, allocations: 3.938 kB / 0.564 GB, free: 288 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002463/0.3083, allocations: 35.92 kB / 0.5641 GB, free: 252 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.001021/0.3094, allocations: 0.8255 MB / 0.5649 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001405/0.3095, allocations: 110.8 kB / 0.565 GB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3095, allocations: 0 / 0.565 GB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.316e-05/0.3096, allocations: 81.11 kB / 0.565 GB, free: 15.19 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000123/0.3097, allocations: 6.5 kB / 0.5651 GB, free: 15.19 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003367/0.31, allocations: 152.3 kB / 0.5652 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.802e-05/0.3101, allocations: 51.36 kB / 0.5652 GB, free: 14.92 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.072e-06/0.3101, allocations: 4 kB / 0.5653 GB, free: 14.92 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.721e-05/0.3101, allocations: 8.625 kB / 0.5653 GB, free: 14.91 MB / 414.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3101, allocations: 4 kB / 0.5653 GB, free: 14.9 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02844/0.3385, allocations: 2.436 MB / 0.5676 GB, free: 12.56 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.6, allocations: 15.69 kB / 0.5677 GB, free: 12.55 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.621554974000901]