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.001406/0.001406, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001521/0.001521, allocations: 213 kB / 23.73 MB, free: 4.16 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.538/1.538, allocations: 230.6 MB / 257.5 MB, free: 7.816 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.2273/0.2273, allocations: 46.95 MB / 360.9 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.002031/0.002031, allocations: 71.83 kB / 0.4966 GB, free: 7.242 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3088, allocations: 66.04 MB / 0.5611 GB, free: 4.18 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00174/0.3105, allocations: 479.8 kB / 0.5615 GB, free: 3.711 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008572/0.3114, allocations: 317.3 kB / 0.5618 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.878e-05/0.3114, allocations: 0 / 0.5618 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.105e-05/0.3114, allocations: 0 / 0.5618 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.22e-06/0.3114, allocations: 0 / 0.5618 GB, free: 3.402 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.0008237/0.3122, allocations: 91.7 kB / 0.5619 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.706e-05/0.3123, allocations: 0 / 0.5619 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.672e-05/0.3123, allocations: 7.938 kB / 0.5619 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.286e-05/0.3123, allocations: 0 / 0.5619 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.892e-05/0.3124, allocations: 4 kB / 0.5619 GB, free: 3.301 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.56e-06/0.3124, allocations: 4 kB / 0.5619 GB, free: 3.297 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002062/0.3126, allocations: 115.9 kB / 0.562 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.234e-06/0.3126, allocations: 0 / 0.562 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.742e-05/0.3126, allocations: 0 / 0.562 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000188/0.3128, allocations: 83.67 kB / 0.5621 GB, free: 3.105 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3128, allocations: 0 / 0.5621 GB, free: 3.105 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3128, allocations: 0 / 0.5621 GB, free: 3.105 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.3128, allocations: 0 / 0.5621 GB, free: 3.105 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.0004426/0.3132, allocations: 286.5 kB / 0.5624 GB, free: 2.793 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.3133, allocations: 12.03 kB / 0.5624 GB, free: 2.781 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.49e-05/0.3133, allocations: 0.9375 kB / 0.5624 GB, free: 2.781 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.125e-05/0.3134, allocations: 106.5 kB / 0.5625 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.3134, allocations: 384 / 0.5625 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.236e-05/0.3134, allocations: 12.31 kB / 0.5625 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001061/0.3135, allocations: 51.97 kB / 0.5626 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.3135, allocations: 4.172 kB / 0.5626 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.3135, allocations: 3.938 kB / 0.5626 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.3135, allocations: 4 kB / 0.5626 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.134e-05/0.3136, allocations: 25.7 kB / 0.5626 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001182/0.3137, allocations: 93.33 kB / 0.5627 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.268e-05/0.3138, allocations: 48.31 kB / 0.5627 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.06e-05/0.3138, allocations: 38.5 kB / 0.5628 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.074e-05/0.3138, allocations: 4.062 kB / 0.5628 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.681e-05/0.3138, allocations: 60.25 kB / 0.5628 GB, free: 2.227 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.233e-06/0.3139, allocations: 0 / 0.5628 GB, free: 2.227 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002325/0.3141, allocations: 118.8 kB / 0.563 GB, free: 2.086 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/0.3141, allocations: 77.11 kB / 0.563 GB, free: 1.992 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.729e-05/0.3142, allocations: 93.81 kB / 0.5631 GB, free: 1.891 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.3142, allocations: 37.62 kB / 0.5632 GB, free: 1.848 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.965e-05/0.3143, allocations: 80.14 kB / 0.5632 GB, free: 1.766 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.86e-05/0.3143, allocations: 3.984 kB / 0.5632 GB, free: 1.762 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.806e-05/0.3143, allocations: 13.84 kB / 0.5632 GB, free: 1.742 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.3145, allocations: 314.8 kB / 0.5635 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.162e-05/0.3145, allocations: 29.64 kB / 0.5636 GB, free: 1.391 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.936e-05/0.3145, allocations: 29.7 kB / 0.5636 GB, free: 1.355 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.002e-05/0.3146, allocations: 64.2 kB / 0.5637 GB, free: 1.277 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.3146, allocations: 4 kB / 0.5637 GB, free: 1.273 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.117e-05/0.3147, allocations: 89.09 kB / 0.5638 GB, free: 1.168 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.054e-05/0.3147, allocations: 35.89 kB / 0.5638 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.3147, allocations: 0 / 0.5638 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.3148, allocations: 4.094 kB / 0.5638 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.707e-06/0.3148, allocations: 3.938 kB / 0.5638 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.3148, allocations: 0 / 0.5638 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.837e-05/0.3148, allocations: 4 kB / 0.5638 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.3148, allocations: 0 / 0.5638 GB, free: 1.117 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 9.865e-05/0.3149, allocations: 143.5 kB / 0.5639 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.444e-06/0.3149, allocations: 0 / 0.5639 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.718e-06/0.3149, allocations: 3 kB / 0.5639 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.3149, allocations: 7.938 kB / 0.5639 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3149, allocations: 0 / 0.5639 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3149, allocations: 4 kB / 0.5639 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.568e-05/0.315, allocations: 93.33 kB / 0.564 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.315, allocations: 3.984 kB / 0.564 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.315, allocations: 0 / 0.564 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.315, allocations: 4 kB / 0.564 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-06/0.315, allocations: 0 / 0.564 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.315, allocations: 0 / 0.564 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.315, allocations: 3.938 kB / 0.564 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/0.3152, allocations: 116.5 kB / 0.5642 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.088e-06/0.3152, allocations: 0 / 0.5642 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.3152, allocations: 4 kB / 0.5642 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.296e-06/0.3152, allocations: 4.031 kB / 0.5642 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.335e-05/0.3152, allocations: 11.92 kB / 0.5642 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/0.3152, allocations: 0 / 0.5642 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.663e-05/0.3152, allocations: 79.22 kB / 0.5643 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3152, allocations: 0 / 0.5643 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002544/0.3155, allocations: 35.86 kB / 0.5643 GB, free: 0.5352 MB / 398.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.0006681/0.3162, allocations: 278 kB / 0.5646 GB, free: 324 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001514/0.3163, allocations: 118.8 kB / 0.5647 GB, free: 180 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3163, allocations: 0 / 0.5647 GB, free: 180 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.146e-05/0.3164, allocations: 81.11 kB / 0.5647 GB, free: 80 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001287/0.3165, allocations: 4 kB / 0.5647 GB, free: 76 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002641/0.3168, allocations: 110.7 kB / 0.5649 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.645e-05/0.3168, allocations: 55.36 kB / 0.5649 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.921e-06/0.3168, allocations: 4.125 kB / 0.5649 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.388e-05/0.3168, allocations: 11.38 kB / 0.5649 GB, free: 15.84 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3168, allocations: 0 / 0.5649 GB, free: 15.84 MB / 414.1 MB Notification: Performance of Templates: time 0.004151/0.321, allocations: 0.9629 MB / 0.5659 GB, free: 14.88 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins/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: 5.0374415423721075]