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.001858/0.001858, allocations: 112.2 kB / 21.19 MB, free: 0.7539 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.002212/0.002212, allocations: 213.7 kB / 24.49 MB, free: 4.137 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.403/1.403, allocations: 230.6 MB / 258.3 MB, free: 8 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.222/0.222, allocations: 46.93 MB / 361.6 MB, free: 4.273 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.001966/0.001966, allocations: 63.91 kB / 0.4974 GB, free: 7.426 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.3367, allocations: 66.04 MB / 0.5619 GB, free: 4.422 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00167/0.3384, allocations: 485 kB / 0.5623 GB, free: 3.945 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007502/0.3391, allocations: 317.3 kB / 0.5626 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.902e-05/0.3391, allocations: 0 / 0.5626 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.664e-05/0.3391, allocations: 4 kB / 0.5626 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.129e-06/0.3391, allocations: 0 / 0.5626 GB, free: 3.633 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.0008451/0.34, allocations: 102.7 kB / 0.5627 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.036e-05/0.34, allocations: 0 / 0.5627 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.694e-05/0.3401, allocations: 4 kB / 0.5627 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.353e-05/0.3401, allocations: 0 / 0.5627 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.564e-05/0.3401, allocations: 0 / 0.5627 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.64e-06/0.3401, allocations: 0 / 0.5627 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002162/0.3403, allocations: 123.9 kB / 0.5628 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.211e-06/0.3403, allocations: 0 / 0.5628 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.875e-05/0.3404, allocations: 0 / 0.5628 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000168/0.3405, allocations: 95.55 kB / 0.5629 GB, free: 3.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3405, allocations: 0 / 0.5629 GB, free: 3.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3405, allocations: 0 / 0.5629 GB, free: 3.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.3405, allocations: 0 / 0.5629 GB, free: 3.32 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.0003603/0.3409, allocations: 286.5 kB / 0.5632 GB, free: 3.008 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.3409, allocations: 12.03 kB / 0.5632 GB, free: 2.996 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.749e-05/0.341, allocations: 0.9375 kB / 0.5632 GB, free: 2.996 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.3e-05/0.341, allocations: 102.5 kB / 0.5633 GB, free: 2.871 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.843e-06/0.341, allocations: 4.312 kB / 0.5633 GB, free: 2.867 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.459e-05/0.3411, allocations: 4.375 kB / 0.5633 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.217e-05/0.3411, allocations: 30.27 kB / 0.5634 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.3412, allocations: 192 / 0.5634 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.3412, allocations: 3.938 kB / 0.5634 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.3412, allocations: 0 / 0.5634 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.1e-05/0.3412, allocations: 11.92 kB / 0.5634 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001309/0.3413, allocations: 116.8 kB / 0.5635 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.541e-05/0.3414, allocations: 18.61 kB / 0.5635 GB, free: 2.629 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.624e-05/0.3414, allocations: 8.859 kB / 0.5635 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.776e-06/0.3414, allocations: 0 / 0.5635 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.686e-05/0.3414, allocations: 56.27 kB / 0.5636 GB, free: 2.547 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.3414, allocations: 3.938 kB / 0.5636 GB, free: 2.543 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002206/0.3417, allocations: 75.33 kB / 0.5636 GB, free: 2.457 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/0.3417, allocations: 77.11 kB / 0.5637 GB, free: 2.363 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.963e-05/0.3418, allocations: 97.81 kB / 0.5638 GB, free: 2.258 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.3418, allocations: 25.7 kB / 0.5638 GB, free: 2.227 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.129e-05/0.3418, allocations: 84.27 kB / 0.5639 GB, free: 2.141 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.803e-05/0.3419, allocations: 3.984 kB / 0.5639 GB, free: 2.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.062e-05/0.3419, allocations: 9.719 kB / 0.5639 GB, free: 2.121 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.3421, allocations: 318.8 kB / 0.5642 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.136e-05/0.3421, allocations: 0 / 0.5642 GB, free: 1.801 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.022e-05/0.3421, allocations: 4 kB / 0.5642 GB, free: 1.797 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.636e-05/0.3422, allocations: 60.27 kB / 0.5643 GB, free: 1.723 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3422, allocations: 4.062 kB / 0.5643 GB, free: 1.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.034e-05/0.3423, allocations: 63.34 kB / 0.5644 GB, free: 1.645 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.396e-05/0.3423, allocations: 33.69 kB / 0.5644 GB, free: 1.605 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.3423, allocations: 0 / 0.5644 GB, free: 1.605 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.3423, allocations: 3.938 kB / 0.5644 GB, free: 1.602 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.035e-06/0.3423, allocations: 4 kB / 0.5644 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.3423, allocations: 0 / 0.5644 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.678e-05/0.3423, allocations: 0 / 0.5644 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.3424, allocations: 0 / 0.5644 GB, free: 1.598 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.0001295/0.3425, allocations: 147.5 kB / 0.5645 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.495e-06/0.3425, allocations: 0 / 0.5645 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.564e-05/0.3425, allocations: 6.938 kB / 0.5645 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.3425, allocations: 3.984 kB / 0.5645 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3425, allocations: 0 / 0.5645 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.3425, allocations: 0 / 0.5645 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001188/0.3426, allocations: 116.8 kB / 0.5647 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.3426, allocations: 0 / 0.5647 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.3426, allocations: 0 / 0.5647 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.3426, allocations: 3.938 kB / 0.5647 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.3427, allocations: 15.92 kB / 0.5647 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3427, allocations: 0 / 0.5647 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.3427, allocations: 0 / 0.5647 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001118/0.3428, allocations: 94.77 kB / 0.5648 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.058e-06/0.3428, allocations: 0 / 0.5648 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.3428, allocations: 11.88 kB / 0.5648 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.486e-06/0.3428, allocations: 0 / 0.5648 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.946e-05/0.3428, allocations: 3.984 kB / 0.5648 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.3428, allocations: 4.031 kB / 0.5648 GB, free: 1.113 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.038e-05/0.3429, allocations: 79.28 kB / 0.5649 GB, free: 1.035 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3429, allocations: 0 / 0.5649 GB, free: 1.035 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002828/0.3431, allocations: 35.88 kB / 0.5649 GB, free: 1 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.0006762/0.3438, allocations: 267.8 kB / 0.5652 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001147/0.3439, allocations: 55.41 kB / 0.5652 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3439, allocations: 0 / 0.5652 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.578e-05/0.344, allocations: 59.34 kB / 0.5653 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000143/0.3441, allocations: 7.984 kB / 0.5653 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002446/0.3444, allocations: 106.7 kB / 0.5654 GB, free: 0.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.3447, allocations: 0.6729 MB / 0.566 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.341e-05/0.3447, allocations: 11.56 kB / 0.566 GB, free: 15.79 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3447, allocations: 0 / 0.566 GB, free: 15.79 MB / 414.1 MB Notification: Performance of Templates: time 0.002852/0.3476, allocations: 1.148 MB / 0.5672 GB, free: 14.64 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: 7.479963240213692]