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.001778/0.001778, allocations: 110.4 kB / 21.19 MB, free: 0.6641 MB / 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.002206/0.002206, allocations: 208.7 kB / 24.49 MB, free: 3.965 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.507/1.507, allocations: 230.6 MB / 258.3 MB, free: 7.801 MB / 206.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.2282/0.2282, allocations: 46.96 MB / 361.6 MB, free: 4.051 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.001905/0.001905, allocations: 67.84 kB / 0.4973 GB, free: 7.258 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3273, allocations: 66.03 MB / 0.5618 GB, free: 4.188 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002448/0.3298, allocations: 497 kB / 0.5623 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.3309, allocations: 301.5 kB / 0.5626 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.816e-05/0.3309, allocations: 0 / 0.5626 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.864e-05/0.331, allocations: 0 / 0.5626 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.472e-06/0.331, allocations: 0 / 0.5626 GB, free: 3.406 MB / 398.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.001178/0.3321, allocations: 97.47 kB / 0.5627 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.473e-05/0.3322, allocations: 3.984 kB / 0.5627 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.294e-05/0.3322, allocations: 4 kB / 0.5627 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.823e-05/0.3323, allocations: 7.938 kB / 0.5627 GB, free: 3.301 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.159e-05/0.3323, allocations: 0 / 0.5627 GB, free: 3.301 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.645e-06/0.3323, allocations: 0 / 0.5627 GB, free: 3.301 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000296/0.3326, allocations: 115.9 kB / 0.5628 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.346e-06/0.3326, allocations: 0 / 0.5628 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.346e-05/0.3326, allocations: 0 / 0.5628 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002617/0.3329, allocations: 87.61 kB / 0.5629 GB, free: 3.105 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.3329, allocations: 3.938 kB / 0.5629 GB, free: 3.102 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.3329, allocations: 0 / 0.5629 GB, free: 3.102 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.3329, allocations: 0 / 0.5629 GB, free: 3.102 MB / 398.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.0004442/0.3333, allocations: 290.5 kB / 0.5631 GB, free: 2.785 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.3334, allocations: 16.03 kB / 0.5632 GB, free: 2.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.758e-05/0.3334, allocations: 0.9375 kB / 0.5632 GB, free: 2.77 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.3335, allocations: 102.5 kB / 0.5633 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.857e-06/0.3335, allocations: 384 / 0.5633 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.349e-05/0.3335, allocations: 384 / 0.5633 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001207/0.3337, allocations: 59.95 kB / 0.5633 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.3337, allocations: 192 / 0.5633 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.3337, allocations: 3.938 kB / 0.5633 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.84e-06/0.3337, allocations: 0 / 0.5633 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.432e-05/0.3337, allocations: 33.7 kB / 0.5633 GB, free: 2.531 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001488/0.3339, allocations: 97.33 kB / 0.5634 GB, free: 2.406 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.258e-05/0.334, allocations: 48.25 kB / 0.5635 GB, free: 2.344 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.395e-05/0.334, allocations: 34.55 kB / 0.5635 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.219e-06/0.334, allocations: 0 / 0.5635 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.265e-05/0.3341, allocations: 64.33 kB / 0.5636 GB, free: 2.223 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.433e-06/0.3341, allocations: 0 / 0.5636 GB, free: 2.223 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002681/0.3343, allocations: 126.7 kB / 0.5637 GB, free: 2.074 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.942e-05/0.3344, allocations: 77.11 kB / 0.5638 GB, free: 1.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.976e-05/0.3345, allocations: 93.81 kB / 0.5639 GB, free: 1.879 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.3345, allocations: 25.7 kB / 0.5639 GB, free: 1.848 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.639e-05/0.3345, allocations: 92.27 kB / 0.564 GB, free: 1.754 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.286e-05/0.3346, allocations: 0 / 0.564 GB, free: 1.754 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.936e-05/0.3346, allocations: 9.719 kB / 0.564 GB, free: 1.738 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.3348, allocations: 314.8 kB / 0.5643 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.222e-05/0.3348, allocations: 25.7 kB / 0.5643 GB, free: 1.391 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.509e-05/0.3348, allocations: 25.7 kB / 0.5643 GB, free: 1.359 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.383e-05/0.3349, allocations: 72.25 kB / 0.5644 GB, free: 1.273 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3349, allocations: 0 / 0.5644 GB, free: 1.273 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001352/0.3351, allocations: 92.98 kB / 0.5645 GB, free: 1.164 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.976e-05/0.3351, allocations: 37.8 kB / 0.5645 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.3351, allocations: 3.984 kB / 0.5645 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.3351, allocations: 0 / 0.5645 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.3351, allocations: 0 / 0.5645 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.3351, allocations: 3.938 kB / 0.5645 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.833e-05/0.3351, allocations: 0 / 0.5645 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.3352, allocations: 0 / 0.5645 GB, free: 1.113 MB / 398.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 0.0001233/0.3353, allocations: 139.5 kB / 0.5647 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.178e-05/0.3353, allocations: 3.938 kB / 0.5647 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.355e-05/0.3353, allocations: 3 kB / 0.5647 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.3353, allocations: 4 kB / 0.5647 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.3353, allocations: 7.938 kB / 0.5647 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.457e-06/0.3353, allocations: 3.984 kB / 0.5647 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.3353, allocations: 0 / 0.5647 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.335e-05/0.3353, allocations: 0 / 0.5647 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.427e-05/0.3354, allocations: 4 kB / 0.5647 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001957/0.3356, allocations: 227.7 kB / 0.5649 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000235/0.3358, allocations: 262.2 kB / 0.5652 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.535e-05/0.3358, allocations: 33.69 kB / 0.5652 GB, free: 364 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.287e-05/0.3359, allocations: 75.28 kB / 0.5653 GB, free: 288 kB / 398.1 MB Notification: Performance of Backend: time 3.3e-07/0.3359, allocations: 4.062 kB / 0.5653 GB, free: 284 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00133/0.3372, allocations: 339.4 kB / 0.5656 GB, free: 15.98 MB / 414.1 MB Notification: Performance of SimCode: time 0.0005364/0.3377, allocations: 0.5756 MB / 0.5662 GB, free: 15.35 MB / 414.1 MB Notification: Performance of Templates: time 0.005751/0.3435, allocations: 1.015 MB / 0.5671 GB, free: 14.34 MB / 414.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 -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.983163049000723]