Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000938/0.000938, allocations: 190.9 kB / 16.78 MB, free: 4.918 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 226.5 MB / 244.1 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000768/0.0007679, allocations: 99.8 kB / 296.1 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2997/0.2997, allocations: 44.82 MB / 392.9 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002789/0.000279, allocations: 8 kB / 465.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3064/0.3067, allocations: 62.95 MB / 0.5165 GB, free: 37.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1075/0.4142, allocations: 86.99 MB / 0.6014 GB, free: 2.426 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.4144, allocations: 59.97 kB / 0.6015 GB, free: 2.367 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00565/0.4201, allocations: 2.224 MB / 0.6036 GB, free: 144 kB / 410.7 MB Notification: Performance of FrontEnd: time 3.306e-06/0.4201, allocations: 3.984 kB / 0.6036 GB, free: 140 kB / 410.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.4201, allocations: 4 kB / 0.6036 GB, free: 136 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.000271/0.4204, allocations: 361.3 kB / 0.604 GB, free: 15.72 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.4205, allocations: 16.03 kB / 0.604 GB, free: 15.71 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.997e-05/0.4205, allocations: 4.875 kB / 0.604 GB, free: 15.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.336e-05/0.4206, allocations: 160.4 kB / 0.6042 GB, free: 15.51 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.4206, allocations: 384 / 0.6042 GB, free: 15.51 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.314e-06/0.4206, allocations: 384 / 0.6042 GB, free: 15.51 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.585e-05/0.4207, allocations: 30.27 kB / 0.6042 GB, free: 15.47 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.4207, allocations: 4.125 kB / 0.6042 GB, free: 15.47 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.435e-06/0.4207, allocations: 3.938 kB / 0.6042 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.4208, allocations: 0 / 0.6042 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.628e-05/0.4208, allocations: 3.984 kB / 0.6042 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001274/0.4209, allocations: 161.6 kB / 0.6044 GB, free: 15.25 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.541e-05/0.4209, allocations: 14.58 kB / 0.6044 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.267e-05/0.421, allocations: 8.953 kB / 0.6044 GB, free: 15.22 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.322e-06/0.421, allocations: 0 / 0.6044 GB, free: 15.22 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.421, allocations: 56.27 kB / 0.6044 GB, free: 15.15 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 1.864e-06/0.421, allocations: 0 / 0.6044 GB, free: 15.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001437/0.4212, allocations: 75.27 kB / 0.6045 GB, free: 15.06 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.998e-05/0.4212, allocations: 81.11 kB / 0.6046 GB, free: 14.96 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.121e-05/0.4213, allocations: 93.77 kB / 0.6047 GB, free: 14.86 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.092e-05/0.4213, allocations: 25.7 kB / 0.6047 GB, free: 14.83 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.516e-05/0.4213, allocations: 80.14 kB / 0.6048 GB, free: 14.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.647e-05/0.4213, allocations: 4 kB / 0.6048 GB, free: 14.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.884e-06/0.4213, allocations: 0 / 0.6048 GB, free: 14.75 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.411e-05/0.4214, allocations: 310.8 kB / 0.6051 GB, free: 14.43 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.336e-06/0.4214, allocations: 128 / 0.6051 GB, free: 14.43 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.611e-06/0.4215, allocations: 7.984 kB / 0.6051 GB, free: 14.43 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.41e-05/0.4215, allocations: 68.2 kB / 0.6051 GB, free: 14.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.4215, allocations: 0 / 0.6051 GB, free: 14.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.856e-05/0.4216, allocations: 59.41 kB / 0.6052 GB, free: 14.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.4216, allocations: 32.52 kB / 0.6052 GB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.4216, allocations: 0 / 0.6052 GB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.4216, allocations: 7.922 kB / 0.6052 GB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.4216, allocations: 4 kB / 0.6052 GB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.4216, allocations: 4.094 kB / 0.6052 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.105e-05/0.4217, allocations: 0 / 0.6052 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-06/0.4217, allocations: 0 / 0.6052 GB, free: 14.22 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.892e-05/0.4217, allocations: 135.5 kB / 0.6054 GB, free: 14.07 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.021e-06/0.4218, allocations: 3.938 kB / 0.6054 GB, free: 14.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.251e-05/0.4218, allocations: 10.66 kB / 0.6054 GB, free: 14.06 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.4218, allocations: 4 kB / 0.6054 GB, free: 14.06 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.4218, allocations: 0 / 0.6054 GB, free: 14.06 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.4218, allocations: 0 / 0.6054 GB, free: 14.06 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.749e-05/0.4219, allocations: 157.7 kB / 0.6055 GB, free: 13.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.4219, allocations: 0 / 0.6055 GB, free: 13.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.4219, allocations: 0 / 0.6055 GB, free: 13.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.4219, allocations: 0 / 0.6055 GB, free: 13.86 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.4219, allocations: 7.875 kB / 0.6056 GB, free: 13.85 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.4219, allocations: 0 / 0.6056 GB, free: 13.85 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.4219, allocations: 0 / 0.6056 GB, free: 13.85 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.419e-05/0.422, allocations: 90.83 kB / 0.6056 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.731e-05/0.422, allocations: 81.14 kB / 0.6057 GB, free: 13.64 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.4221, allocations: 7.938 kB / 0.6057 GB, free: 13.63 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.005e-06/0.4221, allocations: 3.938 kB / 0.6057 GB, free: 13.62 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.432e-05/0.4221, allocations: 0 / 0.6057 GB, free: 13.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.544e-06/0.4221, allocations: 0 / 0.6057 GB, free: 13.62 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.659e-05/0.4221, allocations: 75.28 kB / 0.6058 GB, free: 13.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4221, allocations: 0 / 0.6058 GB, free: 13.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002305/0.4224, allocations: 47.97 kB / 0.6058 GB, free: 13.5 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.0005206/0.4229, allocations: 280.2 kB / 0.6061 GB, free: 13.28 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 8.286e-05/0.423, allocations: 59.34 kB / 0.6062 GB, free: 13.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.423, allocations: 12.06 kB / 0.6062 GB, free: 13.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 2.484e-05/0.423, allocations: 51.41 kB / 0.6062 GB, free: 13.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001165/0.4232, allocations: 4 kB / 0.6062 GB, free: 13.13 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001572/0.4233, allocations: 96.45 kB / 0.6063 GB, free: 13 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001939/0.4235, allocations: 0.6731 MB / 0.607 GB, free: 12.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.396e-06/0.4235, allocations: 7.438 kB / 0.607 GB, free: 12.3 MB / 426.7 MB Notification: Performance of SimCode: time 2.1e-07/0.4236, allocations: 0 / 0.607 GB, free: 12.3 MB / 426.7 MB Notification: Performance of Templates: time 0.002411/0.426, allocations: 1.156 MB / 0.6081 GB, free: 11.14 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches