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.001016/0.001016, allocations: 76.41 kB / 22.21 MB, free: 2.285 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.001222/0.001222, allocations: 173.8 kB / 25.61 MB, free: 8.898 MB / 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 0.9814/0.9814, allocations: 177.1 MB / 206 MB, free: 4.504 MB / 186.7 MB " [Timeout remaining time 179] 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.1614/0.1614, allocations: 34.26 MB / 296.8 MB, free: 13.95 MB / 282.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 2.114e-06/2.114e-06, allocations: 0 / 379.3 MB, free: 23.47 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.317e-05/3.529e-05, allocations: 6.25 kB / 379.3 MB, free: 23.46 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00181/0.001845, allocations: 489 kB / 379.7 MB, free: 22.98 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006503/0.002495, allocations: 307.2 kB / 380 MB, free: 22.68 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.754e-05/0.002523, allocations: 0 / 380 MB, free: 22.68 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.874e-05/0.002542, allocations: 0 / 380 MB, free: 22.68 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 6.612e-06/0.002548, allocations: 0 / 380 MB, free: 22.68 MB / 314.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.0009296/0.003478, allocations: 106.7 kB / 380.1 MB, free: 22.59 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 5.783e-05/0.003536, allocations: 4 kB / 380.1 MB, free: 22.58 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.187e-05/0.003577, allocations: 7.938 kB / 380.2 MB, free: 22.57 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.827e-05/0.003606, allocations: 0 / 380.2 MB, free: 22.57 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.223e-05/0.003628, allocations: 0 / 380.2 MB, free: 22.57 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.985e-06/0.003636, allocations: 3.984 kB / 380.2 MB, free: 22.57 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.003835, allocations: 111.8 kB / 380.3 MB, free: 22.46 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.756e-06/0.003844, allocations: 0 / 380.3 MB, free: 22.46 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.501e-05/0.003859, allocations: 0 / 380.3 MB, free: 22.46 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002208/0.00408, allocations: 115.6 kB / 380.4 MB, free: 22.35 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.004083, allocations: 0 / 380.4 MB, free: 22.35 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.004085, allocations: 0 / 380.4 MB, free: 22.35 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.538e-06/0.004089, allocations: 4 kB / 380.4 MB, free: 22.34 MB / 314.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.0002574/0.004347, allocations: 389.9 kB / 380.8 MB, free: 21.92 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.004386, allocations: 8.031 kB / 380.8 MB, free: 21.91 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.359e-05/0.00442, allocations: 0.9375 kB / 380.8 MB, free: 21.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.07e-05/0.00447, allocations: 108.6 kB / 380.9 MB, free: 21.78 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.004482, allocations: 384 / 380.9 MB, free: 21.78 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.322e-06/0.004488, allocations: 384 / 380.9 MB, free: 21.78 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.249e-05/0.004561, allocations: 59.95 kB / 380.9 MB, free: 21.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.004568, allocations: 192 / 380.9 MB, free: 21.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.881e-06/0.004574, allocations: 4.312 kB / 380.9 MB, free: 21.7 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.00458, allocations: 4.359 kB / 380.9 MB, free: 21.7 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.452e-05/0.004595, allocations: 37.64 kB / 381 MB, free: 21.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.751e-05/0.004662, allocations: 93.27 kB / 381.1 MB, free: 21.54 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.154e-05/0.004704, allocations: 56.8 kB / 381.1 MB, free: 21.46 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.263e-05/0.004717, allocations: 33.39 kB / 381.2 MB, free: 21.42 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.466e-06/0.00472, allocations: 0 / 381.2 MB, free: 21.42 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.00475, allocations: 71.14 kB / 381.2 MB, free: 21.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 6.71e-07/0.004751, allocations: 0 / 381.2 MB, free: 21.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001537/0.004904, allocations: 114.8 kB / 381.3 MB, free: 21.2 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.924e-05/0.004934, allocations: 77.11 kB / 381.4 MB, free: 21.11 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.51e-05/0.004959, allocations: 154.3 kB / 381.6 MB, free: 20.94 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.959e-06/0.004964, allocations: 25.7 kB / 381.6 MB, free: 20.91 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.32e-05/0.004977, allocations: 126.9 kB / 381.7 MB, free: 20.78 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.626e-05/0.004993, allocations: 4 kB / 381.7 MB, free: 20.78 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.395e-05/0.005017, allocations: 15.38 kB / 381.7 MB, free: 20.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.918e-05/0.005066, allocations: 496.1 kB / 382.2 MB, free: 20.26 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.731e-05/0.005084, allocations: 29.7 kB / 382.2 MB, free: 20.22 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.181e-05/0.005095, allocations: 29.7 kB / 382.3 MB, free: 20.19 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.658e-05/0.005132, allocations: 71.02 kB / 382.3 MB, free: 20.1 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.005134, allocations: 0 / 382.3 MB, free: 20.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.187e-05/0.005196, allocations: 93.16 kB / 382.4 MB, free: 19.99 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.005221, allocations: 29.7 kB / 382.5 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.005225, allocations: 0 / 382.5 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.039e-05/0.005236, allocations: 0 / 382.5 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.104e-06/0.005238, allocations: 4 kB / 382.5 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.966e-06/0.005241, allocations: 3.984 kB / 382.5 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.498e-05/0.005256, allocations: 0 / 382.5 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.024e-06/0.005263, allocations: 0 / 382.5 MB, free: 19.95 MB / 314.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 5.982e-05/0.005323, allocations: 190.2 kB / 382.7 MB, free: 19.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.947e-06/0.005331, allocations: 4.375 kB / 382.7 MB, free: 19.74 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.097e-06/0.005341, allocations: 3 kB / 382.7 MB, free: 19.74 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.005342, allocations: 0 / 382.7 MB, free: 19.74 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.005344, allocations: 0 / 382.7 MB, free: 19.74 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.005348, allocations: 4 kB / 382.7 MB, free: 19.74 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.93e-05/0.005397, allocations: 101.1 kB / 382.8 MB, free: 19.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.005398, allocations: 0 / 382.8 MB, free: 19.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.723e-06/0.0054, allocations: 3.938 kB / 382.8 MB, free: 19.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.005402, allocations: 3.984 kB / 382.8 MB, free: 19.61 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.681e-06/0.005408, allocations: 4 kB / 382.8 MB, free: 19.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.005409, allocations: 4 kB / 382.8 MB, free: 19.6 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.005411, allocations: 4 kB / 382.8 MB, free: 19.59 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.563e-05/0.005506, allocations: 131.7 kB / 382.9 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.272e-06/0.005513, allocations: 0 / 382.9 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.129e-05/0.005524, allocations: 0 / 382.9 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.568e-06/0.005533, allocations: 4 kB / 382.9 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.068e-06/0.005542, allocations: 0 / 382.9 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-06/0.005547, allocations: 3.938 kB / 382.9 MB, free: 19.42 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.648e-05/0.005563, allocations: 119.2 kB / 383 MB, free: 19.3 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005563, allocations: 0 / 383 MB, free: 19.3 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002449/0.005808, allocations: 35.92 kB / 383.1 MB, free: 19.27 MB / 314.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.0006003/0.006409, allocations: 290.6 kB / 383.4 MB, free: 19.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001006/0.006509, allocations: 122.4 kB / 383.5 MB, free: 18.89 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.006511, allocations: 0 / 383.5 MB, free: 18.89 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.328e-05/0.006534, allocations: 92.86 kB / 383.6 MB, free: 18.78 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001224/0.006657, allocations: 9.969 kB / 383.6 MB, free: 18.77 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001632/0.00682, allocations: 111.6 kB / 383.7 MB, free: 18.62 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.117e-05/0.006841, allocations: 55.22 kB / 383.7 MB, free: 18.55 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.382e-06/0.006847, allocations: 4 kB / 383.7 MB, free: 18.55 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.982e-05/0.006877, allocations: 74.2 kB / 383.8 MB, free: 18.47 MB / 314.7 MB Notification: Performance of SimCode: time 7.91e-07/0.006878, allocations: 0 / 383.8 MB, free: 18.47 MB / 314.7 MB Notification: Performance of Templates: time 0.002741/0.009619, allocations: 1.171 MB / 385 MB, free: 17.31 MB / 314.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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1494213668629527]