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.001327/0.001327, allocations: 84.55 kB / 20.68 MB, free: 1.023 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.001439/0.001439, allocations: 163.9 kB / 23.95 MB, free: 4.156 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.569/1.569, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.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.2171/0.2171, allocations: 34.28 MB / 295 MB, free: 14.58 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 1.834e-06/1.834e-06, allocations: 0 / 442.6 MB, free: 5.441 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.894e-05/3.077e-05, allocations: 2.281 kB / 442.6 MB, free: 5.438 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001559/0.00159, allocations: 496.5 kB / 443.1 MB, free: 4.957 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008099/0.0024, allocations: 307 kB / 443.4 MB, free: 4.656 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.024e-05/0.00242, allocations: 0 / 443.4 MB, free: 4.656 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.606e-05/0.002436, allocations: 3.938 kB / 443.4 MB, free: 4.652 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.001e-06/0.002442, allocations: 0 / 443.4 MB, free: 4.652 MB / 366.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.0009313/0.003373, allocations: 89.91 kB / 443.5 MB, free: 4.566 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.185e-05/0.003425, allocations: 4 kB / 443.5 MB, free: 4.562 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.279e-05/0.003468, allocations: 3.984 kB / 443.5 MB, free: 4.559 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.439e-05/0.003492, allocations: 4 kB / 443.5 MB, free: 4.555 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.151e-05/0.003514, allocations: 4 kB / 443.5 MB, free: 4.551 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.143e-06/0.003521, allocations: 0 / 443.5 MB, free: 4.551 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000261/0.003782, allocations: 111.8 kB / 443.6 MB, free: 4.441 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.606e-06/0.00379, allocations: 0 / 443.6 MB, free: 4.441 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.445e-05/0.003815, allocations: 4 kB / 443.7 MB, free: 4.438 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00028/0.004095, allocations: 111.7 kB / 443.8 MB, free: 4.328 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.004097, allocations: 0 / 443.8 MB, free: 4.328 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.004098, allocations: 0 / 443.8 MB, free: 4.328 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.004107, allocations: 0 / 443.8 MB, free: 4.328 MB / 366.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.0003852/0.004492, allocations: 280 kB / 444 MB, free: 4.016 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.004531, allocations: 16.03 kB / 444.1 MB, free: 4 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.358e-05/0.004565, allocations: 0.9375 kB / 444.1 MB, free: 4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.674e-05/0.004662, allocations: 109.7 kB / 444.2 MB, free: 3.867 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.004673, allocations: 4.359 kB / 444.2 MB, free: 3.863 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.314e-05/0.004686, allocations: 384 / 444.2 MB, free: 3.863 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001162/0.004803, allocations: 55.97 kB / 444.2 MB, free: 3.797 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.004812, allocations: 192 / 444.2 MB, free: 3.797 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.266e-06/0.00482, allocations: 384 / 444.2 MB, free: 3.797 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.004824, allocations: 4.312 kB / 444.2 MB, free: 3.793 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.65e-05/0.00486, allocations: 37.62 kB / 444.3 MB, free: 3.75 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001234/0.004984, allocations: 97.33 kB / 444.4 MB, free: 3.625 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.504e-05/0.005049, allocations: 52.3 kB / 444.4 MB, free: 3.559 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.036e-05/0.005079, allocations: 34.5 kB / 444.4 MB, free: 3.516 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.314e-06/0.005086, allocations: 4.062 kB / 444.4 MB, free: 3.512 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.56e-05/0.005142, allocations: 56.27 kB / 444.5 MB, free: 3.441 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.483e-06/0.005143, allocations: 0 / 444.5 MB, free: 3.441 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002187/0.005362, allocations: 122.7 kB / 444.6 MB, free: 3.297 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.563e-05/0.005418, allocations: 77.11 kB / 444.7 MB, free: 3.203 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.833e-05/0.005476, allocations: 89.86 kB / 444.8 MB, free: 3.105 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.005495, allocations: 29.7 kB / 444.8 MB, free: 3.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.378e-05/0.005528, allocations: 84.27 kB / 444.9 MB, free: 2.984 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.589e-05/0.005554, allocations: 7.938 kB / 444.9 MB, free: 2.977 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.083e-05/0.005585, allocations: 9.719 kB / 444.9 MB, free: 2.961 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.005736, allocations: 318.8 kB / 445.2 MB, free: 2.641 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.62e-05/0.005762, allocations: 25.7 kB / 445.2 MB, free: 2.609 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.602e-05/0.005788, allocations: 33.69 kB / 445.3 MB, free: 2.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.97e-05/0.005848, allocations: 64.2 kB / 445.3 MB, free: 2.492 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.00585, allocations: 0 / 445.3 MB, free: 2.492 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001007/0.005951, allocations: 85.11 kB / 445.4 MB, free: 2.391 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.693e-05/0.005988, allocations: 45.78 kB / 445.5 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.005992, allocations: 0 / 445.5 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.006005, allocations: 0 / 445.5 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.006006, allocations: 0 / 445.5 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.896e-06/0.006015, allocations: 4 kB / 445.5 MB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.746e-05/0.006033, allocations: 3.938 kB / 445.5 MB, free: 2.332 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.006038, allocations: 0 / 445.5 MB, free: 2.332 MB / 366.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.0001024/0.006141, allocations: 135.5 kB / 445.6 MB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.207e-06/0.00615, allocations: 0 / 445.6 MB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.141e-05/0.006161, allocations: 3 kB / 445.6 MB, free: 2.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.006165, allocations: 4 kB / 445.6 MB, free: 2.176 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.006173, allocations: 7.984 kB / 445.6 MB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.006175, allocations: 0 / 445.6 MB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.213e-05/0.006257, allocations: 97.27 kB / 445.7 MB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.006258, allocations: 0 / 445.7 MB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.01e-07/0.006259, allocations: 3.938 kB / 445.7 MB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.006263, allocations: 4 kB / 445.7 MB, free: 2.035 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.253e-06/0.00627, allocations: 0 / 445.7 MB, free: 2.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.006271, allocations: 0 / 445.7 MB, free: 2.035 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.006272, allocations: 7.875 kB / 445.7 MB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001352/0.006407, allocations: 120.5 kB / 445.9 MB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.098e-06/0.006411, allocations: 4.031 kB / 445.9 MB, free: 1.875 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.363e-05/0.006425, allocations: 4 kB / 445.9 MB, free: 1.871 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.686e-06/0.006434, allocations: 0 / 445.9 MB, free: 1.871 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.074e-05/0.006444, allocations: 0 / 445.9 MB, free: 1.871 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-06/0.006449, allocations: 3.984 kB / 445.9 MB, free: 1.867 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.465e-05/0.006484, allocations: 75.28 kB / 445.9 MB, free: 1.793 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.006484, allocations: 0 / 445.9 MB, free: 1.793 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002578/0.006742, allocations: 35.88 kB / 446 MB, free: 1.758 MB / 366.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.0007329/0.007475, allocations: 298.4 kB / 446.3 MB, free: 1.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001458/0.007621, allocations: 110.8 kB / 446.4 MB, free: 1.387 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.007623, allocations: 0 / 446.4 MB, free: 1.387 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.95e-05/0.007683, allocations: 85.09 kB / 446.5 MB, free: 1.285 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.007809, allocations: 0 / 446.5 MB, free: 1.285 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002277/0.008037, allocations: 102.8 kB / 446.6 MB, free: 1.152 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.055e-05/0.008088, allocations: 63.34 kB / 446.6 MB, free: 1.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.699e-06/0.008092, allocations: 0 / 446.6 MB, free: 1.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.395e-05/0.008106, allocations: 8.5 kB / 446.6 MB, free: 1.062 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.008107, allocations: 4 kB / 446.6 MB, free: 1.059 MB / 366.1 MB Notification: Performance of Templates: time 0.004499/0.01261, allocations: 1.003 MB / 447.6 MB, free: 56 kB / 366.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins/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: 4.904623281210661]