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.001114/0.001114, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00169/0.002804, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001193/0.001193, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001556/0.002749, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 0.9852/0.9852, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08879/1.074, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] 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.2482/0.2482, allocations: 34.25 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02245/0.2707, allocations: 13.09 MB / 291.3 MB, free: 7.375 MB / 282.7 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 1.492e-06/1.492e-06, allocations: 0 / 292.6 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.672e-05/2.821e-05, allocations: 3.078 kB / 292.6 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001789/0.001817, allocations: 0.5321 MB / 293.1 MB, free: 5.812 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005541/0.002371, allocations: 319 kB / 293.4 MB, free: 5.5 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.353e-05/0.002384, allocations: 0 / 293.4 MB, free: 5.5 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.997e-06/0.002388, allocations: 8 kB / 293.4 MB, free: 5.492 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.082e-06/0.00239, allocations: 0 / 293.4 MB, free: 5.492 MB / 282.7 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.000645/0.003034, allocations: 96.56 kB / 293.5 MB, free: 5.406 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.958e-05/0.003104, allocations: 4.5 kB / 293.5 MB, free: 5.402 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.477e-05/0.003139, allocations: 3.984 kB / 293.5 MB, free: 5.398 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.991e-05/0.003169, allocations: 0 / 293.5 MB, free: 5.398 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.311e-05/0.003192, allocations: 4 kB / 293.6 MB, free: 5.395 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.185e-06/0.0032, allocations: 0 / 293.6 MB, free: 5.395 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002207/0.003421, allocations: 111.8 kB / 293.7 MB, free: 5.285 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.185e-06/0.003429, allocations: 0 / 293.7 MB, free: 5.285 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.293e-05/0.003442, allocations: 4 kB / 293.7 MB, free: 5.281 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001907/0.003633, allocations: 99.72 kB / 293.8 MB, free: 5.184 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.618e-05/0.003649, allocations: 0 / 293.8 MB, free: 5.184 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.00365, allocations: 0 / 293.8 MB, free: 5.184 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.626e-05/0.003666, allocations: 0 / 293.8 MB, free: 5.184 MB / 282.7 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.0003123/0.003978, allocations: 274.2 kB / 294 MB, free: 4.883 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.004012, allocations: 8.031 kB / 294 MB, free: 4.875 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.601e-05/0.004048, allocations: 4.938 kB / 294 MB, free: 4.871 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.41e-05/0.004112, allocations: 105.8 kB / 294.1 MB, free: 4.742 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.004123, allocations: 384 / 294.1 MB, free: 4.742 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.992e-06/0.004129, allocations: 384 / 294.1 MB, free: 4.742 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.842e-05/0.004207, allocations: 67.89 kB / 294.2 MB, free: 4.664 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.004214, allocations: 192 / 294.2 MB, free: 4.664 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-06/0.004221, allocations: 384 / 294.2 MB, free: 4.664 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.004225, allocations: 4.312 kB / 294.2 MB, free: 4.66 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.133e-05/0.004247, allocations: 33.64 kB / 294.3 MB, free: 4.621 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.83e-05/0.004315, allocations: 61.05 kB / 294.3 MB, free: 4.547 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.432e-05/0.004359, allocations: 44.27 kB / 294.4 MB, free: 4.488 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.865e-05/0.004378, allocations: 34.66 kB / 294.4 MB, free: 4.445 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-06/0.004381, allocations: 0 / 294.4 MB, free: 4.445 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.691e-05/0.004418, allocations: 60.2 kB / 294.4 MB, free: 4.371 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.004419, allocations: 4 kB / 294.5 MB, free: 4.367 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001323/0.004551, allocations: 114.8 kB / 294.6 MB, free: 4.23 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.814e-05/0.00459, allocations: 77.11 kB / 294.6 MB, free: 4.137 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.703e-05/0.004627, allocations: 89.86 kB / 294.7 MB, free: 4.039 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.237e-06/0.004636, allocations: 29.7 kB / 294.8 MB, free: 4.004 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.379e-05/0.00466, allocations: 84.14 kB / 294.8 MB, free: 3.918 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.438e-05/0.004674, allocations: 0 / 294.8 MB, free: 3.918 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.959e-05/0.004704, allocations: 17.7 kB / 294.9 MB, free: 3.895 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.233e-05/0.004786, allocations: 314.8 kB / 295.2 MB, free: 3.578 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.991e-05/0.004806, allocations: 25.7 kB / 295.2 MB, free: 3.547 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.801e-05/0.004824, allocations: 37.81 kB / 295.2 MB, free: 3.504 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.882e-05/0.004873, allocations: 68.2 kB / 295.3 MB, free: 3.422 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.004875, allocations: 0 / 295.3 MB, free: 3.422 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.274e-05/0.004937, allocations: 81.11 kB / 295.4 MB, free: 3.324 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.004e-05/0.004977, allocations: 37.69 kB / 295.4 MB, free: 3.281 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.004982, allocations: 0 / 295.4 MB, free: 3.281 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.316e-06/0.00499, allocations: 0 / 295.4 MB, free: 3.281 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.08e-06/0.004995, allocations: 0 / 295.4 MB, free: 3.281 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.856e-06/0.004998, allocations: 0 / 295.4 MB, free: 3.281 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.016e-05/0.005018, allocations: 0.7812 kB / 295.4 MB, free: 3.281 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.567e-06/0.005027, allocations: 4 kB / 295.4 MB, free: 3.277 MB / 282.7 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 6.71e-05/0.005094, allocations: 139.5 kB / 295.5 MB, free: 3.125 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.147e-06/0.005103, allocations: 4 kB / 295.6 MB, free: 3.121 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.038e-05/0.005113, allocations: 6.984 kB / 295.6 MB, free: 3.117 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.005117, allocations: 7.922 kB / 295.6 MB, free: 3.109 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.562e-06/0.005118, allocations: 0 / 295.6 MB, free: 3.109 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.005121, allocations: 0 / 295.6 MB, free: 3.109 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.511e-05/0.005176, allocations: 65.84 kB / 295.6 MB, free: 3.027 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.005177, allocations: 4 kB / 295.6 MB, free: 3.023 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.005178, allocations: 3.938 kB / 295.6 MB, free: 3.02 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.837e-06/0.005182, allocations: 4 kB / 295.6 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.005184, allocations: 0 / 295.6 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.047e-06/0.005188, allocations: 0 / 295.6 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.005189, allocations: 0 / 295.6 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.00519, allocations: 0 / 295.6 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.159e-05/0.005271, allocations: 116.5 kB / 295.8 MB, free: 2.871 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.005283, allocations: 0 / 295.8 MB, free: 2.871 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.047e-06/0.005292, allocations: 0 / 295.8 MB, free: 2.871 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.105e-05/0.005303, allocations: 7.984 kB / 295.8 MB, free: 2.863 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.005306, allocations: 0 / 295.8 MB, free: 2.863 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.592e-06/0.005313, allocations: 8.891 kB / 295.8 MB, free: 2.852 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.005313, allocations: 0 / 295.8 MB, free: 2.852 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001876/0.005501, allocations: 35.88 kB / 295.8 MB, free: 2.816 MB / 282.7 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.0007217/0.006222, allocations: 337 kB / 296.1 MB, free: 2.605 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001092/0.006332, allocations: 115.7 kB / 296.2 MB, free: 2.465 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.006335, allocations: 0 / 296.2 MB, free: 2.465 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.465e-05/0.00637, allocations: 85.97 kB / 296.3 MB, free: 2.359 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.632e-05/0.006426, allocations: 11.92 kB / 296.3 MB, free: 2.348 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001571/0.006583, allocations: 105.1 kB / 296.4 MB, free: 2.211 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.95e-05/0.006613, allocations: 55.36 kB / 296.5 MB, free: 2.137 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.745e-06/0.00662, allocations: 3.984 kB / 296.5 MB, free: 2.133 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.213e-05/0.006663, allocations: 51.38 kB / 296.6 MB, free: 2.082 MB / 282.7 MB Notification: Performance of SimCode: time 7.41e-07/0.006663, allocations: 4.125 kB / 296.6 MB, free: 2.078 MB / 282.7 MB Notification: Performance of Templates: time 0.003286/0.009949, allocations: 1.17 MB / 297.7 MB, free: 0.9141 MB / 282.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7687208456918597]