Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001481/0.001481, allocations: 96.25 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001522/0.001522, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.573/1.573, allocations: 177 MB / 204.4 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3805/0.3805, allocations: 34.25 MB / 295.2 MB, free: 0.6523 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.605e-06/2.605e-06, allocations: 0 / 377.2 MB, free: 2.965 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.065e-05/3.325e-05, allocations: 4.844 kB / 377.2 MB, free: 2.961 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001857/0.00189, allocations: 496.9 kB / 377.7 MB, free: 2.473 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008739/0.002764, allocations: 303.2 kB / 378 MB, free: 2.176 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.085e-05/0.002785, allocations: 0 / 378 MB, free: 2.176 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.196e-05/0.002797, allocations: 0 / 378 MB, free: 2.176 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.101e-06/0.002803, allocations: 0 / 378 MB, free: 2.176 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:232:3-298: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.001106/0.003909, allocations: 112.6 kB / 378.1 MB, free: 2.07 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.706e-05/0.003966, allocations: 8 kB / 378.1 MB, free: 2.062 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.196e-05/0.003998, allocations: 0 / 378.1 MB, free: 2.062 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.682e-05/0.004025, allocations: 0 / 378.1 MB, free: 2.062 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.253e-05/0.004048, allocations: 0 / 378.1 MB, free: 2.062 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.097e-06/0.004057, allocations: 0 / 378.1 MB, free: 2.062 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002732/0.00433, allocations: 115.8 kB / 378.2 MB, free: 1.949 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.021e-05/0.00434, allocations: 0 / 378.2 MB, free: 1.949 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.55e-05/0.004366, allocations: 0 / 378.2 MB, free: 1.949 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002707/0.004636, allocations: 115.7 kB / 378.3 MB, free: 1.836 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.003e-06/0.004638, allocations: 0 / 378.3 MB, free: 1.836 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.004639, allocations: 0 / 378.3 MB, free: 1.836 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.004643, allocations: 0 / 378.3 MB, free: 1.836 MB / 346.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.000382/0.005025, allocations: 284 kB / 378.6 MB, free: 1.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.005061, allocations: 8.031 kB / 378.6 MB, free: 1.512 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.61e-05/0.005107, allocations: 4.938 kB / 378.6 MB, free: 1.508 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.005217, allocations: 101.8 kB / 378.7 MB, free: 1.383 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.005233, allocations: 4.375 kB / 378.7 MB, free: 1.379 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.985e-06/0.005241, allocations: 384 / 378.7 MB, free: 1.379 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001189/0.00536, allocations: 63.89 kB / 378.8 MB, free: 1.305 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.005367, allocations: 192 / 378.8 MB, free: 1.305 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.005377, allocations: 4.375 kB / 378.8 MB, free: 1.301 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.005381, allocations: 384 / 378.8 MB, free: 1.301 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.328e-05/0.005424, allocations: 37.64 kB / 378.8 MB, free: 1.258 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001284/0.005553, allocations: 93.33 kB / 378.9 MB, free: 1.137 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.306e-05/0.005626, allocations: 44.31 kB / 378.9 MB, free: 1.078 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.305e-05/0.005669, allocations: 38.55 kB / 379 MB, free: 1.031 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.135e-06/0.005677, allocations: 0 / 379 MB, free: 1.031 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.151e-05/0.005738, allocations: 64.27 kB / 379 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.005739, allocations: 3.938 kB / 379 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002455/0.005985, allocations: 114.8 kB / 379.1 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.02e-05/0.006055, allocations: 81.11 kB / 379.2 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.709e-05/0.006132, allocations: 89.98 kB / 379.3 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.006152, allocations: 33.7 kB / 379.3 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.577e-05/0.006198, allocations: 80.14 kB / 379.4 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.917e-05/0.006217, allocations: 3.938 kB / 379.4 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.492e-05/0.006252, allocations: 13.72 kB / 379.4 MB, free: 484 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.006427, allocations: 314.8 kB / 379.8 MB, free: 160 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.87e-05/0.006455, allocations: 25.7 kB / 379.8 MB, free: 128 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.256e-05/0.006478, allocations: 25.7 kB / 379.8 MB, free: 96 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.521e-05/0.006553, allocations: 72.19 kB / 379.9 MB, free: 8 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.006555, allocations: 0 / 379.9 MB, free: 8 kB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001141/0.006669, allocations: 89.17 kB / 380 MB, free: 15.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.813e-05/0.006707, allocations: 33.7 kB / 380 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.006716, allocations: 3.984 kB / 380 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.006732, allocations: 0 / 380 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.006733, allocations: 0 / 380 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.006738, allocations: 0 / 380 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.678e-05/0.006755, allocations: 3.938 kB / 380 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.919e-06/0.006765, allocations: 4 kB / 380 MB, free: 15.85 MB / 362.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 0.0001104/0.006875, allocations: 135.5 kB / 380.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.27e-05/0.006888, allocations: 7.953 kB / 380.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.037e-06/0.006897, allocations: 10.97 kB / 380.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.006898, allocations: 0 / 380.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.006902, allocations: 0 / 380.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-06/0.006904, allocations: 0 / 380.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001129/0.007017, allocations: 109.2 kB / 380.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.007017, allocations: 0 / 380.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.007018, allocations: 0 / 380.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-06/0.007019, allocations: 0 / 380.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.59e-06/0.007025, allocations: 0 / 380.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/0.007025, allocations: 0 / 380.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.007026, allocations: 0 / 380.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001432/0.007169, allocations: 128.5 kB / 380.4 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.037e-06/0.007173, allocations: 0 / 380.4 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.007186, allocations: 3.938 kB / 380.4 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.306e-05/0.007199, allocations: 4 kB / 380.4 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.38e-05/0.007212, allocations: 0 / 380.4 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.007217, allocations: 7.984 kB / 380.4 MB, free: 15.38 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.569e-05/0.007263, allocations: 75.28 kB / 380.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.007263, allocations: 3.938 kB / 380.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002553/0.007518, allocations: 35.92 kB / 380.5 MB, free: 15.27 MB / 362.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.0007863/0.008305, allocations: 279.2 kB / 380.8 MB, free: 15.03 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001487/0.008453, allocations: 106.8 kB / 380.9 MB, free: 14.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.008455, allocations: 0 / 380.9 MB, free: 14.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.55e-05/0.00852, allocations: 85.09 kB / 381 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00013/0.00865, allocations: 4.125 kB / 381 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002499/0.0089, allocations: 116 kB / 381.1 MB, free: 14.65 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.713e-05/0.008957, allocations: 55.36 kB / 381.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.56e-06/0.008963, allocations: 0 / 381.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.43e-05/0.008977, allocations: 8.5 kB / 381.2 MB, free: 14.57 MB / 362.7 MB Notification: Performance of SimCode: time 3.71e-07/0.008978, allocations: 0 / 381.2 MB, free: 14.57 MB / 362.7 MB Notification: Performance of Templates: time 0.004202/0.01318, allocations: 1.024 MB / 382.2 MB, free: 13.54 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.852028292021714]