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.001363/0.001363, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.001515/0.001515, allocations: 212.6 kB / 24.48 MB, free: 3.84 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.473/1.473, allocations: 230.6 MB / 258.2 MB, free: 7.812 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.2331/0.2331, allocations: 46.97 MB / 361.6 MB, free: 4.047 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: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002389/0.002389, allocations: 71.89 kB / 0.4973 GB, free: 7.262 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3441, allocations: 66.03 MB / 0.5618 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001643/0.3457, allocations: 493 kB / 0.5623 GB, free: 3.711 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008089/0.3465, allocations: 301.5 kB / 0.5626 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.896e-05/0.3466, allocations: 0 / 0.5626 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.248e-05/0.3466, allocations: 0 / 0.5626 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.032e-06/0.3466, allocations: 3.938 kB / 0.5626 GB, free: 3.414 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.0008901/0.3475, allocations: 98.38 kB / 0.5626 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.833e-05/0.3475, allocations: 0 / 0.5626 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.12e-05/0.3476, allocations: 7.984 kB / 0.5627 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.024e-05/0.3476, allocations: 0 / 0.5627 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.181e-05/0.3476, allocations: 3.984 kB / 0.5627 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.821e-06/0.3476, allocations: 4 kB / 0.5627 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002222/0.3478, allocations: 111.8 kB / 0.5628 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.504e-06/0.3478, allocations: 3.938 kB / 0.5628 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.954e-05/0.3479, allocations: 0 / 0.5628 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002127/0.3481, allocations: 87.61 kB / 0.5629 GB, free: 3.109 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3481, allocations: 0 / 0.5629 GB, free: 3.109 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3481, allocations: 0 / 0.5629 GB, free: 3.109 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.3481, allocations: 0 / 0.5629 GB, free: 3.109 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.0003866/0.3485, allocations: 286.5 kB / 0.5631 GB, free: 2.797 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.3485, allocations: 12.03 kB / 0.5631 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.28e-05/0.3485, allocations: 0.9375 kB / 0.5631 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.902e-05/0.3486, allocations: 106.5 kB / 0.5632 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.3486, allocations: 384 / 0.5632 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.02e-05/0.3486, allocations: 4.375 kB / 0.5632 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.3488, allocations: 59.89 kB / 0.5633 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.3488, allocations: 192 / 0.5633 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.3488, allocations: 3.938 kB / 0.5633 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.3488, allocations: 4 kB / 0.5633 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.511e-05/0.3488, allocations: 25.7 kB / 0.5633 GB, free: 2.543 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001253/0.3489, allocations: 101.3 kB / 0.5634 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.084e-05/0.349, allocations: 44.31 kB / 0.5635 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.119e-05/0.349, allocations: 38.55 kB / 0.5635 GB, free: 2.309 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.091e-05/0.349, allocations: 4.062 kB / 0.5635 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.639e-05/0.3491, allocations: 60.25 kB / 0.5636 GB, free: 2.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 3.105e-06/0.3491, allocations: 7.922 kB / 0.5636 GB, free: 2.223 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002093/0.3493, allocations: 122.7 kB / 0.5637 GB, free: 2.078 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.587e-05/0.3494, allocations: 77.11 kB / 0.5638 GB, free: 1.984 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.122e-05/0.3494, allocations: 93.81 kB / 0.5639 GB, free: 1.883 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/0.3494, allocations: 29.7 kB / 0.5639 GB, free: 1.848 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.07e-05/0.3495, allocations: 80.14 kB / 0.564 GB, free: 1.766 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.3495, allocations: 0 / 0.564 GB, free: 1.766 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.068e-05/0.3495, allocations: 21.84 kB / 0.564 GB, free: 1.738 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.3497, allocations: 310.8 kB / 0.5643 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.454e-05/0.3497, allocations: 25.7 kB / 0.5643 GB, free: 1.395 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.986e-05/0.3497, allocations: 25.7 kB / 0.5643 GB, free: 1.363 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.052e-05/0.3498, allocations: 68.19 kB / 0.5644 GB, free: 1.281 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3498, allocations: 0 / 0.5644 GB, free: 1.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.494e-05/0.3499, allocations: 89.11 kB / 0.5645 GB, free: 1.176 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.691e-05/0.3499, allocations: 33.7 kB / 0.5645 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.3499, allocations: 0 / 0.5645 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.3499, allocations: 8.078 kB / 0.5645 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.356e-06/0.3499, allocations: 3.938 kB / 0.5645 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.3499, allocations: 0 / 0.5645 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.669e-05/0.35, allocations: 0 / 0.5645 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.35, allocations: 3.938 kB / 0.5645 GB, free: 1.121 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.74e-05/0.3501, allocations: 135.5 kB / 0.5647 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.324e-06/0.3501, allocations: 0 / 0.5647 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.011e-05/0.3501, allocations: 3 kB / 0.5647 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.3501, allocations: 7.938 kB / 0.5647 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.3501, allocations: 0 / 0.5647 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3501, allocations: 0 / 0.5647 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.816e-05/0.3502, allocations: 105.3 kB / 0.5648 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.82e-07/0.3502, allocations: 0 / 0.5648 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.3502, allocations: 0 / 0.5648 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.3502, allocations: 11.94 kB / 0.5648 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.572e-06/0.3502, allocations: 3.938 kB / 0.5648 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.3502, allocations: 0 / 0.5648 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3502, allocations: 3.938 kB / 0.5648 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001209/0.3503, allocations: 116.5 kB / 0.5649 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.286e-06/0.3503, allocations: 0 / 0.5649 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.3503, allocations: 4 kB / 0.5649 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.885e-06/0.3503, allocations: 4.031 kB / 0.5649 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.602e-05/0.3503, allocations: 3.938 kB / 0.5649 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-06/0.3503, allocations: 0 / 0.5649 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.932e-05/0.3504, allocations: 75.28 kB / 0.565 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3504, allocations: 0 / 0.565 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002414/0.3506, allocations: 39.86 kB / 0.565 GB, free: 0.5391 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.0006563/0.3513, allocations: 275.8 kB / 0.5653 GB, free: 332 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001451/0.3514, allocations: 122.8 kB / 0.5654 GB, free: 184 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3514, allocations: 0 / 0.5654 GB, free: 184 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.956e-05/0.3515, allocations: 81.11 kB / 0.5655 GB, free: 84 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001255/0.3516, allocations: 6.953 kB / 0.5655 GB, free: 80 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002407/0.3519, allocations: 136.5 kB / 0.5656 GB, free: 15.9 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.536e-05/0.3519, allocations: 55.36 kB / 0.5657 GB, free: 15.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.302e-05/0.3519, allocations: 11.56 kB / 0.5657 GB, free: 15.82 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3519, allocations: 0 / 0.5657 GB, free: 15.82 MB / 414.1 MB Notification: Performance of Templates: time 0.002988/0.3549, allocations: 1.151 MB / 0.5668 GB, free: 14.67 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams_res.mat","/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: 7.91269362391904]