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.001453/0.001453, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 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.001509/0.001509, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.595/1.595, allocations: 177.1 MB / 204.6 MB, free: 5.586 MB / 186.7 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.3383/0.3383, allocations: 34.25 MB / 295.3 MB, free: 0.6953 MB / 266.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.934e-06/1.934e-06, allocations: 0 / 377.3 MB, free: 2.996 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.038e-05/3.231e-05, allocations: 5.266 kB / 377.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002055/0.002087, allocations: 497 kB / 377.7 MB, free: 2.504 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001238/0.003325, allocations: 299.2 kB / 378 MB, free: 2.211 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.045e-05/0.003346, allocations: 0 / 378 MB, free: 2.211 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.301e-05/0.003359, allocations: 0 / 378 MB, free: 2.211 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.65e-06/0.003364, allocations: 0 / 378 MB, free: 2.211 MB / 346.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.001121/0.004485, allocations: 106.1 kB / 378.1 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.767e-05/0.004533, allocations: 0 / 378.1 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.891e-05/0.004562, allocations: 0 / 378.1 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.063e-05/0.004603, allocations: 7.984 kB / 378.1 MB, free: 2.105 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.442e-05/0.004627, allocations: 7.984 kB / 378.2 MB, free: 2.098 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.875e-06/0.004635, allocations: 0 / 378.2 MB, free: 2.098 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002947/0.00493, allocations: 111.7 kB / 378.3 MB, free: 1.988 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.168e-05/0.004941, allocations: 4 kB / 378.3 MB, free: 1.984 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.403e-05/0.004965, allocations: 0 / 378.3 MB, free: 1.984 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003334/0.005299, allocations: 107.7 kB / 378.4 MB, free: 1.879 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.005302, allocations: 0 / 378.4 MB, free: 1.879 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.005304, allocations: 0 / 378.4 MB, free: 1.879 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.005309, allocations: 0 / 378.4 MB, free: 1.879 MB / 346.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.0005271/0.005836, allocations: 288 kB / 378.7 MB, free: 1.559 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.005883, allocations: 12.03 kB / 378.7 MB, free: 1.547 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.582e-05/0.005928, allocations: 4.938 kB / 378.7 MB, free: 1.543 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.974e-05/0.006028, allocations: 105.8 kB / 378.8 MB, free: 1.414 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.006044, allocations: 8.359 kB / 378.8 MB, free: 1.406 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.083e-06/0.006051, allocations: 384 / 378.8 MB, free: 1.406 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.006187, allocations: 55.97 kB / 378.8 MB, free: 1.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.006196, allocations: 192 / 378.8 MB, free: 1.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.006205, allocations: 384 / 378.8 MB, free: 1.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.00621, allocations: 384 / 378.8 MB, free: 1.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.064e-05/0.006261, allocations: 33.58 kB / 378.9 MB, free: 1.301 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001977/0.006458, allocations: 97.33 kB / 379 MB, free: 1.176 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.992e-05/0.006548, allocations: 48.27 kB / 379 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.034e-05/0.006598, allocations: 38.66 kB / 379.1 MB, free: 1.066 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.006607, allocations: 0 / 379.1 MB, free: 1.066 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.951e-05/0.006677, allocations: 56.27 kB / 379.1 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.006678, allocations: 0 / 379.1 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002866/0.006964, allocations: 126.7 kB / 379.2 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.114e-05/0.007055, allocations: 81.11 kB / 379.3 MB, free: 0.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.408e-05/0.007129, allocations: 89.86 kB / 379.4 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.803e-05/0.007157, allocations: 25.7 kB / 379.4 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.303e-05/0.00721, allocations: 80.14 kB / 379.5 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.9e-05/0.007229, allocations: 4.062 kB / 379.5 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.597e-05/0.007275, allocations: 17.72 kB / 379.5 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002805/0.007556, allocations: 318.8 kB / 379.8 MB, free: 196 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.521e-05/0.007601, allocations: 29.69 kB / 379.9 MB, free: 160 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.706e-05/0.007638, allocations: 29.7 kB / 379.9 MB, free: 124 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001023/0.007741, allocations: 60.27 kB / 379.9 MB, free: 48 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.007743, allocations: 0 / 379.9 MB, free: 48 kB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000187/0.00793, allocations: 93.05 kB / 380 MB, free: 15.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.247e-05/0.007992, allocations: 33.69 kB / 380.1 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.007998, allocations: 96 / 380.1 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.008018, allocations: 4 kB / 380.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.753e-06/0.008019, allocations: 0 / 380.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.008029, allocations: 4 kB / 380.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.436e-05/0.008053, allocations: 3.938 kB / 380.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.008064, allocations: 4 kB / 380.1 MB, free: 15.88 MB / 362.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 0.0001449/0.008209, allocations: 135.5 kB / 380.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.714e-05/0.008226, allocations: 3.953 kB / 380.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.546e-06/0.008235, allocations: 3 kB / 380.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.008242, allocations: 3.984 kB / 380.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.008246, allocations: 0 / 380.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.008249, allocations: 4 kB / 380.2 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001212/0.00837, allocations: 101.3 kB / 380.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.008371, allocations: 0 / 380.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.12e-07/0.008372, allocations: 0 / 380.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.008374, allocations: 0 / 380.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-06/0.008381, allocations: 0 / 380.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.008382, allocations: 4 kB / 380.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.008384, allocations: 0 / 380.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001939/0.008577, allocations: 124.4 kB / 380.5 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.58e-06/0.008583, allocations: 0 / 380.5 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.008598, allocations: 4.031 kB / 380.5 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.759e-05/0.008616, allocations: 7.938 kB / 380.5 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.597e-05/0.008642, allocations: 7.984 kB / 380.5 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-06/0.008645, allocations: 0 / 380.5 MB, free: 15.42 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.464e-05/0.0087, allocations: 75.28 kB / 380.6 MB, free: 15.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.0087, allocations: 0 / 380.6 MB, free: 15.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004295/0.00913, allocations: 27.94 kB / 380.6 MB, free: 15.32 MB / 362.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.00104/0.01017, allocations: 289.6 kB / 380.9 MB, free: 15.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001988/0.01037, allocations: 114.8 kB / 381 MB, free: 14.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.01037, allocations: 0 / 381 MB, free: 14.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.01047, allocations: 89.09 kB / 381.1 MB, free: 14.85 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001467/0.01062, allocations: 2.656 kB / 381.1 MB, free: 14.85 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002663/0.01089, allocations: 111.9 kB / 381.2 MB, free: 14.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.385e-05/0.01095, allocations: 59.47 kB / 381.2 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.101e-06/0.01096, allocations: 4 kB / 381.2 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.546e-05/0.01097, allocations: 8.5 kB / 381.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of SimCode: time 6.31e-07/0.01097, allocations: 0 / 381.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of Templates: time 0.005174/0.01615, allocations: 1.023 MB / 382.3 MB, free: 13.59 MB / 362.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=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.726508735911921]