Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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: 75.73 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.001617/0.001617, allocations: 170.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.487/1.487, allocations: 177.2 MB / 204.9 MB, free: 9.043 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2025/0.2025, allocations: 32.8 MB / 294.1 MB, free: 52 kB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002135/0.002135, allocations: 63.91 kB / 440.5 MB, free: 9.52 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3315, allocations: 65.44 MB / 0.4941 GB, free: 31.41 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001421/0.3329, allocations: 499.4 kB / 0.4946 GB, free: 31.12 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006508/0.3336, allocations: 310.8 kB / 0.4949 GB, free: 30.94 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.379e-05/0.3336, allocations: 3.125 kB / 0.4949 GB, free: 30.94 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.181e-05/0.3336, allocations: 0 / 0.4949 GB, free: 30.94 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.368e-06/0.3336, allocations: 0 / 0.4949 GB, free: 30.94 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:222:3-288: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.0007936/0.3344, allocations: 93.5 kB / 0.495 GB, free: 30.9 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.487e-05/0.3344, allocations: 7.938 kB / 0.495 GB, free: 30.89 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.935e-05/0.3345, allocations: 7.25 kB / 0.495 GB, free: 30.89 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.463e-05/0.3345, allocations: 7.172 kB / 0.495 GB, free: 30.89 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.831e-05/0.3345, allocations: 0 / 0.495 GB, free: 30.89 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.911e-06/0.3345, allocations: 0 / 0.495 GB, free: 30.89 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001641/0.3347, allocations: 110.1 kB / 0.4951 GB, free: 30.85 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.264e-06/0.3347, allocations: 3.281 kB / 0.4951 GB, free: 30.85 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.98e-05/0.3347, allocations: 0 / 0.4951 GB, free: 30.85 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001805/0.3349, allocations: 88.69 kB / 0.4952 GB, free: 30.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3349, allocations: 0 / 0.4952 GB, free: 30.82 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3349, allocations: 0 / 0.4952 GB, free: 30.82 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.3349, allocations: 0 / 0.4952 GB, free: 30.82 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.0002507/0.3351, allocations: 287.8 kB / 0.4955 GB, free: 30.52 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.3352, allocations: 10 kB / 0.4955 GB, free: 30.52 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.564e-05/0.3352, allocations: 4.938 kB / 0.4955 GB, free: 30.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.342e-05/0.3353, allocations: 102.5 kB / 0.4956 GB, free: 30.39 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.3353, allocations: 384 / 0.4956 GB, free: 30.39 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.875e-06/0.3353, allocations: 3.531 kB / 0.4956 GB, free: 30.39 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.836e-05/0.3354, allocations: 58.58 kB / 0.4956 GB, free: 30.33 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.3354, allocations: 192 / 0.4956 GB, free: 30.33 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.314e-06/0.3354, allocations: 3.938 kB / 0.4956 GB, free: 30.33 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.3354, allocations: 0 / 0.4956 GB, free: 30.33 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.132e-05/0.3354, allocations: 36.92 kB / 0.4957 GB, free: 30.29 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.156e-05/0.3355, allocations: 93.33 kB / 0.4958 GB, free: 30.17 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.12e-05/0.3355, allocations: 50.98 kB / 0.4958 GB, free: 30.11 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.626e-05/0.3355, allocations: 30.56 kB / 0.4958 GB, free: 30.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.817e-06/0.3355, allocations: 7.25 kB / 0.4959 GB, free: 30.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.081e-05/0.3356, allocations: 56.27 kB / 0.4959 GB, free: 30 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.3356, allocations: 0 / 0.4959 GB, free: 30 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001585/0.3357, allocations: 127.9 kB / 0.496 GB, free: 29.86 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.3358, allocations: 77.11 kB / 0.4961 GB, free: 29.77 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.195e-05/0.3358, allocations: 93.94 kB / 0.4962 GB, free: 29.66 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.174e-06/0.3358, allocations: 29.7 kB / 0.4962 GB, free: 29.63 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.037e-05/0.3358, allocations: 80.14 kB / 0.4963 GB, free: 29.55 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.84e-05/0.3358, allocations: 3.219 kB / 0.4963 GB, free: 29.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.103e-05/0.3358, allocations: 9.719 kB / 0.4963 GB, free: 29.53 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.6e-05/0.3359, allocations: 321.5 kB / 0.4966 GB, free: 29.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.412e-05/0.3359, allocations: 29.64 kB / 0.4966 GB, free: 29.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.099e-05/0.3359, allocations: 28.92 kB / 0.4967 GB, free: 29.15 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.959e-05/0.3359, allocations: 59.7 kB / 0.4967 GB, free: 29.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3359, allocations: 0 / 0.4967 GB, free: 29.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.771e-05/0.336, allocations: 99.34 kB / 0.4968 GB, free: 28.97 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.336, allocations: 32.36 kB / 0.4969 GB, free: 28.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.336, allocations: 0 / 0.4969 GB, free: 28.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.336, allocations: 0 / 0.4969 GB, free: 28.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.605e-06/0.336, allocations: 3.938 kB / 0.4969 GB, free: 28.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.3361, allocations: 0 / 0.4969 GB, free: 28.94 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.458e-05/0.3361, allocations: 0 / 0.4969 GB, free: 28.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.3361, allocations: 3.062 kB / 0.4969 GB, free: 28.94 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.764e-05/0.3361, allocations: 135.1 kB / 0.497 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.622e-06/0.3361, allocations: 3.031 kB / 0.497 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.037e-06/0.3361, allocations: 7.031 kB / 0.497 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.3361, allocations: 7.938 kB / 0.497 GB, free: 28.78 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3361, allocations: 0 / 0.497 GB, free: 28.78 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.3361, allocations: 0 / 0.497 GB, free: 28.78 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.895e-05/0.3362, allocations: 99.67 kB / 0.4971 GB, free: 28.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.3362, allocations: 0 / 0.4971 GB, free: 28.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.3362, allocations: 0 / 0.4971 GB, free: 28.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.81e-07/0.3362, allocations: 0 / 0.4971 GB, free: 28.66 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.992e-06/0.3362, allocations: 2.812 kB / 0.4971 GB, free: 28.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.3362, allocations: 0 / 0.4971 GB, free: 28.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3362, allocations: 3.938 kB / 0.4971 GB, free: 28.65 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.782e-05/0.3363, allocations: 127.5 kB / 0.4972 GB, free: 28.51 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.739e-06/0.3363, allocations: 2.938 kB / 0.4972 GB, free: 28.51 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.005e-05/0.3363, allocations: 0 / 0.4972 GB, free: 28.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.776e-06/0.3363, allocations: 3.984 kB / 0.4972 GB, free: 28.51 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.116e-05/0.3363, allocations: 6.938 kB / 0.4972 GB, free: 28.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-06/0.3363, allocations: 0 / 0.4972 GB, free: 28.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.205e-05/0.3363, allocations: 79.22 kB / 0.4973 GB, free: 28.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3363, allocations: 0 / 0.4973 GB, free: 28.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.3365, allocations: 40.06 kB / 0.4974 GB, free: 28.41 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.0005317/0.3371, allocations: 267.4 kB / 0.4976 GB, free: 28.28 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.517e-05/0.3372, allocations: 116.4 kB / 0.4977 GB, free: 28.15 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3372, allocations: 3.938 kB / 0.4977 GB, free: 28.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.132e-05/0.3372, allocations: 84.14 kB / 0.4978 GB, free: 28.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001163/0.3373, allocations: 11.19 kB / 0.4978 GB, free: 28.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001448/0.3374, allocations: 109.8 kB / 0.4979 GB, free: 27.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.458e-05/0.3375, allocations: 54.52 kB / 0.498 GB, free: 27.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.06e-06/0.3375, allocations: 0 / 0.498 GB, free: 27.84 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.118e-05/0.3375, allocations: 11.88 kB / 0.498 GB, free: 27.83 MB / 446.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3375, allocations: 0 / 0.498 GB, free: 27.83 MB / 446.1 MB Notification: Performance of Templates: time 0.003539/0.341, allocations: 0.9938 MB / 0.499 GB, free: 27.68 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.887056851992384]