Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 179.7 kB / 18.09 MB, free: 3.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 223.3 MB / 242.1 MB, free: 11.66 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008217/0.0008216, allocations: 87.08 kB / 293.3 MB, free: 10.76 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3381/0.3381, allocations: 44.14 MB / 388.5 MB, free: 38.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004742/0.0004744, allocations: 8 kB / 461.1 MB, free: 1.316 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4223/0.4228, allocations: 61.88 MB / 0.5107 GB, free: 38.29 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1661/0.589, allocations: 86.08 MB / 0.5948 GB, free: 8.973 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003394/0.5894, allocations: 71.95 kB / 0.5949 GB, free: 8.906 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01051/0.5999, allocations: 2.225 MB / 0.597 GB, free: 6.676 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.6, allocations: 0 / 0.597 GB, free: 6.676 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.6, allocations: 0 / 0.597 GB, free: 6.676 MB / 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.0004264/0.6005, allocations: 357.3 kB / 0.5974 GB, free: 6.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/0.6005, allocations: 8.031 kB / 0.5974 GB, free: 6.262 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.844e-05/0.6006, allocations: 4.938 kB / 0.5974 GB, free: 6.258 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/0.6007, allocations: 172.1 kB / 0.5975 GB, free: 6.055 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.6008, allocations: 4.375 kB / 0.5975 GB, free: 6.051 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.574e-05/0.6008, allocations: 8.297 kB / 0.5976 GB, free: 6.043 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.6009, allocations: 34.27 kB / 0.5976 GB, free: 6.004 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.601, allocations: 192 / 0.5976 GB, free: 6.004 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.601, allocations: 3.938 kB / 0.5976 GB, free: 6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.601, allocations: 0 / 0.5976 GB, free: 6 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.219e-05/0.601, allocations: 0 / 0.5976 GB, free: 6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001853/0.6012, allocations: 149.7 kB / 0.5977 GB, free: 5.805 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.333e-05/0.6013, allocations: 26.45 kB / 0.5978 GB, free: 5.77 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.746e-05/0.6014, allocations: 4.859 kB / 0.5978 GB, free: 5.762 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.008e-05/0.6014, allocations: 96 / 0.5978 GB, free: 5.762 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.042e-05/0.6015, allocations: 64.27 kB / 0.5978 GB, free: 5.684 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 2.004e-06/0.6015, allocations: 0 / 0.5978 GB, free: 5.684 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002291/0.6017, allocations: 67.33 kB / 0.5979 GB, free: 5.605 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.305e-05/0.6018, allocations: 77.11 kB / 0.598 GB, free: 5.512 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.218e-05/0.6019, allocations: 93.89 kB / 0.5981 GB, free: 5.41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.6019, allocations: 33.64 kB / 0.5981 GB, free: 5.371 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.17e-05/0.602, allocations: 80.14 kB / 0.5982 GB, free: 5.289 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.134e-05/0.602, allocations: 4 kB / 0.5982 GB, free: 5.285 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.122e-06/0.602, allocations: 4 kB / 0.5982 GB, free: 5.281 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.6022, allocations: 310.8 kB / 0.5985 GB, free: 4.969 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.311e-05/0.6022, allocations: 0 / 0.5985 GB, free: 4.969 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.567e-06/0.6022, allocations: 0 / 0.5985 GB, free: 4.969 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.761e-05/0.6023, allocations: 68.31 kB / 0.5985 GB, free: 4.887 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.6023, allocations: 0 / 0.5985 GB, free: 4.887 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001174/0.6025, allocations: 63.41 kB / 0.5986 GB, free: 4.812 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.4e-05/0.6025, allocations: 29.7 kB / 0.5986 GB, free: 4.777 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.6026, allocations: 0 / 0.5986 GB, free: 4.777 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.6026, allocations: 3.938 kB / 0.5986 GB, free: 4.773 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.218e-06/0.6026, allocations: 3.938 kB / 0.5986 GB, free: 4.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.6026, allocations: 4 kB / 0.5986 GB, free: 4.766 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.893e-05/0.6026, allocations: 0 / 0.5986 GB, free: 4.766 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.6027, allocations: 0 / 0.5986 GB, free: 4.766 MB / 410.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 0.0001202/0.6028, allocations: 143.6 kB / 0.5988 GB, free: 4.609 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.211e-05/0.6028, allocations: 0 / 0.5988 GB, free: 4.609 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.463e-05/0.6029, allocations: 10.66 kB / 0.5988 GB, free: 4.602 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.6029, allocations: 0 / 0.5988 GB, free: 4.602 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.6029, allocations: 7.938 kB / 0.5988 GB, free: 4.594 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.6029, allocations: 0 / 0.5988 GB, free: 4.594 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001353/0.603, allocations: 153.7 kB / 0.5989 GB, free: 4.395 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.6031, allocations: 0 / 0.5989 GB, free: 4.395 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.092e-06/0.6031, allocations: 0 / 0.5989 GB, free: 4.395 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.6031, allocations: 0 / 0.5989 GB, free: 4.395 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.6031, allocations: 7.938 kB / 0.5989 GB, free: 4.387 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.6031, allocations: 0 / 0.5989 GB, free: 4.387 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.6031, allocations: 0 / 0.5989 GB, free: 4.387 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001496/0.6033, allocations: 90.83 kB / 0.599 GB, free: 4.273 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.399e-05/0.6034, allocations: 81.11 kB / 0.5991 GB, free: 4.176 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.6034, allocations: 7.875 kB / 0.5991 GB, free: 4.168 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.664e-05/0.6034, allocations: 4 kB / 0.5991 GB, free: 4.164 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.997e-05/0.6034, allocations: 7.969 kB / 0.5991 GB, free: 4.156 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.739e-06/0.6035, allocations: 0 / 0.5991 GB, free: 4.156 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.788e-05/0.6035, allocations: 75.28 kB / 0.5992 GB, free: 4.082 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6035, allocations: 0 / 0.5992 GB, free: 4.082 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004408/0.604, allocations: 35.98 kB / 0.5992 GB, free: 4.047 MB / 410.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.0009254/0.6049, allocations: 283.3 kB / 0.5995 GB, free: 3.828 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001372/0.6051, allocations: 63.39 kB / 0.5996 GB, free: 3.754 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.6051, allocations: 3.938 kB / 0.5996 GB, free: 3.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 5.032e-05/0.6052, allocations: 51.41 kB / 0.5996 GB, free: 3.688 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002044/0.6054, allocations: 4 kB / 0.5996 GB, free: 3.684 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002518/0.6056, allocations: 82.83 kB / 0.5997 GB, free: 3.574 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.606, allocations: 0.677 MB / 0.6004 GB, free: 2.871 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.135e-06/0.606, allocations: 0 / 0.6004 GB, free: 2.871 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.678e-05/0.6061, allocations: 7.438 kB / 0.6004 GB, free: 2.863 MB / 410.7 MB Notification: Performance of SimCode: time 6.51e-07/0.6061, allocations: 0 / 0.6004 GB, free: 2.863 MB / 410.7 MB Notification: Performance of Templates: time 0.005862/0.6119, allocations: 0.9563 MB / 0.6013 GB, free: 1.906 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches