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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00151/0.00151, allocations: 197.5 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001092/0.001092, allocations: 90.5 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1993/0.1993, allocations: 45.15 MB / 383.8 MB, free: 264 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.201e-05/1.204e-05, allocations: 0 / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1193, allocations: 63.25 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4221/0.5415, allocations: 86.39 MB / 0.5887 GB, free: 144 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001557/0.5417, allocations: 60.34 kB / 0.5888 GB, free: 116 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005658/0.5474, allocations: 2.303 MB / 0.591 GB, free: 14.16 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.5474, allocations: 0 / 0.591 GB, free: 14.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.5474, allocations: 0 / 0.591 GB, free: 14.16 MB / 394.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.0003063/0.5477, allocations: 364 kB / 0.5914 GB, free: 13.77 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.5478, allocations: 8.031 kB / 0.5914 GB, free: 13.76 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.606e-05/0.5478, allocations: 0 / 0.5914 GB, free: 13.76 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/0.5479, allocations: 167 kB / 0.5915 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.5479, allocations: 0 / 0.5915 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.047e-06/0.548, allocations: 0 / 0.5915 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.139e-05/0.548, allocations: 3.938 kB / 0.5915 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.845e-05/0.5481, allocations: 29.7 kB / 0.5916 GB, free: 13.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.5481, allocations: 3.984 kB / 0.5916 GB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.5481, allocations: 0.5312 kB / 0.5916 GB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.5481, allocations: 0 / 0.5916 GB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001165/0.5482, allocations: 134.2 kB / 0.5917 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.496e-05/0.5483, allocations: 22.55 kB / 0.5917 GB, free: 13.31 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.101e-05/0.5483, allocations: 4.859 kB / 0.5917 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.985e-06/0.5483, allocations: 0 / 0.5917 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.655e-05/0.5484, allocations: 60.02 kB / 0.5918 GB, free: 13.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.5484, allocations: 0 / 0.5918 GB, free: 13.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001787/0.5486, allocations: 41.75 kB / 0.5918 GB, free: 13.19 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.592e-05/0.5486, allocations: 77.11 kB / 0.5919 GB, free: 13.09 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.846e-05/0.5487, allocations: 85 kB / 0.592 GB, free: 13 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.5487, allocations: 25.7 kB / 0.592 GB, free: 12.97 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.899e-05/0.5487, allocations: 80.14 kB / 0.5921 GB, free: 12.89 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.624e-05/0.5487, allocations: 4 kB / 0.5921 GB, free: 12.89 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.354e-06/0.5488, allocations: 0 / 0.5921 GB, free: 12.89 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.5489, allocations: 314.7 kB / 0.5924 GB, free: 12.57 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.126e-06/0.5489, allocations: 4.031 kB / 0.5924 GB, free: 12.57 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.32e-06/0.5489, allocations: 3.938 kB / 0.5924 GB, free: 12.57 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.317e-05/0.5489, allocations: 7.984 kB / 0.5924 GB, free: 12.56 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.549, allocations: 0 / 0.5924 GB, free: 12.56 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.746e-05/0.549, allocations: 41.59 kB / 0.5924 GB, free: 12.51 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.932e-05/0.5491, allocations: 33.69 kB / 0.5925 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.5491, allocations: 0 / 0.5925 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.5491, allocations: 0 / 0.5925 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.994e-06/0.5491, allocations: 0 / 0.5925 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.5491, allocations: 0 / 0.5925 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.331e-05/0.5491, allocations: 8.094 kB / 0.5925 GB, free: 12.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.5491, allocations: 0 / 0.5925 GB, free: 12.46 MB / 394.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.435e-05/0.5492, allocations: 126.7 kB / 0.5926 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.918e-06/0.5493, allocations: 7.953 kB / 0.5926 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.224e-05/0.5493, allocations: 7.703 kB / 0.5926 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.5493, allocations: 0 / 0.5926 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.5493, allocations: 0 / 0.5926 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.5493, allocations: 7.922 kB / 0.5926 GB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.651e-05/0.5494, allocations: 126.1 kB / 0.5927 GB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.5494, allocations: 4 kB / 0.5927 GB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.5494, allocations: 0 / 0.5927 GB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.193e-06/0.5494, allocations: 4 kB / 0.5927 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-06/0.5494, allocations: 0 / 0.5927 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.5494, allocations: 7.891 kB / 0.5928 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.5494, allocations: 0 / 0.5928 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.581e-05/0.5495, allocations: 61.12 kB / 0.5928 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.157e-05/0.5496, allocations: 80.73 kB / 0.5929 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.254e-05/0.5496, allocations: 8.031 kB / 0.5929 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.745e-06/0.5496, allocations: 0 / 0.5929 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.842e-05/0.5496, allocations: 7.938 kB / 0.5929 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.5496, allocations: 4 kB / 0.5929 GB, free: 11.95 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.509e-05/0.5497, allocations: 75.28 kB / 0.593 GB, free: 11.87 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5497, allocations: 0 / 0.593 GB, free: 11.87 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002311/0.5499, allocations: 32 kB / 0.593 GB, free: 11.84 MB / 394.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005415/0.5505, allocations: 282.3 kB / 0.5933 GB, free: 11.59 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.61e-05/0.5505, allocations: 55.41 kB / 0.5933 GB, free: 11.52 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.5506, allocations: 0 / 0.5933 GB, free: 11.52 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.879e-05/0.5506, allocations: 51.41 kB / 0.5934 GB, free: 11.46 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.171e-05/0.5507, allocations: 4 kB / 0.5934 GB, free: 11.46 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001521/0.5508, allocations: 54.05 kB / 0.5934 GB, free: 11.39 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002612/0.5511, allocations: 0.669 MB / 0.5941 GB, free: 10.69 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 7.303e-06/0.5511, allocations: 4 kB / 0.5941 GB, free: 10.69 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.057e-06/0.5511, allocations: 11.56 kB / 0.5941 GB, free: 10.68 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5511, allocations: 0 / 0.5941 GB, free: 10.68 MB / 394.7 MB Notification: Performance of Templates: time 0.003194/0.5543, allocations: 0.9182 MB / 0.595 GB, free: 9.766 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.makefile (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) 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","../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches