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.001718/0.001718, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 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.001944/0.001944, allocations: 169.2 kB / 24.5 MB, free: 3.453 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.515/1.515, allocations: 177.2 MB / 204.9 MB, free: 9.07 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.2229/0.2229, allocations: 34.27 MB / 295.5 MB, free: 14.62 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.002108/0.002108, allocations: 63.89 kB / 443.1 MB, free: 6.766 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.317/0.3191, allocations: 66.01 MB / 0.4972 GB, free: 29.86 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00155/0.3207, allocations: 491.6 kB / 0.4977 GB, free: 29.57 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006109/0.3213, allocations: 316 kB / 0.498 GB, free: 29.39 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.751e-05/0.3213, allocations: 0 / 0.498 GB, free: 29.39 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.139e-05/0.3213, allocations: 4 kB / 0.498 GB, free: 29.39 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.631e-06/0.3213, allocations: 0 / 0.498 GB, free: 29.39 MB / 446.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.000852/0.3222, allocations: 90.52 kB / 0.4981 GB, free: 29.35 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.542e-05/0.3222, allocations: 4 kB / 0.4981 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.835e-05/0.3223, allocations: 2.938 kB / 0.4981 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.029e-05/0.3223, allocations: 3.984 kB / 0.4981 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.928e-05/0.3223, allocations: 0 / 0.4981 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.831e-06/0.3223, allocations: 3 kB / 0.4981 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002047/0.3225, allocations: 106.6 kB / 0.4982 GB, free: 29.31 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.147e-06/0.3225, allocations: 0 / 0.4982 GB, free: 29.31 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.921e-05/0.3225, allocations: 3.938 kB / 0.4982 GB, free: 29.3 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001918/0.3227, allocations: 94.22 kB / 0.4983 GB, free: 29.27 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3227, allocations: 0 / 0.4983 GB, free: 29.27 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3227, allocations: 0 / 0.4983 GB, free: 29.27 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.3228, allocations: 0 / 0.4983 GB, free: 29.27 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.0002472/0.323, allocations: 280 kB / 0.4985 GB, free: 28.98 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.118e-05/0.323, allocations: 9.531 kB / 0.4985 GB, free: 28.98 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.469e-05/0.3231, allocations: 0.9375 kB / 0.4985 GB, free: 28.98 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.344e-05/0.3231, allocations: 114 kB / 0.4987 GB, free: 28.85 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.3231, allocations: 7.375 kB / 0.4987 GB, free: 28.84 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.885e-06/0.3231, allocations: 384 / 0.4987 GB, free: 28.84 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.808e-05/0.3232, allocations: 58.91 kB / 0.4987 GB, free: 28.78 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.3232, allocations: 192 / 0.4987 GB, free: 28.78 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.744e-06/0.3232, allocations: 3.938 kB / 0.4987 GB, free: 28.77 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.3232, allocations: 0 / 0.4987 GB, free: 28.77 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.25e-05/0.3233, allocations: 28.77 kB / 0.4988 GB, free: 28.74 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.887e-05/0.3233, allocations: 96.61 kB / 0.4988 GB, free: 28.62 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.055e-05/0.3234, allocations: 51.44 kB / 0.4989 GB, free: 28.56 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.58e-05/0.3234, allocations: 34.06 kB / 0.4989 GB, free: 28.52 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.406e-06/0.3234, allocations: 0 / 0.4989 GB, free: 28.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.3234, allocations: 56.27 kB / 0.499 GB, free: 28.45 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.3234, allocations: 0 / 0.499 GB, free: 28.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.00015/0.3236, allocations: 127.8 kB / 0.4991 GB, free: 28.31 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.284e-05/0.3236, allocations: 77.11 kB / 0.4992 GB, free: 28.22 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.937e-05/0.3236, allocations: 93.81 kB / 0.4993 GB, free: 28.12 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.064e-06/0.3236, allocations: 33.02 kB / 0.4993 GB, free: 28.08 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.448e-06/0.3236, allocations: 83.47 kB / 0.4994 GB, free: 28 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.424e-05/0.3237, allocations: 3.938 kB / 0.4994 GB, free: 28 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.362e-05/0.3237, allocations: 13 kB / 0.4994 GB, free: 27.98 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.871e-05/0.3237, allocations: 314.8 kB / 0.4997 GB, free: 27.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.357e-05/0.3237, allocations: 25.7 kB / 0.4997 GB, free: 27.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.658e-06/0.3237, allocations: 29.23 kB / 0.4997 GB, free: 27.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.923e-05/0.3238, allocations: 67.03 kB / 0.4998 GB, free: 27.53 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3238, allocations: 0 / 0.4998 GB, free: 27.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.481e-05/0.3238, allocations: 87.64 kB / 0.4999 GB, free: 27.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.3239, allocations: 32.14 kB / 0.4999 GB, free: 27.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.3239, allocations: 0 / 0.4999 GB, free: 27.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.3239, allocations: 7.5 kB / 0.4999 GB, free: 27.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.303e-06/0.3239, allocations: 3.938 kB / 0.4999 GB, free: 27.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.3239, allocations: 3.938 kB / 0.4999 GB, free: 27.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.654e-05/0.3239, allocations: 3.188 kB / 0.4999 GB, free: 27.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.3239, allocations: 4.031 kB / 0.4999 GB, free: 27.38 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.302e-05/0.3239, allocations: 134.7 kB / 0.5001 GB, free: 27.24 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.524e-06/0.324, allocations: 0 / 0.5001 GB, free: 27.24 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.416e-06/0.324, allocations: 3 kB / 0.5001 GB, free: 27.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.324, allocations: 7.875 kB / 0.5001 GB, free: 27.23 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.324, allocations: 0 / 0.5001 GB, free: 27.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-06/0.324, allocations: 6.719 kB / 0.5001 GB, free: 27.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.88e-05/0.324, allocations: 97.33 kB / 0.5002 GB, free: 27.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.324, allocations: 0 / 0.5002 GB, free: 27.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.324, allocations: 0 / 0.5002 GB, free: 27.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.324, allocations: 7.188 kB / 0.5002 GB, free: 27.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.58e-06/0.324, allocations: 0 / 0.5002 GB, free: 27.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.324, allocations: 0 / 0.5002 GB, free: 27.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.324, allocations: 7.922 kB / 0.5002 GB, free: 27.09 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.305e-05/0.3241, allocations: 120.7 kB / 0.5003 GB, free: 26.96 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.627e-06/0.3241, allocations: 0 / 0.5003 GB, free: 26.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.17e-05/0.3241, allocations: 6.734 kB / 0.5003 GB, free: 26.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.197e-06/0.3241, allocations: 0 / 0.5003 GB, free: 26.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.518e-05/0.3241, allocations: 7.875 kB / 0.5003 GB, free: 26.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.3241, allocations: 0 / 0.5003 GB, free: 26.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.119e-05/0.3241, allocations: 78.53 kB / 0.5004 GB, free: 26.88 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3241, allocations: 4.031 kB / 0.5004 GB, free: 26.87 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002375/0.3244, allocations: 30.31 kB / 0.5004 GB, free: 26.86 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.0005707/0.325, allocations: 268.2 kB / 0.5007 GB, free: 26.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.677e-05/0.325, allocations: 120.7 kB / 0.5008 GB, free: 26.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.325, allocations: 0 / 0.5008 GB, free: 26.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.056e-05/0.3251, allocations: 84.27 kB / 0.5009 GB, free: 26.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001206/0.3252, allocations: 10.69 kB / 0.5009 GB, free: 26.49 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001522/0.3253, allocations: 110.9 kB / 0.501 GB, free: 26.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.532e-05/0.3254, allocations: 54.36 kB / 0.5011 GB, free: 26.29 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.039e-06/0.3254, allocations: 3.938 kB / 0.5011 GB, free: 26.29 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.054e-05/0.3254, allocations: 15.72 kB / 0.5011 GB, free: 26.27 MB / 446.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3254, allocations: 0 / 0.5011 GB, free: 26.27 MB / 446.1 MB Notification: Performance of Templates: time 0.003556/0.3289, allocations: 0.9896 MB / 0.502 GB, free: 26.12 MB / 446.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 ida -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.911345947999507]