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.001036/0.001036, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.201/1.201, allocations: 227.2 MB / 245 MB, free: 7.574 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008526/0.0008525, allocations: 104.1 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2966/0.2966, allocations: 45.23 MB / 394.7 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002584/0.0002584, allocations: 8 kB / 468.4 MB, free: 7.77 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3006, allocations: 63.25 MB / 0.5192 GB, free: 43.8 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0922/0.3928, allocations: 87.13 MB / 0.6043 GB, free: 2.527 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001771/0.393, allocations: 67.97 kB / 0.6043 GB, free: 2.461 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005842/0.3989, allocations: 2.313 MB / 0.6066 GB, free: 152 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3989, allocations: 0.6875 kB / 0.6066 GB, free: 152 kB / 410.7 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.3989, allocations: 0 / 0.6066 GB, free: 152 kB / 410.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.0002816/0.3992, allocations: 371 kB / 0.6069 GB, free: 15.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3993, allocations: 8.031 kB / 0.6069 GB, free: 15.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.67e-05/0.3993, allocations: 3.906 kB / 0.6069 GB, free: 15.72 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.307e-05/0.3994, allocations: 167 kB / 0.6071 GB, free: 15.52 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.3994, allocations: 5.438 kB / 0.6071 GB, free: 15.52 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.756e-06/0.3994, allocations: 0 / 0.6071 GB, free: 15.52 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.887e-05/0.3995, allocations: 33.69 kB / 0.6071 GB, free: 15.48 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.71e-06/0.3995, allocations: 0.625 kB / 0.6071 GB, free: 15.48 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-06/0.3995, allocations: 0.625 kB / 0.6071 GB, free: 15.48 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-06/0.3995, allocations: 0 / 0.6071 GB, free: 15.48 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.639e-05/0.3995, allocations: 4.625 kB / 0.6071 GB, free: 15.47 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001067/0.3996, allocations: 147.3 kB / 0.6073 GB, free: 15.28 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.308e-05/0.3997, allocations: 26.5 kB / 0.6073 GB, free: 15.25 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.635e-06/0.3997, allocations: 4.094 kB / 0.6073 GB, free: 15.24 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.3997, allocations: 57.52 kB / 0.6074 GB, free: 15.17 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.3997, allocations: 0 / 0.6074 GB, free: 15.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001386/0.3999, allocations: 60.31 kB / 0.6074 GB, free: 15.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/0.3999, allocations: 78.11 kB / 0.6075 GB, free: 15.01 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.826e-05/0.4, allocations: 89 kB / 0.6076 GB, free: 14.91 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.064e-05/0.4, allocations: 30.47 kB / 0.6076 GB, free: 14.88 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.515e-05/0.4, allocations: 80.14 kB / 0.6077 GB, free: 14.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.317e-05/0.4, allocations: 0.7188 kB / 0.6077 GB, free: 14.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.783e-06/0.4001, allocations: 4 kB / 0.6077 GB, free: 14.79 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.986e-05/0.4001, allocations: 311.6 kB / 0.608 GB, free: 14.48 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.037e-05/0.4002, allocations: 4.5 kB / 0.608 GB, free: 14.48 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.158e-06/0.4002, allocations: 1.031 kB / 0.608 GB, free: 14.48 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.3e-05/0.4002, allocations: 29.7 kB / 0.608 GB, free: 14.44 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.4002, allocations: 4.656 kB / 0.608 GB, free: 14.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.289e-05/0.4003, allocations: 60.2 kB / 0.6081 GB, free: 14.37 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.882e-05/0.4003, allocations: 41.69 kB / 0.6081 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.4003, allocations: 0.6875 kB / 0.6081 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.819e-06/0.4003, allocations: 0 / 0.6081 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.4003, allocations: 0.8438 kB / 0.6081 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.4003, allocations: 0 / 0.6081 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.301e-05/0.4004, allocations: 0.75 kB / 0.6081 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.4004, allocations: 7.938 kB / 0.6081 GB, free: 14.31 MB / 426.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.488e-05/0.4004, allocations: 134.7 kB / 0.6083 GB, free: 14.17 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.245e-06/0.4005, allocations: 3.953 kB / 0.6083 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.438e-06/0.4005, allocations: 6.719 kB / 0.6083 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.4005, allocations: 7.984 kB / 0.6083 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.4005, allocations: 0 / 0.6083 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.4005, allocations: 0 / 0.6083 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.224e-05/0.4006, allocations: 145.6 kB / 0.6084 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.4006, allocations: 1.156 kB / 0.6084 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.4006, allocations: 0 / 0.6084 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.4006, allocations: 7.953 kB / 0.6084 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.43e-06/0.4006, allocations: 0.5625 kB / 0.6084 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.4006, allocations: 0 / 0.6084 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-07/0.4006, allocations: 3.969 kB / 0.6084 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.486e-05/0.4007, allocations: 90.83 kB / 0.6085 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.478e-05/0.4007, allocations: 77.11 kB / 0.6086 GB, free: 13.75 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.4008, allocations: 3.953 kB / 0.6086 GB, free: 13.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.997e-06/0.4008, allocations: 3.984 kB / 0.6086 GB, free: 13.74 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.595e-05/0.4008, allocations: 7.984 kB / 0.6086 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.4008, allocations: 4 kB / 0.6086 GB, free: 13.73 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.427e-05/0.4008, allocations: 79.53 kB / 0.6087 GB, free: 13.65 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4008, allocations: 0 / 0.6087 GB, free: 13.65 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002229/0.4011, allocations: 35.98 kB / 0.6087 GB, free: 13.62 MB / 426.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 (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.0004647/0.4015, allocations: 288.8 kB / 0.609 GB, free: 13.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 7.21e-05/0.4016, allocations: 55.41 kB / 0.6091 GB, free: 13.33 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.4016, allocations: 0 / 0.6091 GB, free: 13.33 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 2.413e-05/0.4017, allocations: 55.41 kB / 0.6091 GB, free: 13.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.006e-05/0.4017, allocations: 3.984 kB / 0.6091 GB, free: 13.26 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001358/0.4019, allocations: 79.38 kB / 0.6092 GB, free: 13.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001816/0.4021, allocations: 0.6772 MB / 0.6099 GB, free: 12.46 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 4.368e-06/0.4021, allocations: 0 / 0.6099 GB, free: 12.46 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.907e-06/0.4021, allocations: 11.44 kB / 0.6099 GB, free: 12.45 MB / 426.7 MB Notification: Performance of SimCode: time 2.1e-07/0.4021, allocations: 0 / 0.6099 GB, free: 12.45 MB / 426.7 MB Notification: Performance of Templates: time 0.0028/0.4049, allocations: 0.9293 MB / 0.6108 GB, free: 11.52 MB / 426.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