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.00129/0.00129, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008913/0.0008913, allocations: 91.7 kB / 292.1 MB, free: 5.973 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1978/0.1978, allocations: 45.14 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.772e-05/2.775e-05, allocations: 4 kB / 460.4 MB, free: 70.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1195, allocations: 63.25 MB / 0.5114 GB, free: 6.82 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4059/0.5254, allocations: 87.06 MB / 0.5964 GB, free: 6.871 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001956/0.5256, allocations: 59.38 kB / 0.5964 GB, free: 6.844 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005925/0.5316, allocations: 2.301 MB / 0.5987 GB, free: 4.871 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.5316, allocations: 6.844 kB / 0.5987 GB, free: 4.867 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.5316, allocations: 0 / 0.5987 GB, free: 4.867 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.0002995/0.5319, allocations: 357 kB / 0.599 GB, free: 4.473 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.532, allocations: 11.97 kB / 0.599 GB, free: 4.461 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.799e-05/0.532, allocations: 0 / 0.599 GB, free: 4.461 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.5321, allocations: 163 kB / 0.5992 GB, free: 4.262 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/0.5322, allocations: 4 kB / 0.5992 GB, free: 4.258 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.638e-05/0.5322, allocations: 4.5 kB / 0.5992 GB, free: 4.254 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.232e-05/0.5323, allocations: 34.12 kB / 0.5992 GB, free: 4.215 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.5323, allocations: 3.984 kB / 0.5992 GB, free: 4.211 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.5323, allocations: 0 / 0.5992 GB, free: 4.211 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.5323, allocations: 4 kB / 0.5992 GB, free: 4.207 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.75e-05/0.5323, allocations: 3.938 kB / 0.5992 GB, free: 4.203 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001348/0.5325, allocations: 147.6 kB / 0.5994 GB, free: 4.012 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.113e-05/0.5325, allocations: 23.61 kB / 0.5994 GB, free: 3.98 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.272e-05/0.5325, allocations: 4.859 kB / 0.5994 GB, free: 3.973 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.506e-06/0.5325, allocations: 0.9375 kB / 0.5994 GB, free: 3.973 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/0.5326, allocations: 60.31 kB / 0.5995 GB, free: 3.898 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.5326, allocations: 4 kB / 0.5995 GB, free: 3.895 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001482/0.5328, allocations: 60.84 kB / 0.5995 GB, free: 3.824 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.692e-05/0.5328, allocations: 77.86 kB / 0.5996 GB, free: 3.73 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.517e-05/0.5329, allocations: 89.03 kB / 0.5997 GB, free: 3.637 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.153e-05/0.5329, allocations: 29.7 kB / 0.5997 GB, free: 3.602 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.8e-05/0.5329, allocations: 81.02 kB / 0.5998 GB, free: 3.52 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.5329, allocations: 0 / 0.5998 GB, free: 3.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-06/0.5329, allocations: 0 / 0.5998 GB, free: 3.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.5331, allocations: 315.4 kB / 0.6001 GB, free: 3.203 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.917e-06/0.5331, allocations: 0.9375 kB / 0.6001 GB, free: 3.203 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.191e-06/0.5331, allocations: 4 kB / 0.6001 GB, free: 3.199 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.17e-05/0.5331, allocations: 29.77 kB / 0.6001 GB, free: 3.164 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.5331, allocations: 0 / 0.6001 GB, free: 3.164 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.536e-05/0.5332, allocations: 68.92 kB / 0.6002 GB, free: 3.086 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.736e-05/0.5332, allocations: 29.7 kB / 0.6002 GB, free: 3.051 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.5332, allocations: 3.984 kB / 0.6002 GB, free: 3.047 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.5333, allocations: 0 / 0.6002 GB, free: 3.047 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.5333, allocations: 4 kB / 0.6002 GB, free: 3.043 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.5333, allocations: 0 / 0.6002 GB, free: 3.043 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.097e-05/0.5333, allocations: 0 / 0.6002 GB, free: 3.043 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.5333, allocations: 0 / 0.6002 GB, free: 3.043 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 7.062e-05/0.5334, allocations: 137.1 kB / 0.6004 GB, free: 2.898 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.544e-06/0.5334, allocations: 3.953 kB / 0.6004 GB, free: 2.895 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.257e-05/0.5334, allocations: 12.39 kB / 0.6004 GB, free: 2.883 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.11e-07/0.5334, allocations: 0 / 0.6004 GB, free: 2.883 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.5334, allocations: 0 / 0.6004 GB, free: 2.883 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.5334, allocations: 3.938 kB / 0.6004 GB, free: 2.879 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.587e-05/0.5335, allocations: 153.7 kB / 0.6005 GB, free: 2.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.5335, allocations: 0 / 0.6005 GB, free: 2.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.5335, allocations: 0 / 0.6005 GB, free: 2.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.5335, allocations: 3.953 kB / 0.6005 GB, free: 2.676 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-06/0.5336, allocations: 4 kB / 0.6005 GB, free: 2.672 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.5336, allocations: 0 / 0.6005 GB, free: 2.672 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.5336, allocations: 0 / 0.6005 GB, free: 2.672 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.987e-05/0.5337, allocations: 94.58 kB / 0.6006 GB, free: 2.559 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.194e-05/0.5337, allocations: 77.73 kB / 0.6007 GB, free: 2.465 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.5337, allocations: 7.953 kB / 0.6007 GB, free: 2.457 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.257e-06/0.5337, allocations: 4 kB / 0.6007 GB, free: 2.453 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.533e-05/0.5338, allocations: 4.031 kB / 0.6007 GB, free: 2.449 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.5338, allocations: 0.8125 kB / 0.6007 GB, free: 2.449 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.728e-05/0.5338, allocations: 75.28 kB / 0.6008 GB, free: 2.375 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5338, allocations: 0 / 0.6008 GB, free: 2.375 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002284/0.534, allocations: 42.3 kB / 0.6008 GB, free: 2.336 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.0005039/0.5345, allocations: 273.3 kB / 0.6011 GB, free: 2.113 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.314e-05/0.5346, allocations: 64.41 kB / 0.6011 GB, free: 2.039 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5346, allocations: 0 / 0.6011 GB, free: 2.039 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.68e-05/0.5347, allocations: 52.16 kB / 0.6012 GB, free: 1.977 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.835e-05/0.5348, allocations: 4 kB / 0.6012 GB, free: 1.973 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001513/0.5349, allocations: 53.11 kB / 0.6012 GB, free: 1.902 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000223/0.5351, allocations: 0.677 MB / 0.6019 GB, free: 1.199 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 8.546e-06/0.5352, allocations: 0 / 0.6019 GB, free: 1.199 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.496e-06/0.5352, allocations: 7.438 kB / 0.6019 GB, free: 1.191 MB / 394.7 MB Notification: Performance of SimCode: time 2.21e-07/0.5352, allocations: 0 / 0.6019 GB, free: 1.191 MB / 394.7 MB Notification: Performance of Templates: time 0.003083/0.5383, allocations: 0.9257 MB / 0.6028 GB, free: 280 kB / 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