Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001382/0.001382, allocations: 89.3 kB / 20.68 MB, free: 1.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001542/0.001542, allocations: 157.5 kB / 23.95 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 177 MB / 204.1 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2115/0.2115, allocations: 34.26 MB / 294.8 MB, free: 14.53 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.434e-06/2.434e-06, allocations: 0 / 442.6 MB, free: 5.344 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.978e-05/4.221e-05, allocations: 2.281 kB / 442.6 MB, free: 5.34 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002173/0.002215, allocations: 493.2 kB / 443.1 MB, free: 4.859 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000962/0.003178, allocations: 311 kB / 443.4 MB, free: 4.555 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.207e-05/0.0032, allocations: 0 / 443.4 MB, free: 4.555 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.717e-05/0.003217, allocations: 3.938 kB / 443.4 MB, free: 4.551 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.711e-06/0.003222, allocations: 0 / 443.4 MB, free: 4.551 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:232:3-298: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.001018/0.00424, allocations: 94.19 kB / 443.5 MB, free: 4.461 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.255e-05/0.004293, allocations: 0 / 443.5 MB, free: 4.461 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.52e-05/0.004348, allocations: 7.984 kB / 443.5 MB, free: 4.453 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.875e-05/0.004377, allocations: 0 / 443.5 MB, free: 4.453 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.462e-05/0.004401, allocations: 3.984 kB / 443.5 MB, free: 4.449 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.845e-06/0.004409, allocations: 0 / 443.5 MB, free: 4.449 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002808/0.00469, allocations: 111.8 kB / 443.6 MB, free: 4.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.387e-06/0.004699, allocations: 0 / 443.6 MB, free: 4.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.946e-05/0.004719, allocations: 0 / 443.6 MB, free: 4.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002884/0.005007, allocations: 107.7 kB / 443.7 MB, free: 4.234 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.00501, allocations: 7.938 kB / 443.7 MB, free: 4.227 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.005011, allocations: 0 / 443.7 MB, free: 4.227 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.005015, allocations: 0 / 443.7 MB, free: 4.227 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.0004369/0.005452, allocations: 284 kB / 444 MB, free: 3.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.005493, allocations: 8.031 kB / 444 MB, free: 3.902 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.682e-05/0.005529, allocations: 0.9375 kB / 444 MB, free: 3.902 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.005636, allocations: 109.8 kB / 444.1 MB, free: 3.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.005649, allocations: 4.375 kB / 444.1 MB, free: 3.766 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.985e-06/0.005657, allocations: 384 / 444.1 MB, free: 3.766 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001223/0.005779, allocations: 63.91 kB / 444.2 MB, free: 3.691 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.005789, allocations: 192 / 444.2 MB, free: 3.691 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.715e-06/0.005796, allocations: 384 / 444.2 MB, free: 3.691 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.005801, allocations: 384 / 444.2 MB, free: 3.691 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.049e-05/0.005842, allocations: 29.64 kB / 444.2 MB, free: 3.656 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001448/0.005987, allocations: 101.3 kB / 444.3 MB, free: 3.527 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.796e-05/0.006065, allocations: 40.38 kB / 444.4 MB, free: 3.473 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.004e-05/0.006105, allocations: 38.5 kB / 444.4 MB, free: 3.426 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.05e-06/0.00611, allocations: 7.938 kB / 444.4 MB, free: 3.418 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.443e-05/0.006184, allocations: 64.27 kB / 444.5 MB, free: 3.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.173e-06/0.006185, allocations: 0 / 444.5 MB, free: 3.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002459/0.006431, allocations: 118.8 kB / 444.6 MB, free: 3.199 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.884e-05/0.00651, allocations: 77.11 kB / 444.7 MB, free: 3.105 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.076e-05/0.006571, allocations: 89.86 kB / 444.8 MB, free: 3.008 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.006591, allocations: 25.7 kB / 444.8 MB, free: 2.977 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.382e-05/0.006635, allocations: 84.14 kB / 444.9 MB, free: 2.891 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.564e-05/0.006661, allocations: 3.953 kB / 444.9 MB, free: 2.887 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.32e-05/0.006704, allocations: 13.72 kB / 444.9 MB, free: 2.867 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.006875, allocations: 322.9 kB / 445.2 MB, free: 2.543 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.206e-05/0.006907, allocations: 29.7 kB / 445.2 MB, free: 2.508 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.563e-05/0.006933, allocations: 29.64 kB / 445.3 MB, free: 2.473 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.309e-05/0.007006, allocations: 64.27 kB / 445.3 MB, free: 2.395 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.007008, allocations: 0 / 445.3 MB, free: 2.395 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000117/0.007125, allocations: 89.09 kB / 445.4 MB, free: 2.289 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.933e-05/0.007164, allocations: 29.7 kB / 445.4 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.00717, allocations: 0 / 445.4 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.007186, allocations: 0 / 445.4 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.007187, allocations: 4.094 kB / 445.4 MB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.948e-06/0.007197, allocations: 7.984 kB / 445.4 MB, free: 2.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.004e-05/0.007217, allocations: 3.938 kB / 445.4 MB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-06/0.007224, allocations: 0 / 445.4 MB, free: 2.238 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.0001213/0.007345, allocations: 139.5 kB / 445.6 MB, free: 2.086 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.839e-06/0.007355, allocations: 0 / 445.6 MB, free: 2.086 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.517e-05/0.00737, allocations: 14.86 kB / 445.6 MB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.007371, allocations: 0 / 445.6 MB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.007376, allocations: 0 / 445.6 MB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.007378, allocations: 0 / 445.6 MB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000112/0.00749, allocations: 101.3 kB / 445.7 MB, free: 1.941 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.007491, allocations: 4 kB / 445.7 MB, free: 1.938 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.007492, allocations: 0 / 445.7 MB, free: 1.938 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.007493, allocations: 0 / 445.7 MB, free: 1.938 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.007505, allocations: 3.984 kB / 445.7 MB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.007506, allocations: 0 / 445.7 MB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.007507, allocations: 3.938 kB / 445.7 MB, free: 1.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002356/0.007743, allocations: 120.5 kB / 445.8 MB, free: 1.781 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.094e-06/0.00775, allocations: 7.984 kB / 445.8 MB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.32e-05/0.007763, allocations: 3.984 kB / 445.8 MB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.436e-06/0.007771, allocations: 0 / 445.8 MB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.09e-05/0.007782, allocations: 4.031 kB / 445.8 MB, free: 1.766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.007787, allocations: 4 kB / 445.8 MB, free: 1.762 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.256e-05/0.00783, allocations: 75.28 kB / 445.9 MB, free: 1.688 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.00783, allocations: 0 / 445.9 MB, free: 1.688 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003023/0.008132, allocations: 39.81 kB / 446 MB, free: 1.648 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.0006912/0.008823, allocations: 284.3 kB / 446.2 MB, free: 1.406 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001462/0.008969, allocations: 114.8 kB / 446.3 MB, free: 1.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.008971, allocations: 0 / 446.3 MB, free: 1.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.562e-05/0.009027, allocations: 81.11 kB / 446.4 MB, free: 1.172 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001356/0.009163, allocations: 4 kB / 446.4 MB, free: 1.168 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002133/0.009376, allocations: 102.6 kB / 446.5 MB, free: 1.035 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.62e-05/0.009432, allocations: 55.34 kB / 446.6 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.628e-06/0.009437, allocations: 4 kB / 446.6 MB, free: 0.957 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.205e-05/0.009449, allocations: 12.62 kB / 446.6 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.009449, allocations: 0 / 446.6 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of Templates: time 0.1719/0.1813, allocations: 0.9964 MB / 447.6 MB, free: 19.12 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.794123243540525]