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.001029/0.001029, allocations: 175.9 kB / 17.06 MB, free: 5.098 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.27/1.27, allocations: 223.2 MB / 241 MB, free: 11.86 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.000876/0.0008761, allocations: 94.09 kB / 292.2 MB, free: 10.94 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.3028/0.3028, allocations: 44.22 MB / 387.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003311/0.000331, allocations: 8 kB / 459.9 MB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.2985, allocations: 61.9 MB / 0.5095 GB, free: 38.01 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1026/0.4011, allocations: 86.09 MB / 0.5936 GB, free: 9.066 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001955/0.4013, allocations: 67.97 kB / 0.5937 GB, free: 9 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005961/0.4073, allocations: 2.306 MB / 0.5959 GB, free: 6.691 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4074, allocations: 0 / 0.5959 GB, free: 6.691 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.4074, allocations: 0 / 0.5959 GB, free: 6.691 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.0003119/0.4077, allocations: 369.1 kB / 0.5963 GB, free: 6.277 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.4077, allocations: 8.031 kB / 0.5963 GB, free: 6.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.023e-05/0.4078, allocations: 7.938 kB / 0.5963 GB, free: 6.262 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.03e-05/0.4079, allocations: 159.1 kB / 0.5965 GB, free: 6.066 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.4079, allocations: 0 / 0.5965 GB, free: 6.066 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.085e-05/0.4079, allocations: 0 / 0.5965 GB, free: 6.066 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.634e-05/0.408, allocations: 41.58 kB / 0.5965 GB, free: 6.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-06/0.408, allocations: 0 / 0.5965 GB, free: 6.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-06/0.408, allocations: 0 / 0.5965 GB, free: 6.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.408, allocations: 4 kB / 0.5965 GB, free: 6.016 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.513e-05/0.408, allocations: 0 / 0.5965 GB, free: 6.016 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001323/0.4082, allocations: 149.7 kB / 0.5966 GB, free: 5.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.218e-05/0.4082, allocations: 18.52 kB / 0.5967 GB, free: 5.793 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.861e-06/0.4082, allocations: 0 / 0.5967 GB, free: 5.793 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.798e-05/0.4083, allocations: 64.19 kB / 0.5967 GB, free: 5.715 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.4083, allocations: 4.094 kB / 0.5967 GB, free: 5.711 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001698/0.4085, allocations: 67.36 kB / 0.5968 GB, free: 5.633 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.113e-05/0.4085, allocations: 81.11 kB / 0.5969 GB, free: 5.535 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.397e-05/0.4086, allocations: 88.91 kB / 0.597 GB, free: 5.441 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.088e-05/0.4086, allocations: 25.7 kB / 0.597 GB, free: 5.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.162e-05/0.4086, allocations: 80.14 kB / 0.5971 GB, free: 5.328 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.638e-05/0.4086, allocations: 0 / 0.5971 GB, free: 5.328 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.753e-06/0.4086, allocations: 0 / 0.5971 GB, free: 5.328 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.4088, allocations: 314.8 kB / 0.5974 GB, free: 5.012 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.668e-06/0.4088, allocations: 8.125 kB / 0.5974 GB, free: 5.004 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.382e-06/0.4088, allocations: 3.938 kB / 0.5974 GB, free: 5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.583e-05/0.4088, allocations: 29.7 kB / 0.5974 GB, free: 4.965 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4088, allocations: 0 / 0.5974 GB, free: 4.965 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.917e-05/0.4089, allocations: 59.41 kB / 0.5974 GB, free: 4.895 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.379e-05/0.4089, allocations: 29.7 kB / 0.5975 GB, free: 4.859 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.409, allocations: 0 / 0.5975 GB, free: 4.859 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.409, allocations: 7.984 kB / 0.5975 GB, free: 4.852 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.665e-06/0.409, allocations: 3.953 kB / 0.5975 GB, free: 4.848 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.409, allocations: 4.094 kB / 0.5975 GB, free: 4.844 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.222e-05/0.409, allocations: 0 / 0.5975 GB, free: 4.844 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.409, allocations: 0 / 0.5975 GB, free: 4.844 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.0001025/0.4091, allocations: 136.1 kB / 0.5976 GB, free: 4.695 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.386e-06/0.4092, allocations: 0 / 0.5976 GB, free: 4.695 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.72e-05/0.4092, allocations: 10.66 kB / 0.5976 GB, free: 4.688 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.4092, allocations: 0 / 0.5976 GB, free: 4.688 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.4092, allocations: 3.953 kB / 0.5976 GB, free: 4.684 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.4092, allocations: 0 / 0.5976 GB, free: 4.684 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/0.4093, allocations: 157.7 kB / 0.5978 GB, free: 4.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.4093, allocations: 0 / 0.5978 GB, free: 4.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.424e-06/0.4093, allocations: 4 kB / 0.5978 GB, free: 4.477 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.4093, allocations: 0 / 0.5978 GB, free: 4.477 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.4094, allocations: 3.938 kB / 0.5978 GB, free: 4.473 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.4094, allocations: 0 / 0.5978 GB, free: 4.473 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.4094, allocations: 4 kB / 0.5978 GB, free: 4.469 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000112/0.4095, allocations: 94.77 kB / 0.5979 GB, free: 4.352 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.789e-05/0.4095, allocations: 81.14 kB / 0.598 GB, free: 4.254 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.4096, allocations: 4 kB / 0.598 GB, free: 4.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.865e-06/0.4096, allocations: 0 / 0.598 GB, free: 4.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.189e-05/0.4096, allocations: 0 / 0.598 GB, free: 4.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.4096, allocations: 3.938 kB / 0.598 GB, free: 4.246 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.393e-05/0.4096, allocations: 75.28 kB / 0.598 GB, free: 4.172 MB / 410.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4096, allocations: 0 / 0.598 GB, free: 4.172 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002726/0.4099, allocations: 51.92 kB / 0.5981 GB, free: 4.121 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.0006264/0.4106, allocations: 286 kB / 0.5984 GB, free: 3.898 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001006/0.4107, allocations: 59.34 kB / 0.5984 GB, free: 3.828 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.4107, allocations: 4.062 kB / 0.5984 GB, free: 3.824 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.115e-05/0.4107, allocations: 59.41 kB / 0.5985 GB, free: 3.754 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.706e-05/0.4108, allocations: 0 / 0.5985 GB, free: 3.754 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002079/0.411, allocations: 80.86 kB / 0.5986 GB, free: 3.648 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002891/0.4113, allocations: 0.6692 MB / 0.5992 GB, free: 2.953 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.721e-06/0.4113, allocations: 0 / 0.5992 GB, free: 2.953 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.155e-05/0.4114, allocations: 7.438 kB / 0.5992 GB, free: 2.945 MB / 410.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4114, allocations: 4 kB / 0.5992 GB, free: 2.941 MB / 410.7 MB Notification: Performance of Templates: time 0.003148/0.4145, allocations: 0.9249 MB / 0.6001 GB, free: 2.02 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/jenkins/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