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.002398/0.002398, allocations: 99.53 kB / 20.97 MB, free: 3.457 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.002984/0.002984, allocations: 160.8 kB / 24.27 MB, free: 156 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.663/1.663, allocations: 177 MB / 204.5 MB, free: 5.629 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.4179/0.4179, allocations: 34.25 MB / 295.2 MB, free: 0.6562 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 1.734e-06/1.734e-06, allocations: 0 / 377.2 MB, free: 2.977 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.486e-05/3.659e-05, allocations: 4.562 kB / 377.2 MB, free: 2.973 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001701/0.001737, allocations: 497 kB / 377.7 MB, free: 2.484 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008208/0.002558, allocations: 303.2 kB / 378 MB, free: 2.188 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.995e-05/0.002578, allocations: 0 / 378 MB, free: 2.188 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.191e-05/0.00259, allocations: 0 / 378 MB, free: 2.188 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.999e-06/0.002595, allocations: 0 / 378 MB, free: 2.188 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.0009611/0.003556, allocations: 108.5 kB / 378.1 MB, free: 2.086 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.207e-05/0.003608, allocations: 4 kB / 378.1 MB, free: 2.082 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.989e-05/0.003638, allocations: 0 / 378.1 MB, free: 2.082 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.434e-05/0.003672, allocations: 3.984 kB / 378.1 MB, free: 2.078 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.182e-05/0.003694, allocations: 0 / 378.1 MB, free: 2.078 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.113e-06/0.003701, allocations: 4 kB / 378.1 MB, free: 2.074 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002485/0.00395, allocations: 111.8 kB / 378.2 MB, free: 1.965 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.286e-06/0.003958, allocations: 0 / 378.2 MB, free: 1.965 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.084e-05/0.003979, allocations: 0 / 378.2 MB, free: 1.965 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002747/0.004254, allocations: 115.7 kB / 378.3 MB, free: 1.852 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.004257, allocations: 0 / 378.3 MB, free: 1.852 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.004258, allocations: 0 / 378.3 MB, free: 1.852 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.004263, allocations: 0 / 378.3 MB, free: 1.852 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.0004477/0.00471, allocations: 381.9 kB / 378.7 MB, free: 1.434 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.004747, allocations: 8.031 kB / 378.7 MB, free: 1.426 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.769e-05/0.004795, allocations: 8.938 kB / 378.7 MB, free: 1.418 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.004898, allocations: 112.6 kB / 378.8 MB, free: 1.281 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.004912, allocations: 384 / 378.8 MB, free: 1.281 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.655e-06/0.00492, allocations: 384 / 378.8 MB, free: 1.281 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.005038, allocations: 67.94 kB / 378.9 MB, free: 1.203 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.005047, allocations: 192 / 378.9 MB, free: 1.203 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.095e-06/0.005055, allocations: 384 / 378.9 MB, free: 1.203 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.005062, allocations: 4.359 kB / 378.9 MB, free: 1.199 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.208e-05/0.005104, allocations: 33.64 kB / 378.9 MB, free: 1.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001477/0.005252, allocations: 108.6 kB / 379 MB, free: 1.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.51e-05/0.005347, allocations: 60.73 kB / 379.1 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.64e-05/0.005384, allocations: 37.39 kB / 379.1 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.005399, allocations: 4.062 kB / 379.1 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.198e-05/0.005461, allocations: 63.08 kB / 379.2 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.005462, allocations: 0 / 379.2 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002455/0.005707, allocations: 114.8 kB / 379.3 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.119e-05/0.005778, allocations: 85.05 kB / 379.4 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.617e-05/0.005875, allocations: 146.2 kB / 379.5 MB, free: 428 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.005894, allocations: 29.64 kB / 379.5 MB, free: 392 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.703e-05/0.005961, allocations: 126.9 kB / 379.7 MB, free: 260 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.168e-05/0.005983, allocations: 3.938 kB / 379.7 MB, free: 256 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.518e-05/0.006018, allocations: 23.5 kB / 379.7 MB, free: 224 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002948/0.006313, allocations: 0.4883 MB / 380.2 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.949e-05/0.006342, allocations: 25.7 kB / 380.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.474e-05/0.006367, allocations: 29.7 kB / 380.2 MB, free: 15.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.752e-05/0.006434, allocations: 63.09 kB / 380.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.006439, allocations: 3.984 kB / 380.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001023/0.006541, allocations: 89.11 kB / 380.4 MB, free: 15.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.917e-05/0.00658, allocations: 29.7 kB / 380.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.006586, allocations: 0 / 380.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.0066, allocations: 4.094 kB / 380.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.006601, allocations: 3.938 kB / 380.4 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.006608, allocations: 4 kB / 380.4 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.36e-05/0.006632, allocations: 7.922 kB / 380.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.006638, allocations: 0 / 380.4 MB, free: 15.41 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.0001392/0.006777, allocations: 182.3 kB / 380.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.129e-05/0.006788, allocations: 3.953 kB / 380.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.263e-06/0.006796, allocations: 3 kB / 380.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.006797, allocations: 0 / 380.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.0068, allocations: 0 / 380.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.006802, allocations: 4 kB / 380.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001098/0.006912, allocations: 120.6 kB / 380.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.006913, allocations: 0 / 380.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-07/0.006913, allocations: 0 / 380.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.006914, allocations: 0 / 380.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-06/0.00692, allocations: 0 / 380.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.00692, allocations: 4 kB / 380.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.006921, allocations: 0 / 380.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000166/0.007087, allocations: 135.7 kB / 380.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.378e-06/0.007091, allocations: 0 / 380.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.007105, allocations: 4 kB / 380.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.295e-06/0.007113, allocations: 4.031 kB / 380.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.716e-05/0.00713, allocations: 7.938 kB / 380.9 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-06/0.007133, allocations: 0 / 380.9 MB, free: 14.87 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.014e-05/0.007203, allocations: 119.2 kB / 381 MB, free: 14.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.007203, allocations: 0 / 381 MB, free: 14.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002487/0.007452, allocations: 31.92 kB / 381 MB, free: 14.72 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.0009487/0.008401, allocations: 279 kB / 381.3 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001564/0.008557, allocations: 122.5 kB / 381.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.008559, allocations: 0 / 381.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.181e-05/0.00863, allocations: 92.8 kB / 381.5 MB, free: 14.22 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001211/0.008751, allocations: 7.984 kB / 381.5 MB, free: 14.21 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002412/0.008993, allocations: 117.6 kB / 381.6 MB, free: 14.06 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.15e-05/0.009044, allocations: 51.48 kB / 381.7 MB, free: 13.99 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.029e-06/0.009049, allocations: 4 kB / 381.7 MB, free: 13.99 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.385e-05/0.009063, allocations: 12.5 kB / 381.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of SimCode: time 8.92e-07/0.009064, allocations: 0 / 381.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of Templates: time 0.004262/0.01333, allocations: 1.02 MB / 382.7 MB, free: 12.96 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 240] 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.038353845011443]