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.001583/0.001583, allocations: 81.81 kB / 21.42 MB, free: 3.07 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.002039/0.002039, allocations: 170.8 kB / 24.82 MB, free: 8.922 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 1.003/1.003, allocations: 177 MB / 205.1 MB, free: 5.477 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.2666/0.2666, allocations: 34.87 MB / 296.6 MB, free: 0.4922 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.713e-06/1.713e-06, allocations: 0 / 379.2 MB, free: 1.859 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.406e-05/2.577e-05, allocations: 2.875 kB / 379.2 MB, free: 1.855 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001272/0.001298, allocations: 496.3 kB / 379.7 MB, free: 1.371 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005977/0.001895, allocations: 311.1 kB / 380 MB, free: 1.066 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.245e-05/0.001918, allocations: 0 / 380 MB, free: 1.066 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.588e-05/0.001934, allocations: 0 / 380 MB, free: 1.066 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.492e-06/0.00194, allocations: 0 / 380 MB, free: 1.066 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.0007071/0.002647, allocations: 115.1 kB / 380.1 MB, free: 0.957 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.791e-05/0.002695, allocations: 4 kB / 380.1 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.498e-05/0.00273, allocations: 4 kB / 380.1 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.937e-05/0.00276, allocations: 0 / 380.1 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.016e-05/0.00278, allocations: 0 / 380.1 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.684e-06/0.002787, allocations: 4 kB / 380.1 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001604/0.002948, allocations: 103.8 kB / 380.2 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.695e-06/0.002956, allocations: 4 kB / 380.2 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.633e-05/0.002972, allocations: 7.984 kB / 380.2 MB, free: 0.832 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001634/0.003135, allocations: 107.7 kB / 380.3 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.003138, allocations: 0 / 380.3 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.003139, allocations: 0 / 380.3 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.206e-06/0.003142, allocations: 0 / 380.3 MB, free: 0.7266 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.0002684/0.003411, allocations: 389.9 kB / 380.7 MB, free: 308 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.003448, allocations: 12.03 kB / 380.7 MB, free: 296 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.353e-05/0.003471, allocations: 4.875 kB / 380.7 MB, free: 292 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.793e-05/0.003529, allocations: 104.6 kB / 380.8 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.00354, allocations: 384 / 380.8 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.962e-06/0.003546, allocations: 8.375 kB / 380.8 MB, free: 152 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.071e-05/0.003636, allocations: 51.97 kB / 380.9 MB, free: 88 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.003646, allocations: 192 / 380.9 MB, free: 88 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.753e-06/0.003653, allocations: 4.375 kB / 380.9 MB, free: 84 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.003662, allocations: 8.297 kB / 380.9 MB, free: 76 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.009e-05/0.003682, allocations: 33.64 kB / 380.9 MB, free: 36 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001124/0.003795, allocations: 97.27 kB / 381 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.527e-05/0.00385, allocations: 52.7 kB / 381.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.85e-05/0.003879, allocations: 41.48 kB / 381.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.821e-06/0.003884, allocations: 0 / 381.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.402e-05/0.003938, allocations: 67.08 kB / 381.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.003939, allocations: 0 / 381.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002231/0.004163, allocations: 110.8 kB / 381.3 MB, free: 15.58 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.286e-05/0.004215, allocations: 85.05 kB / 381.4 MB, free: 15.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.455e-05/0.00428, allocations: 146.2 kB / 381.5 MB, free: 15.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.423e-05/0.004294, allocations: 25.7 kB / 381.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.832e-05/0.004333, allocations: 126.9 kB / 381.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/0.004359, allocations: 4.328 kB / 381.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.208e-05/0.004391, allocations: 23.38 kB / 381.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001926/0.004584, allocations: 496.2 kB / 382.2 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.821e-05/0.004612, allocations: 29.7 kB / 382.2 MB, free: 14.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.8e-05/0.00463, allocations: 29.7 kB / 382.2 MB, free: 14.56 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.608e-05/0.004686, allocations: 59.09 kB / 382.3 MB, free: 14.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.004689, allocations: 4 kB / 382.3 MB, free: 14.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.532e-05/0.004774, allocations: 92.98 kB / 382.4 MB, free: 14.37 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.507e-05/0.004819, allocations: 36.05 kB / 382.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.004826, allocations: 0 / 382.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.004843, allocations: 0 / 382.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.353e-06/0.004844, allocations: 0 / 382.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.004848, allocations: 4.094 kB / 382.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.755e-05/0.004866, allocations: 0 / 382.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.054e-05/0.004876, allocations: 4 kB / 382.4 MB, free: 14.32 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.0001438/0.00502, allocations: 190.2 kB / 382.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-06/0.005027, allocations: 4 kB / 382.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.465e-05/0.005042, allocations: 3 kB / 382.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.005043, allocations: 0 / 382.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.005045, allocations: 0 / 382.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.005048, allocations: 0 / 382.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.785e-05/0.005106, allocations: 97.2 kB / 382.7 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.005107, allocations: 4 kB / 382.7 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.152e-06/0.005108, allocations: 7.938 kB / 382.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.005109, allocations: 0 / 382.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.02e-06/0.005114, allocations: 3.984 kB / 382.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-07/0.005115, allocations: 0 / 382.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.005116, allocations: 0 / 382.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.408e-05/0.0052, allocations: 131.7 kB / 382.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.332e-06/0.005206, allocations: 7.969 kB / 382.9 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.967e-06/0.005215, allocations: 0 / 382.9 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.571e-06/0.005221, allocations: 0 / 382.9 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.013e-05/0.005231, allocations: 8 kB / 382.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.005233, allocations: 8.016 kB / 382.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.026e-05/0.005264, allocations: 119.2 kB / 383 MB, free: 13.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005264, allocations: 0 / 383 MB, free: 13.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001704/0.005434, allocations: 27.94 kB / 383 MB, free: 13.65 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.0004556/0.00589, allocations: 281.2 kB / 383.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001804/0.00607, allocations: 122.5 kB / 383.4 MB, free: 13.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.532e-06/0.006072, allocations: 0 / 383.4 MB, free: 13.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.08e-05/0.006103, allocations: 92.73 kB / 383.5 MB, free: 13.15 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.556e-05/0.006188, allocations: 3.938 kB / 383.5 MB, free: 13.15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001558/0.006344, allocations: 121.6 kB / 383.6 MB, free: 12.99 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.715e-05/0.006371, allocations: 51.36 kB / 383.7 MB, free: 12.92 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.294e-06/0.006378, allocations: 4 kB / 383.7 MB, free: 12.92 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.767e-05/0.006416, allocations: 74.33 kB / 383.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of SimCode: time 8.82e-07/0.006417, allocations: 0 / 383.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of Templates: time 0.003158/0.009575, allocations: 1.168 MB / 384.9 MB, free: 11.68 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.143657196778804]