Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001461/0.00146, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.995/1.995, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001129/0.001128, allocations: 84.2 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2914/0.2914, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.429e-05/1.429e-05, allocations: 4 kB / 418.2 MB, free: 41.02 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4196/0.4196, allocations: 58.84 MB / 477.1 MB, free: 5.258 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1622/0.5819, allocations: 84.21 MB / 0.5481 GB, free: 15.11 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002279/0.5821, allocations: 59.97 kB / 0.5482 GB, free: 15.05 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.009482/0.5916, allocations: 2.289 MB / 0.5504 GB, free: 12.76 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.5917, allocations: 0 / 0.5504 GB, free: 12.76 MB / 395.1 MB Notification: Performance of Transformations before backend: time 4.82e-06/0.5917, allocations: 0 / 0.5504 GB, free: 12.76 MB / 395.1 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.0003589/0.5921, allocations: 360.2 kB / 0.5508 GB, free: 12.36 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.5922, allocations: 8.031 kB / 0.5508 GB, free: 12.35 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.509e-05/0.5922, allocations: 4 kB / 0.5508 GB, free: 12.35 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.5923, allocations: 163 kB / 0.5509 GB, free: 12.15 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.5924, allocations: 4 kB / 0.5509 GB, free: 12.14 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.045e-06/0.5924, allocations: 0 / 0.5509 GB, free: 12.14 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.132e-05/0.5924, allocations: 0 / 0.5509 GB, free: 12.14 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.136e-05/0.5925, allocations: 37.69 kB / 0.551 GB, free: 12.1 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.5925, allocations: 0 / 0.551 GB, free: 12.1 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.467e-06/0.5925, allocations: 0 / 0.551 GB, free: 12.1 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.754e-06/0.5925, allocations: 0 / 0.551 GB, free: 12.1 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001299/0.5927, allocations: 130.2 kB / 0.5511 GB, free: 11.94 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.632e-05/0.5927, allocations: 22.55 kB / 0.5511 GB, free: 11.91 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.612e-05/0.5928, allocations: 8.859 kB / 0.5511 GB, free: 11.89 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.955e-06/0.5928, allocations: 0 / 0.5511 GB, free: 11.89 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.589e-05/0.5928, allocations: 56.27 kB / 0.5512 GB, free: 11.82 MB / 395.1 MB Notification: Performance of pre-optimization done (n=1): time 1.452e-06/0.5929, allocations: 0 / 0.5512 GB, free: 11.82 MB / 395.1 MB Notification: Performance of matching and sorting (n=1): time 0.00019/0.5931, allocations: 41.75 kB / 0.5512 GB, free: 11.78 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.5931, allocations: 77.11 kB / 0.5513 GB, free: 11.68 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.184e-05/0.5932, allocations: 85 kB / 0.5514 GB, free: 11.59 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.5932, allocations: 33.67 kB / 0.5514 GB, free: 11.55 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.11e-05/0.5933, allocations: 158.5 kB / 0.5516 GB, free: 11.4 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.587e-05/0.5933, allocations: 0 / 0.5516 GB, free: 11.4 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-06/0.5933, allocations: 0 / 0.5516 GB, free: 11.4 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.5934, allocations: 310.8 kB / 0.5518 GB, free: 11.09 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.907e-06/0.5935, allocations: 0 / 0.5518 GB, free: 11.09 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.054e-05/0.5935, allocations: 3.984 kB / 0.5519 GB, free: 11.08 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.2e-05/0.5935, allocations: 7.938 kB / 0.5519 GB, free: 11.07 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.5936, allocations: 64 / 0.5519 GB, free: 11.07 MB / 395.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.613e-05/0.5937, allocations: 49.64 kB / 0.5519 GB, free: 11.02 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.026e-05/0.5937, allocations: 29.7 kB / 0.5519 GB, free: 10.98 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.5937, allocations: 0 / 0.5519 GB, free: 10.98 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.5938, allocations: 0 / 0.5519 GB, free: 10.98 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.953e-06/0.5938, allocations: 0 / 0.5519 GB, free: 10.98 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.605e-06/0.5938, allocations: 4 kB / 0.5519 GB, free: 10.98 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.688e-05/0.5938, allocations: 0 / 0.5519 GB, free: 10.98 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.5938, allocations: 0 / 0.5519 GB, free: 10.98 MB / 395.1 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 () * 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 9.953e-05/0.5939, allocations: 126.7 kB / 0.5521 GB, free: 10.84 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.535e-05/0.594, allocations: 11.98 kB / 0.5521 GB, free: 10.83 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.375e-05/0.594, allocations: 3.75 kB / 0.5521 GB, free: 10.83 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.594, allocations: 3.984 kB / 0.5521 GB, free: 10.82 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.594, allocations: 0 / 0.5521 GB, free: 10.82 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.594, allocations: 0 / 0.5521 GB, free: 10.82 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.386e-05/0.5941, allocations: 122.2 kB / 0.5522 GB, free: 10.67 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.5941, allocations: 4 kB / 0.5522 GB, free: 10.66 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.162e-06/0.5941, allocations: 0 / 0.5522 GB, free: 10.66 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.5942, allocations: 0 / 0.5522 GB, free: 10.66 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.148e-06/0.5942, allocations: 4 kB / 0.5522 GB, free: 10.66 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.5942, allocations: 7.953 kB / 0.5522 GB, free: 10.65 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.5942, allocations: 3.938 kB / 0.5522 GB, free: 10.65 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000129/0.5943, allocations: 65.12 kB / 0.5523 GB, free: 10.57 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.234e-05/0.5944, allocations: 77.11 kB / 0.5523 GB, free: 10.47 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.795e-05/0.5944, allocations: 3.984 kB / 0.5524 GB, free: 10.47 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.156e-05/0.5944, allocations: 0 / 0.5524 GB, free: 10.47 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.72e-05/0.5945, allocations: 7.953 kB / 0.5524 GB, free: 10.46 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.5945, allocations: 4.031 kB / 0.5524 GB, free: 10.46 MB / 395.1 MB Notification: Performance of sorting global known variables: time 3.443e-05/0.5945, allocations: 79.22 kB / 0.5524 GB, free: 10.38 MB / 395.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5945, allocations: 0 / 0.5524 GB, free: 10.38 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003645/0.5949, allocations: 39.98 kB / 0.5525 GB, free: 10.34 MB / 395.1 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) * 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.0007243/0.5956, allocations: 273.4 kB / 0.5527 GB, free: 10.08 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0001171/0.5958, allocations: 59.41 kB / 0.5528 GB, free: 10.01 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.5958, allocations: 0 / 0.5528 GB, free: 10.01 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 3.721e-05/0.5958, allocations: 51.41 kB / 0.5528 GB, free: 9.949 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001049/0.596, allocations: 4 kB / 0.5528 GB, free: 9.945 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001784/0.5961, allocations: 69.77 kB / 0.5529 GB, free: 9.848 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002755/0.5964, allocations: 0.6745 MB / 0.5536 GB, free: 9.148 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.617e-05/0.5965, allocations: 15.44 kB / 0.5536 GB, free: 9.133 MB / 395.1 MB Notification: Performance of SimCode: time 8.42e-07/0.5965, allocations: 0 / 0.5536 GB, free: 9.133 MB / 395.1 MB Notification: Performance of Templates: time 0.004077/0.6006, allocations: 1.197 MB / 0.5548 GB, free: 7.934 MB / 395.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestStreams/TestStreams.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches