Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001897/0.001897, 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.002418/0.002418, allocations: 213.2 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.597/1.597, allocations: 230.6 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2338/0.2338, allocations: 44.94 MB / 359.6 MB, free: 6.137 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002163/0.002163, allocations: 71.89 kB / 0.4942 GB, free: 10.06 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3195, allocations: 65.47 MB / 0.5582 GB, free: 7.496 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001689/0.3212, allocations: 488 kB / 0.5586 GB, free: 7.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007934/0.3219, allocations: 305.4 kB / 0.5589 GB, free: 6.723 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.874e-05/0.322, allocations: 0 / 0.5589 GB, free: 6.723 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.512e-05/0.322, allocations: 0 / 0.5589 GB, free: 6.723 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.11e-06/0.322, allocations: 0 / 0.5589 GB, free: 6.723 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:222:3-288: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.0008584/0.3228, allocations: 95.7 kB / 0.559 GB, free: 6.629 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.797e-05/0.3229, allocations: 4 kB / 0.559 GB, free: 6.625 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.795e-05/0.3229, allocations: 0 / 0.559 GB, free: 6.625 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.843e-05/0.3229, allocations: 4 kB / 0.559 GB, free: 6.621 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.808e-05/0.323, allocations: 4 kB / 0.559 GB, free: 6.617 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.561e-06/0.323, allocations: 0 / 0.559 GB, free: 6.617 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002349/0.3232, allocations: 111.9 kB / 0.5591 GB, free: 6.508 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.233e-06/0.3232, allocations: 0 / 0.5591 GB, free: 6.508 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.909e-05/0.3232, allocations: 0 / 0.5591 GB, free: 6.508 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000204/0.3234, allocations: 91.55 kB / 0.5592 GB, free: 6.422 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3234, allocations: 4 kB / 0.5592 GB, free: 6.418 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3234, allocations: 0 / 0.5592 GB, free: 6.418 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.3234, allocations: 0 / 0.5592 GB, free: 6.418 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.0003721/0.3238, allocations: 282.7 kB / 0.5595 GB, free: 6.109 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3239, allocations: 8.031 kB / 0.5595 GB, free: 6.102 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.741e-05/0.3239, allocations: 4.938 kB / 0.5595 GB, free: 6.098 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.824e-05/0.324, allocations: 110.5 kB / 0.5596 GB, free: 5.965 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.318e-06/0.324, allocations: 4.375 kB / 0.5596 GB, free: 5.961 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.151e-05/0.324, allocations: 384 / 0.5596 GB, free: 5.961 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001039/0.3241, allocations: 55.97 kB / 0.5597 GB, free: 5.895 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.3241, allocations: 192 / 0.5597 GB, free: 5.895 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.838e-05/0.3241, allocations: 3.938 kB / 0.5597 GB, free: 5.891 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.3241, allocations: 0 / 0.5597 GB, free: 5.891 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.208e-05/0.3242, allocations: 29.64 kB / 0.5597 GB, free: 5.855 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001178/0.3243, allocations: 101.3 kB / 0.5598 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.845e-05/0.3244, allocations: 56.2 kB / 0.5599 GB, free: 5.656 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.133e-05/0.3244, allocations: 34.66 kB / 0.5599 GB, free: 5.613 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.906e-06/0.3244, allocations: 0 / 0.5599 GB, free: 5.613 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.598e-05/0.3244, allocations: 56.27 kB / 0.5599 GB, free: 5.543 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3244, allocations: 3.938 kB / 0.5599 GB, free: 5.539 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002189/0.3247, allocations: 134.7 kB / 0.5601 GB, free: 5.383 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.098e-05/0.3247, allocations: 77.11 kB / 0.5601 GB, free: 5.289 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.537e-05/0.3248, allocations: 93.81 kB / 0.5602 GB, free: 5.188 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.3248, allocations: 25.7 kB / 0.5603 GB, free: 5.156 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.771e-05/0.3248, allocations: 80.14 kB / 0.5603 GB, free: 5.074 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.035e-05/0.3249, allocations: 4.125 kB / 0.5603 GB, free: 5.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.179e-05/0.3249, allocations: 13.72 kB / 0.5604 GB, free: 5.051 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.325, allocations: 310.8 kB / 0.5607 GB, free: 4.738 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.621e-05/0.3251, allocations: 29.69 kB / 0.5607 GB, free: 4.703 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.976e-05/0.3251, allocations: 33.7 kB / 0.5607 GB, free: 4.664 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.818e-05/0.3252, allocations: 60.27 kB / 0.5608 GB, free: 4.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3252, allocations: 0 / 0.5608 GB, free: 4.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.664e-05/0.3253, allocations: 93.03 kB / 0.5609 GB, free: 4.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.551e-05/0.3253, allocations: 32.2 kB / 0.5609 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.3253, allocations: 4.094 kB / 0.5609 GB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.3253, allocations: 0 / 0.5609 GB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.076e-06/0.3253, allocations: 3.938 kB / 0.5609 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.3253, allocations: 0 / 0.5609 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.779e-05/0.3254, allocations: 8 kB / 0.5609 GB, free: 4.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-06/0.3254, allocations: 0 / 0.5609 GB, free: 4.43 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.934e-05/0.3255, allocations: 135.5 kB / 0.561 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.234e-06/0.3255, allocations: 0 / 0.561 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.389e-05/0.3255, allocations: 6.984 kB / 0.561 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.3255, allocations: 3.938 kB / 0.561 GB, free: 4.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3255, allocations: 0 / 0.561 GB, free: 4.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.3255, allocations: 4 kB / 0.561 GB, free: 4.266 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.214e-05/0.3256, allocations: 97.33 kB / 0.5611 GB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.3256, allocations: 0 / 0.5611 GB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.677e-06/0.3256, allocations: 4 kB / 0.5611 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.3256, allocations: 0 / 0.5611 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.181e-06/0.3256, allocations: 0 / 0.5611 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.3256, allocations: 3.938 kB / 0.5611 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.3256, allocations: 3.938 kB / 0.5612 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001325/0.3257, allocations: 120.5 kB / 0.5613 GB, free: 3.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.572e-06/0.3257, allocations: 4 kB / 0.5613 GB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.3257, allocations: 4.031 kB / 0.5613 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.071e-05/0.3258, allocations: 3.984 kB / 0.5613 GB, free: 3.969 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.707e-05/0.3258, allocations: 7.938 kB / 0.5613 GB, free: 3.961 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.3258, allocations: 4 kB / 0.5613 GB, free: 3.957 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.531e-05/0.3258, allocations: 75.28 kB / 0.5614 GB, free: 3.883 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3258, allocations: 0 / 0.5614 GB, free: 3.883 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002373/0.3261, allocations: 35.81 kB / 0.5614 GB, free: 3.848 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.000663/0.3267, allocations: 279.2 kB / 0.5617 GB, free: 3.629 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001549/0.3269, allocations: 110.8 kB / 0.5618 GB, free: 3.496 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3269, allocations: 0 / 0.5618 GB, free: 3.496 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.927e-05/0.3269, allocations: 89.03 kB / 0.5619 GB, free: 3.391 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001269/0.3271, allocations: 8 kB / 0.5619 GB, free: 3.383 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002208/0.3273, allocations: 132.3 kB / 0.562 GB, free: 3.215 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.906e-05/0.3273, allocations: 63.47 kB / 0.562 GB, free: 3.133 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.441e-05/0.3273, allocations: 7.438 kB / 0.5621 GB, free: 3.125 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3273, allocations: 0 / 0.5621 GB, free: 3.125 MB / 398.1 MB Notification: Performance of Templates: time 0.002975/0.3303, allocations: 1.147 MB / 0.5632 GB, free: 1.977 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 8.095517102163285]