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.0008261/0.0008261, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.003691/0.003691, allocations: 153.4 kB / 24.7 MB, free: 8.898 MB / 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 0.8749/0.8749, allocations: 177 MB / 204.9 MB, free: 5.773 MB / 186.7 MB " [Timeout remaining time 179] 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.2308/0.2308, allocations: 34.24 MB / 295.6 MB, free: 0.6758 MB / 266.7 MB " [Timeout remaining time 180] 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 1.914e-06/1.914e-06, allocations: 0 / 443.4 MB, free: 1.098 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.547e-05/4.738e-05, allocations: 6.219 kB / 443.4 MB, free: 1.09 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00113/0.001177, allocations: 485 kB / 443.9 MB, free: 0.6172 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007275/0.001904, allocations: 315.2 kB / 444.2 MB, free: 316 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.824e-05/0.001933, allocations: 0 / 444.2 MB, free: 316 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.509e-05/0.001958, allocations: 0 / 444.2 MB, free: 316 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.674e-06/0.001965, allocations: 0 / 444.2 MB, free: 316 kB / 410.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.0009395/0.002905, allocations: 90.39 kB / 444.3 MB, free: 228 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 7.424e-05/0.002979, allocations: 0 / 444.3 MB, free: 228 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.916e-05/0.003028, allocations: 4 kB / 444.3 MB, free: 224 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.201e-05/0.00306, allocations: 3.938 kB / 444.3 MB, free: 220 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.567e-05/0.003086, allocations: 0 / 444.3 MB, free: 220 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 9.198e-06/0.003095, allocations: 0 / 444.3 MB, free: 220 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001856/0.003281, allocations: 123.7 kB / 444.4 MB, free: 96 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.196e-06/0.003289, allocations: 4 kB / 444.4 MB, free: 92 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.014e-05/0.003309, allocations: 0 / 444.4 MB, free: 92 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2092/0.2125, allocations: 101.8 kB / 444.5 MB, free: 43.74 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.2125, allocations: 0 / 444.5 MB, free: 43.74 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.2125, allocations: 0 / 444.5 MB, free: 43.74 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.2125, allocations: 0 / 444.5 MB, free: 43.74 MB / 410.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.0003338/0.2129, allocations: 286.1 kB / 444.8 MB, free: 43.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.524e-05/0.2129, allocations: 8.125 kB / 444.8 MB, free: 43.45 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.635e-05/0.213, allocations: 10.81 kB / 444.8 MB, free: 43.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.097e-05/0.2131, allocations: 101.8 kB / 444.9 MB, free: 43.33 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.2131, allocations: 384 / 444.9 MB, free: 43.33 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.2131, allocations: 6.312 kB / 444.9 MB, free: 43.33 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001054/0.2132, allocations: 56.5 kB / 445 MB, free: 43.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.2132, allocations: 3.422 kB / 445 MB, free: 43.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.2132, allocations: 384 / 445 MB, free: 43.27 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.2132, allocations: 384 / 445 MB, free: 43.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.339e-05/0.2132, allocations: 32.55 kB / 445 MB, free: 43.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.534e-05/0.2133, allocations: 97.77 kB / 445.1 MB, free: 43.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.551e-05/0.2134, allocations: 44.97 kB / 445.1 MB, free: 43.05 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.586e-05/0.2134, allocations: 39.3 kB / 445.2 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.919e-06/0.2134, allocations: 0 / 445.2 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.2134, allocations: 60.33 kB / 445.2 MB, free: 42.95 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 6.31e-07/0.2134, allocations: 0 / 445.2 MB, free: 42.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.000198/0.2136, allocations: 124.2 kB / 445.3 MB, free: 42.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.774e-05/0.2137, allocations: 79.52 kB / 445.4 MB, free: 42.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.711e-05/0.2137, allocations: 92.52 kB / 445.5 MB, free: 42.63 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.559e-06/0.2137, allocations: 25.7 kB / 445.5 MB, free: 42.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.023e-06/0.2137, allocations: 83.14 kB / 445.6 MB, free: 42.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.2137, allocations: 3.984 kB / 445.6 MB, free: 42.52 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.152e-05/0.2137, allocations: 12.28 kB / 445.6 MB, free: 42.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.825e-05/0.2137, allocations: 319.2 kB / 446 MB, free: 42.18 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.247e-05/0.2138, allocations: 31.19 kB / 446 MB, free: 42.15 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.017e-06/0.2138, allocations: 28.67 kB / 446 MB, free: 42.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.36e-05/0.2138, allocations: 62.67 kB / 446.1 MB, free: 42.05 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.2138, allocations: 0 / 446.1 MB, free: 42.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4e-05/0.2138, allocations: 94.5 kB / 446.2 MB, free: 41.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.407e-05/0.2139, allocations: 31.58 kB / 446.2 MB, free: 41.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.2139, allocations: 0 / 446.2 MB, free: 41.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.2139, allocations: 2.969 kB / 446.2 MB, free: 41.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.2139, allocations: 0 / 446.2 MB, free: 41.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.2139, allocations: 0 / 446.2 MB, free: 41.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.631e-05/0.2139, allocations: 3.938 kB / 446.2 MB, free: 41.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.2139, allocations: 2.875 kB / 446.2 MB, free: 41.92 MB / 410.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 3.911e-05/0.214, allocations: 142.5 kB / 446.3 MB, free: 41.78 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.607e-06/0.214, allocations: 4 kB / 446.3 MB, free: 41.78 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.088e-05/0.214, allocations: 3 kB / 446.3 MB, free: 41.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-06/0.214, allocations: 2.953 kB / 446.4 MB, free: 41.77 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.214, allocations: 0.75 kB / 446.4 MB, free: 41.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.214, allocations: 0 / 446.4 MB, free: 41.77 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.91e-05/0.214, allocations: 107.1 kB / 446.5 MB, free: 41.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.214, allocations: 0 / 446.5 MB, free: 41.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.214, allocations: 0 / 446.5 MB, free: 41.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.214, allocations: 0 / 446.5 MB, free: 41.65 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-06/0.214, allocations: 2.969 kB / 446.5 MB, free: 41.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.214, allocations: 0 / 446.5 MB, free: 41.65 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.214, allocations: 3.891 kB / 446.5 MB, free: 41.65 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.197e-05/0.2141, allocations: 119.1 kB / 446.6 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.59e-06/0.2141, allocations: 3.125 kB / 446.6 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.155e-05/0.2141, allocations: 4.125 kB / 446.6 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.881e-06/0.2141, allocations: 3.188 kB / 446.6 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.209e-05/0.2141, allocations: 0 / 446.6 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-06/0.2141, allocations: 5.938 kB / 446.6 MB, free: 41.52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.048e-05/0.2142, allocations: 78.7 kB / 446.7 MB, free: 41.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2142, allocations: 0 / 446.7 MB, free: 41.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001718/0.2143, allocations: 32 kB / 446.7 MB, free: 41.45 MB / 410.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.0004568/0.2148, allocations: 286.2 kB / 447 MB, free: 41.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001023/0.2149, allocations: 110.7 kB / 447.1 MB, free: 41.21 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2149, allocations: 0 / 447.1 MB, free: 41.21 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.608e-05/0.2149, allocations: 85.45 kB / 447.2 MB, free: 41.12 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001126/0.215, allocations: 6.219 kB / 447.2 MB, free: 41.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002352/0.2153, allocations: 130.5 kB / 447.3 MB, free: 40.96 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.612e-05/0.2153, allocations: 61.66 kB / 447.4 MB, free: 40.89 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.352e-05/0.2153, allocations: 8.5 kB / 447.4 MB, free: 40.89 MB / 410.7 MB Notification: Performance of SimCode: time 4.51e-07/0.2153, allocations: 0 / 447.4 MB, free: 40.89 MB / 410.7 MB Notification: Performance of Templates: time 0.002039/0.2173, allocations: 1.172 MB / 448.5 MB, free: 40.77 MB / 410.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: 5.0866201631724834]