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.002023/0.002023, allocations: 79.73 kB / 21.25 MB, free: 0.5391 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.002203/0.002203, allocations: 161.1 kB / 24.5 MB, free: 3.715 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.503/1.503, allocations: 177.1 MB / 204.7 MB, free: 8.98 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.2124/0.2124, allocations: 34.25 MB / 295.4 MB, free: 14.48 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 0.002454/0.002454, allocations: 79.88 kB / 443.1 MB, free: 6.516 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3011/0.3035, allocations: 66.04 MB / 0.4972 GB, free: 29.8 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001512/0.305, allocations: 0.4993 MB / 0.4977 GB, free: 29.51 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006178/0.3056, allocations: 305 kB / 0.498 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.722e-05/0.3057, allocations: 0 / 0.498 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.275e-05/0.3057, allocations: 0 / 0.498 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 6.142e-06/0.3057, allocations: 0 / 0.498 GB, free: 29.34 MB / 446.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.0007894/0.3065, allocations: 94.36 kB / 0.4981 GB, free: 29.3 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.008e-05/0.3065, allocations: 7.062 kB / 0.4981 GB, free: 29.29 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.16e-05/0.3065, allocations: 0 / 0.4981 GB, free: 29.29 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.203e-05/0.3066, allocations: 3.938 kB / 0.4981 GB, free: 29.29 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.096e-05/0.3066, allocations: 3.156 kB / 0.4981 GB, free: 29.29 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.252e-06/0.3066, allocations: 0 / 0.4981 GB, free: 29.29 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001754/0.3068, allocations: 108.2 kB / 0.4982 GB, free: 29.25 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.683e-06/0.3068, allocations: 0 / 0.4982 GB, free: 29.25 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.721e-05/0.3068, allocations: 3.188 kB / 0.4982 GB, free: 29.25 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001648/0.307, allocations: 90.36 kB / 0.4983 GB, free: 29.23 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.307, allocations: 0 / 0.4983 GB, free: 29.23 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.307, allocations: 0 / 0.4983 GB, free: 29.23 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.307, allocations: 4 kB / 0.4983 GB, free: 29.22 MB / 446.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.0002287/0.3072, allocations: 287.8 kB / 0.4986 GB, free: 28.92 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.981e-05/0.3072, allocations: 9.094 kB / 0.4986 GB, free: 28.92 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.381e-05/0.3073, allocations: 0.9375 kB / 0.4986 GB, free: 28.92 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.074e-05/0.3073, allocations: 102.5 kB / 0.4987 GB, free: 28.8 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.3073, allocations: 7.391 kB / 0.4987 GB, free: 28.79 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.901e-06/0.3073, allocations: 384 / 0.4987 GB, free: 28.79 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.135e-05/0.3074, allocations: 62.52 kB / 0.4988 GB, free: 28.73 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.3074, allocations: 192 / 0.4988 GB, free: 28.73 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-06/0.3074, allocations: 3.938 kB / 0.4988 GB, free: 28.72 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.3074, allocations: 4 kB / 0.4988 GB, free: 28.72 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.954e-05/0.3074, allocations: 29.14 kB / 0.4988 GB, free: 28.69 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.853e-05/0.3075, allocations: 97.33 kB / 0.4989 GB, free: 28.56 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.779e-05/0.3075, allocations: 46.98 kB / 0.4989 GB, free: 28.51 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.534e-05/0.3075, allocations: 33.22 kB / 0.499 GB, free: 28.47 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.585e-06/0.3076, allocations: 3.938 kB / 0.499 GB, free: 28.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.3076, allocations: 59.27 kB / 0.499 GB, free: 28.39 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.3076, allocations: 0 / 0.499 GB, free: 28.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001338/0.3077, allocations: 120.8 kB / 0.4991 GB, free: 28.26 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.696e-05/0.3077, allocations: 80.33 kB / 0.4992 GB, free: 28.17 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.132e-05/0.3078, allocations: 97.94 kB / 0.4993 GB, free: 28.06 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.26e-06/0.3078, allocations: 25.7 kB / 0.4993 GB, free: 28.03 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.568e-06/0.3078, allocations: 80.14 kB / 0.4994 GB, free: 27.95 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.599e-05/0.3078, allocations: 3.984 kB / 0.4994 GB, free: 27.95 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.33e-05/0.3078, allocations: 16.97 kB / 0.4994 GB, free: 27.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.918e-05/0.3079, allocations: 310.8 kB / 0.4997 GB, free: 27.61 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.573e-05/0.3079, allocations: 32.38 kB / 0.4998 GB, free: 27.58 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.027e-06/0.3079, allocations: 29.64 kB / 0.4998 GB, free: 27.55 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.861e-05/0.3079, allocations: 59.55 kB / 0.4998 GB, free: 27.48 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.3079, allocations: 8 kB / 0.4999 GB, free: 27.47 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.234e-05/0.308, allocations: 98.34 kB / 0.5 GB, free: 27.37 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.308, allocations: 29.14 kB / 0.5 GB, free: 27.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.526e-06/0.308, allocations: 0 / 0.5 GB, free: 27.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.308, allocations: 0 / 0.5 GB, free: 27.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.308, allocations: 7.219 kB / 0.5 GB, free: 27.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.117e-06/0.308, allocations: 0 / 0.5 GB, free: 27.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.346e-05/0.308, allocations: 0 / 0.5 GB, free: 27.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.089e-06/0.308, allocations: 0 / 0.5 GB, free: 27.33 MB / 446.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 4.121e-05/0.3081, allocations: 138.2 kB / 0.5001 GB, free: 27.19 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-06/0.3081, allocations: 7.969 kB / 0.5001 GB, free: 27.18 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.064e-06/0.3081, allocations: 6.938 kB / 0.5001 GB, free: 27.17 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.3081, allocations: 7.156 kB / 0.5001 GB, free: 27.17 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3081, allocations: 0 / 0.5001 GB, free: 27.17 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-06/0.3081, allocations: 0 / 0.5001 GB, free: 27.17 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.288e-05/0.3081, allocations: 97.33 kB / 0.5002 GB, free: 27.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.3081, allocations: 3.312 kB / 0.5002 GB, free: 27.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.3081, allocations: 3.422 kB / 0.5002 GB, free: 27.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.3081, allocations: 0 / 0.5002 GB, free: 27.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.741e-06/0.3081, allocations: 0 / 0.5002 GB, free: 27.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.3081, allocations: 0 / 0.5002 GB, free: 27.04 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3081, allocations: 7.938 kB / 0.5002 GB, free: 27.04 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.406e-05/0.3082, allocations: 117.1 kB / 0.5004 GB, free: 26.91 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.607e-06/0.3082, allocations: 0 / 0.5004 GB, free: 26.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.032e-05/0.3082, allocations: 3.25 kB / 0.5004 GB, free: 26.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.316e-06/0.3082, allocations: 0 / 0.5004 GB, free: 26.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-06/0.3082, allocations: 3.938 kB / 0.5004 GB, free: 26.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-06/0.3082, allocations: 3.031 kB / 0.5004 GB, free: 26.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.859e-06/0.3082, allocations: 75.28 kB / 0.5004 GB, free: 26.83 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3082, allocations: 0 / 0.5004 GB, free: 26.83 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002268/0.3085, allocations: 41.33 kB / 0.5005 GB, free: 26.81 MB / 446.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.0005436/0.309, allocations: 278.3 kB / 0.5007 GB, free: 26.65 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.289e-05/0.3091, allocations: 120.4 kB / 0.5009 GB, free: 26.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.3091, allocations: 0 / 0.5009 GB, free: 26.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.049e-05/0.3091, allocations: 80.45 kB / 0.5009 GB, free: 26.42 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001178/0.3092, allocations: 7.312 kB / 0.5009 GB, free: 26.42 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001466/0.3094, allocations: 114.3 kB / 0.5011 GB, free: 26.29 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.305e-05/0.3094, allocations: 54.52 kB / 0.5011 GB, free: 26.21 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.599e-06/0.3094, allocations: 0 / 0.5011 GB, free: 26.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.177e-06/0.3094, allocations: 11.59 kB / 0.5011 GB, free: 26.2 MB / 446.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3094, allocations: 0 / 0.5011 GB, free: 26.2 MB / 446.1 MB Notification: Performance of Templates: time 0.003334/0.3128, allocations: 0.9883 MB / 0.5021 GB, free: 26.05 MB / 446.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 -s ida -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/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_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.831345485989004]