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.001406/0.001414, allocations: 199.8 kB / 18.11 MB, free: 3.609 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 226.5 MB / 245.4 MB, free: 8.168 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008242/0.000824, allocations: 103.4 kB / 297.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3323/0.3323, allocations: 44.82 MB / 394.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000294/0.0002941, allocations: 8 kB / 467.9 MB, free: 12.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.341, allocations: 62.95 MB / 0.5184 GB, free: 37.38 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1025/0.4435, allocations: 86.98 MB / 0.6033 GB, free: 2.34 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.4437, allocations: 67.95 kB / 0.6034 GB, free: 2.277 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00579/0.4495, allocations: 2.225 MB / 0.6056 GB, free: 48 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.564e-06/0.4496, allocations: 0 / 0.6056 GB, free: 48 kB / 410.7 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.4496, allocations: 0 / 0.6056 GB, free: 48 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.0003796/0.45, allocations: 363.5 kB / 0.6059 GB, free: 15.63 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.45, allocations: 8.031 kB / 0.6059 GB, free: 15.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.249e-05/0.4501, allocations: 4.938 kB / 0.6059 GB, free: 15.62 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.4502, allocations: 164.3 kB / 0.6061 GB, free: 15.42 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.4502, allocations: 8.375 kB / 0.6061 GB, free: 15.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.177e-06/0.4502, allocations: 384 / 0.6061 GB, free: 15.41 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.627e-05/0.4503, allocations: 34.19 kB / 0.6061 GB, free: 15.38 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.4503, allocations: 192 / 0.6061 GB, free: 15.38 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.4503, allocations: 7.938 kB / 0.6062 GB, free: 15.37 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.4503, allocations: 0 / 0.6062 GB, free: 15.37 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.608e-05/0.4504, allocations: 0 / 0.6062 GB, free: 15.37 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001329/0.4505, allocations: 149.7 kB / 0.6063 GB, free: 15.17 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.999e-05/0.4505, allocations: 18.61 kB / 0.6063 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.401e-05/0.4506, allocations: 4.859 kB / 0.6063 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.236e-06/0.4506, allocations: 0 / 0.6063 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.65e-05/0.4506, allocations: 68.25 kB / 0.6064 GB, free: 15.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.4506, allocations: 0 / 0.6064 GB, free: 15.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.000146/0.4508, allocations: 63.34 kB / 0.6064 GB, free: 14.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.4508, allocations: 85.23 kB / 0.6065 GB, free: 14.88 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.812e-05/0.4509, allocations: 93.77 kB / 0.6066 GB, free: 14.78 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.205e-05/0.4509, allocations: 25.7 kB / 0.6066 GB, free: 14.75 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.094e-05/0.451, allocations: 84.08 kB / 0.6067 GB, free: 14.66 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.331e-05/0.451, allocations: 0 / 0.6067 GB, free: 14.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.573e-06/0.451, allocations: 0 / 0.6067 GB, free: 14.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.4511, allocations: 314.8 kB / 0.607 GB, free: 14.34 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.005e-05/0.4511, allocations: 4 kB / 0.607 GB, free: 14.34 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.294e-06/0.4511, allocations: 7.938 kB / 0.607 GB, free: 14.33 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.548e-05/0.4512, allocations: 64.27 kB / 0.6071 GB, free: 14.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.4512, allocations: 0 / 0.6071 GB, free: 14.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.018e-05/0.4513, allocations: 59.39 kB / 0.6071 GB, free: 14.18 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.4513, allocations: 33.7 kB / 0.6072 GB, free: 14.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.4513, allocations: 0 / 0.6072 GB, free: 14.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.4513, allocations: 3.938 kB / 0.6072 GB, free: 14.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.4513, allocations: 0 / 0.6072 GB, free: 14.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.4513, allocations: 0 / 0.6072 GB, free: 14.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.327e-05/0.4513, allocations: 4.094 kB / 0.6072 GB, free: 14.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-06/0.4514, allocations: 4 kB / 0.6072 GB, free: 14.13 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.714e-05/0.4514, allocations: 135.5 kB / 0.6073 GB, free: 13.98 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.845e-06/0.4514, allocations: 0 / 0.6073 GB, free: 13.98 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.408e-05/0.4515, allocations: 22.58 kB / 0.6073 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.4515, allocations: 0 / 0.6073 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.4515, allocations: 3.938 kB / 0.6073 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.4515, allocations: 0 / 0.6073 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.407e-05/0.4516, allocations: 141.7 kB / 0.6075 GB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.4516, allocations: 0 / 0.6075 GB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-07/0.4516, allocations: 4 kB / 0.6075 GB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.4516, allocations: 4 kB / 0.6075 GB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.4516, allocations: 3.938 kB / 0.6075 GB, free: 13.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.4516, allocations: 0 / 0.6075 GB, free: 13.76 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.4516, allocations: 7.969 kB / 0.6075 GB, free: 13.75 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.678e-05/0.4517, allocations: 86.84 kB / 0.6076 GB, free: 13.64 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.731e-05/0.4518, allocations: 77.11 kB / 0.6077 GB, free: 13.55 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.362e-05/0.4518, allocations: 11.95 kB / 0.6077 GB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.295e-06/0.4518, allocations: 0 / 0.6077 GB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.482e-05/0.4518, allocations: 7.984 kB / 0.6077 GB, free: 13.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.4518, allocations: 0 / 0.6077 GB, free: 13.53 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.434e-05/0.4518, allocations: 75.28 kB / 0.6077 GB, free: 13.46 MB / 426.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4518, allocations: 0 / 0.6077 GB, free: 13.46 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002568/0.4521, allocations: 39.94 kB / 0.6078 GB, free: 13.42 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.0005371/0.4527, allocations: 290.7 kB / 0.6081 GB, free: 13.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 8.83e-05/0.4528, allocations: 59.41 kB / 0.6081 GB, free: 13.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4528, allocations: 0 / 0.6081 GB, free: 13.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 3.45e-05/0.4528, allocations: 63.45 kB / 0.6082 GB, free: 13.04 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001225/0.4529, allocations: 0 / 0.6082 GB, free: 13.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001644/0.4531, allocations: 70.77 kB / 0.6082 GB, free: 12.94 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002071/0.4533, allocations: 0.6731 MB / 0.6089 GB, free: 12.24 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 4.528e-06/0.4533, allocations: 3.938 kB / 0.6089 GB, free: 12.24 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.147e-05/0.4534, allocations: 11.44 kB / 0.6089 GB, free: 12.23 MB / 426.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4534, allocations: 0 / 0.6089 GB, free: 12.23 MB / 426.7 MB Notification: Performance of Templates: time 0.003102/0.4565, allocations: 0.9655 MB / 0.6099 GB, free: 11.26 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/jenkins1/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