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.001802/0.001802, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 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.002189/0.002189, allocations: 211.9 kB / 24.54 MB, free: 4.02 MB / 14.72 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.49/1.49, allocations: 230.3 MB / 258 MB, free: 8.215 MB / 206.1 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.2192/0.2192, allocations: 46.9 MB / 361.3 MB, free: 4.434 MB / 286.1 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 0.002229/0.002229, allocations: 83.86 kB / 0.497 GB, free: 7.613 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3319, allocations: 66.03 MB / 0.5615 GB, free: 4.617 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001613/0.3336, allocations: 483.3 kB / 0.562 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007682/0.3343, allocations: 317.3 kB / 0.5623 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.596e-05/0.3343, allocations: 4 kB / 0.5623 GB, free: 3.836 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.017e-05/0.3344, allocations: 0 / 0.5623 GB, free: 3.836 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.3e-06/0.3344, allocations: 0 / 0.5623 GB, free: 3.836 MB / 398.1 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.000791/0.3351, allocations: 101.6 kB / 0.5624 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.211e-05/0.3352, allocations: 3.984 kB / 0.5624 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.898e-05/0.3352, allocations: 4 kB / 0.5624 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.202e-05/0.3352, allocations: 0 / 0.5624 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.349e-05/0.3352, allocations: 0 / 0.5624 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.909e-06/0.3352, allocations: 0 / 0.5624 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001998/0.3354, allocations: 119.8 kB / 0.5625 GB, free: 3.613 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.43e-06/0.3355, allocations: 0 / 0.5625 GB, free: 3.613 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.102e-05/0.3355, allocations: 4 kB / 0.5625 GB, free: 3.609 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001774/0.3357, allocations: 91.59 kB / 0.5626 GB, free: 3.523 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3357, allocations: 0 / 0.5626 GB, free: 3.523 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3357, allocations: 0 / 0.5626 GB, free: 3.523 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.3357, allocations: 0 / 0.5626 GB, free: 3.523 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.0003393/0.336, allocations: 286.7 kB / 0.5629 GB, free: 3.211 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.336, allocations: 19.95 kB / 0.5629 GB, free: 3.191 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.774e-05/0.3361, allocations: 0.9375 kB / 0.5629 GB, free: 3.191 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.661e-05/0.3361, allocations: 102.5 kB / 0.563 GB, free: 3.066 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.3362, allocations: 4.375 kB / 0.563 GB, free: 3.062 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.382e-06/0.3362, allocations: 384 / 0.563 GB, free: 3.062 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.975e-05/0.3363, allocations: 30.27 kB / 0.563 GB, free: 3.027 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.233e-06/0.3363, allocations: 192 / 0.563 GB, free: 3.027 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.226e-06/0.3363, allocations: 3.938 kB / 0.563 GB, free: 3.023 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.3363, allocations: 0 / 0.563 GB, free: 3.023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.938e-05/0.3363, allocations: 7.938 kB / 0.563 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001355/0.3364, allocations: 120.8 kB / 0.5631 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.444e-05/0.3365, allocations: 18.67 kB / 0.5632 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.516e-05/0.3365, allocations: 8.859 kB / 0.5632 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.205e-06/0.3365, allocations: 3.938 kB / 0.5632 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.143e-05/0.3365, allocations: 56.27 kB / 0.5632 GB, free: 2.742 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3365, allocations: 0 / 0.5632 GB, free: 2.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001779/0.3367, allocations: 75.27 kB / 0.5633 GB, free: 2.656 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.814e-05/0.3368, allocations: 77.11 kB / 0.5634 GB, free: 2.562 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.605e-05/0.3369, allocations: 93.94 kB / 0.5635 GB, free: 2.461 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.3369, allocations: 33.7 kB / 0.5635 GB, free: 2.422 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.93e-05/0.3369, allocations: 80.14 kB / 0.5636 GB, free: 2.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.3369, allocations: 0 / 0.5636 GB, free: 2.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.953e-05/0.337, allocations: 9.719 kB / 0.5636 GB, free: 2.324 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.3371, allocations: 314.8 kB / 0.5639 GB, free: 2.008 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.282e-05/0.3371, allocations: 4 kB / 0.5639 GB, free: 2.004 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.404e-06/0.3371, allocations: 3.984 kB / 0.5639 GB, free: 2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.091e-05/0.3372, allocations: 64.33 kB / 0.5639 GB, free: 1.922 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3372, allocations: 0 / 0.5639 GB, free: 1.922 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.77e-05/0.3373, allocations: 63.34 kB / 0.564 GB, free: 1.848 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.405e-05/0.3373, allocations: 29.7 kB / 0.564 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.3373, allocations: 0 / 0.564 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.3374, allocations: 7.922 kB / 0.564 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.3374, allocations: 0 / 0.564 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.3374, allocations: 4 kB / 0.564 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.657e-05/0.3374, allocations: 0 / 0.564 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-06/0.3374, allocations: 0 / 0.564 GB, free: 1.801 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.000111/0.3375, allocations: 140.7 kB / 0.5642 GB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.955e-06/0.3375, allocations: 4 kB / 0.5642 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.695e-05/0.3375, allocations: 6.938 kB / 0.5642 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.3375, allocations: 0 / 0.5642 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.3375, allocations: 0 / 0.5642 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-06/0.3375, allocations: 0 / 0.5642 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001017/0.3376, allocations: 124.7 kB / 0.5643 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.3376, allocations: 0 / 0.5643 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.9e-07/0.3376, allocations: 0 / 0.5643 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.3376, allocations: 4 kB / 0.5643 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/0.3376, allocations: 7.938 kB / 0.5643 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.3376, allocations: 0 / 0.5643 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.3376, allocations: 0 / 0.5643 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001116/0.3378, allocations: 98.7 kB / 0.5644 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.476e-06/0.3378, allocations: 0 / 0.5644 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.3378, allocations: 7.938 kB / 0.5644 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.747e-06/0.3378, allocations: 0 / 0.5644 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.092e-05/0.3378, allocations: 8.016 kB / 0.5644 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.3378, allocations: 0 / 0.5644 GB, free: 1.324 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.674e-05/0.3378, allocations: 79.28 kB / 0.5645 GB, free: 1.246 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3378, allocations: 0 / 0.5645 GB, free: 1.246 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002449/0.3381, allocations: 35.86 kB / 0.5645 GB, free: 1.211 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.0006276/0.3387, allocations: 276.4 kB / 0.5648 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001037/0.3388, allocations: 59.34 kB / 0.5649 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3388, allocations: 0 / 0.5649 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.754e-05/0.3388, allocations: 55.41 kB / 0.5649 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001207/0.339, allocations: 3.938 kB / 0.5649 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001725/0.3391, allocations: 88.98 kB / 0.565 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/0.3395, allocations: 0.673 MB / 0.5657 GB, free: 24 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.29e-06/0.3395, allocations: 0 / 0.5657 GB, free: 24 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.374e-05/0.3395, allocations: 11.44 kB / 0.5657 GB, free: 12 kB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3395, allocations: 0 / 0.5657 GB, free: 12 kB / 398.1 MB Notification: Performance of Templates: time 0.003791/0.3433, allocations: 0.9765 MB / 0.5666 GB, free: 15.04 MB / 414.1 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.0.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.05817289929837]