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.00132/0.00132, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001475/0.001475, allocations: 210.7 kB / 24.48 MB, free: 3.977 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.436/1.436, allocations: 230.6 MB / 258.2 MB, free: 7.809 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.2246/0.2246, allocations: 46.96 MB / 361.6 MB, free: 4.062 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.001939/0.001939, allocations: 67.89 kB / 0.4973 GB, free: 7.273 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3154, allocations: 66.03 MB / 0.5618 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001621/0.3171, allocations: 496.9 kB / 0.5623 GB, free: 3.719 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000714/0.3178, allocations: 297.5 kB / 0.5625 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.644e-05/0.3178, allocations: 0 / 0.5625 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.444e-05/0.3178, allocations: 0 / 0.5625 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.871e-06/0.3178, allocations: 4 kB / 0.5625 GB, free: 3.426 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.0007599/0.3186, allocations: 101.2 kB / 0.5626 GB, free: 3.332 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.651e-05/0.3186, allocations: 3.984 kB / 0.5626 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.106e-05/0.3187, allocations: 0 / 0.5626 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.646e-05/0.3187, allocations: 8 kB / 0.5627 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.139e-05/0.3187, allocations: 7.922 kB / 0.5627 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.76e-06/0.3187, allocations: 0 / 0.5627 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001998/0.3189, allocations: 115.8 kB / 0.5628 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.416e-06/0.3189, allocations: 4 kB / 0.5628 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.699e-05/0.3189, allocations: 0 / 0.5628 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001826/0.3191, allocations: 83.67 kB / 0.5629 GB, free: 3.117 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.3191, allocations: 0 / 0.5629 GB, free: 3.117 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3191, allocations: 3.938 kB / 0.5629 GB, free: 3.113 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.3191, allocations: 0 / 0.5629 GB, free: 3.113 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.0003659/0.3195, allocations: 294.6 kB / 0.5631 GB, free: 2.793 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.212e-05/0.3195, allocations: 12.03 kB / 0.5632 GB, free: 2.781 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.761e-05/0.3196, allocations: 4.938 kB / 0.5632 GB, free: 2.777 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.273e-05/0.3196, allocations: 102.5 kB / 0.5633 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.253e-06/0.3197, allocations: 384 / 0.5633 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.3197, allocations: 384 / 0.5633 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001075/0.3198, allocations: 63.95 kB / 0.5633 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.914e-06/0.3198, allocations: 192 / 0.5633 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.3198, allocations: 3.938 kB / 0.5633 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.3198, allocations: 0 / 0.5633 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.313e-05/0.3198, allocations: 29.7 kB / 0.5633 GB, free: 2.539 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001139/0.3199, allocations: 93.33 kB / 0.5634 GB, free: 2.418 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.254e-05/0.32, allocations: 52.25 kB / 0.5635 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.087e-05/0.32, allocations: 38.55 kB / 0.5635 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.785e-06/0.32, allocations: 0 / 0.5635 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.549e-05/0.3201, allocations: 60.33 kB / 0.5636 GB, free: 2.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3201, allocations: 0 / 0.5636 GB, free: 2.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000196/0.3203, allocations: 122.7 kB / 0.5637 GB, free: 2.086 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.3203, allocations: 77.11 kB / 0.5638 GB, free: 1.992 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.416e-05/0.3204, allocations: 97.81 kB / 0.5639 GB, free: 1.887 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.3204, allocations: 25.7 kB / 0.5639 GB, free: 1.855 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.27e-05/0.3204, allocations: 84.27 kB / 0.564 GB, free: 1.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.741e-05/0.3205, allocations: 4 kB / 0.564 GB, free: 1.766 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.681e-05/0.3205, allocations: 9.719 kB / 0.564 GB, free: 1.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.3206, allocations: 310.8 kB / 0.5643 GB, free: 1.438 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.881e-05/0.3206, allocations: 29.7 kB / 0.5643 GB, free: 1.402 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.804e-05/0.3207, allocations: 25.7 kB / 0.5643 GB, free: 1.371 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.484e-05/0.3207, allocations: 68.25 kB / 0.5644 GB, free: 1.289 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.3207, allocations: 0 / 0.5644 GB, free: 1.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.396e-05/0.3208, allocations: 89.05 kB / 0.5645 GB, free: 1.184 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.945e-05/0.3208, allocations: 29.8 kB / 0.5645 GB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.3208, allocations: 7.984 kB / 0.5645 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.3209, allocations: 7.938 kB / 0.5645 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.868e-06/0.3209, allocations: 3.938 kB / 0.5645 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.008e-06/0.3209, allocations: 0 / 0.5645 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.565e-05/0.3209, allocations: 3.938 kB / 0.5645 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.3209, allocations: 0 / 0.5645 GB, free: 1.125 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 8.928e-05/0.321, allocations: 139.5 kB / 0.5647 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.324e-06/0.321, allocations: 0 / 0.5647 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.195e-05/0.321, allocations: 6.984 kB / 0.5647 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.321, allocations: 3.938 kB / 0.5647 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.321, allocations: 4 kB / 0.5647 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.321, allocations: 4 kB / 0.5647 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.246e-05/0.3211, allocations: 97.31 kB / 0.5648 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.3211, allocations: 0 / 0.5648 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.3211, allocations: 0 / 0.5648 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.3211, allocations: 0 / 0.5648 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.3211, allocations: 4 kB / 0.5648 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.3211, allocations: 4 kB / 0.5648 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3211, allocations: 3.938 kB / 0.5648 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001218/0.3212, allocations: 120.5 kB / 0.5649 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.778e-06/0.3212, allocations: 4.031 kB / 0.5649 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.168e-05/0.3212, allocations: 0 / 0.5649 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.098e-05/0.3212, allocations: 4 kB / 0.5649 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.642e-05/0.3213, allocations: 3.938 kB / 0.5649 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-06/0.3213, allocations: 0 / 0.5649 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.573e-05/0.3213, allocations: 75.28 kB / 0.565 GB, free: 0.582 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3213, allocations: 0 / 0.565 GB, free: 0.582 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002553/0.3216, allocations: 39.86 kB / 0.565 GB, free: 0.543 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.0006275/0.3222, allocations: 281 kB / 0.5653 GB, free: 328 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001532/0.3223, allocations: 110.8 kB / 0.5654 GB, free: 192 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.3223, allocations: 4 kB / 0.5654 GB, free: 188 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.143e-05/0.3224, allocations: 81.09 kB / 0.5655 GB, free: 88 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001265/0.3225, allocations: 7.938 kB / 0.5655 GB, free: 80 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000215/0.3227, allocations: 114.8 kB / 0.5656 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.574e-05/0.3228, allocations: 51.36 kB / 0.5656 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.55e-06/0.3228, allocations: 4 kB / 0.5656 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.389e-05/0.3228, allocations: 7.438 kB / 0.5657 GB, free: 15.85 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3228, allocations: 0 / 0.5657 GB, free: 15.85 MB / 414.1 MB Notification: Performance of Templates: time 0.003852/0.3267, allocations: 0.9889 MB / 0.5666 GB, free: 14.87 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 -s cvode -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: 4.820529653996346]