Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008842/0.0008842, allocations: 192.2 kB / 7.804 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9997/0.9997, allocations: 205.2 MB / 213.4 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008027/0.0008027, allocations: 90.45 kB / 261.4 MB, free: 13.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1454/0.1454, allocations: 43.5 MB / 352.9 MB, free: 1.973 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.459e-06/4.479e-06, allocations: 0 / 417.7 MB, free: 40.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2064/0.2064, allocations: 58.84 MB / 476.6 MB, free: 5.199 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09814/0.3046, allocations: 84.13 MB / 0.5475 GB, free: 14.85 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000167/0.3048, allocations: 63.97 kB / 0.5476 GB, free: 14.79 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.005692/0.3105, allocations: 1.972 MB / 0.5495 GB, free: 12.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.3106, allocations: 8 kB / 0.5495 GB, free: 12.81 MB / 394.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.000234/0.3108, allocations: 360.1 kB / 0.5499 GB, free: 12.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.3109, allocations: 8.031 kB / 0.5499 GB, free: 12.4 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.512e-05/0.3109, allocations: 3.938 kB / 0.5499 GB, free: 12.4 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.228e-05/0.311, allocations: 167 kB / 0.55 GB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.311, allocations: 0 / 0.55 GB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-06/0.311, allocations: 4 kB / 0.5501 GB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.471e-05/0.311, allocations: 0 / 0.5501 GB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.351e-05/0.3111, allocations: 25.7 kB / 0.5501 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.31e-06/0.3111, allocations: 8 kB / 0.5501 GB, free: 12.15 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.967e-06/0.3111, allocations: 3.906 kB / 0.5501 GB, free: 12.15 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.3111, allocations: 0 / 0.5501 GB, free: 12.15 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.809e-05/0.3112, allocations: 126.2 kB / 0.5502 GB, free: 11.99 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.74e-05/0.3113, allocations: 14.58 kB / 0.5502 GB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.941e-05/0.3113, allocations: 16.88 kB / 0.5502 GB, free: 11.95 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.948e-06/0.3113, allocations: 0 / 0.5502 GB, free: 11.95 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.3113, allocations: 60.27 kB / 0.5503 GB, free: 11.87 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 7.41e-07/0.3113, allocations: 0 / 0.5503 GB, free: 11.87 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001304/0.3115, allocations: 29.7 kB / 0.5503 GB, free: 11.84 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.3115, allocations: 77.11 kB / 0.5504 GB, free: 11.74 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.441e-05/0.3115, allocations: 96.98 kB / 0.5505 GB, free: 11.64 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.867e-06/0.3116, allocations: 25.7 kB / 0.5505 GB, free: 11.61 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.161e-05/0.3116, allocations: 80.14 kB / 0.5506 GB, free: 11.53 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.83e-05/0.3116, allocations: 3.906 kB / 0.5506 GB, free: 11.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.763e-06/0.3116, allocations: 4.031 kB / 0.5506 GB, free: 11.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.414e-05/0.3117, allocations: 310.8 kB / 0.5509 GB, free: 11.21 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.521e-06/0.3117, allocations: 0 / 0.5509 GB, free: 11.21 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.33e-06/0.3117, allocations: 4 kB / 0.5509 GB, free: 11.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.925e-05/0.3118, allocations: 0 / 0.5509 GB, free: 11.2 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3118, allocations: 3.938 kB / 0.5509 GB, free: 11.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.189e-05/0.3118, allocations: 45.62 kB / 0.5509 GB, free: 11.15 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.917e-06/0.3119, allocations: 4 kB / 0.551 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.3119, allocations: 96 / 0.551 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.445e-06/0.3119, allocations: 4 kB / 0.551 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.3119, allocations: 0 / 0.551 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.517e-06/0.3119, allocations: 0 / 0.551 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.668e-06/0.3119, allocations: 0 / 0.551 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.3119, allocations: 7.906 kB / 0.551 GB, free: 11.13 MB / 394.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 () * 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.607e-05/0.312, allocations: 130.1 kB / 0.5511 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.895e-06/0.312, allocations: 3.984 kB / 0.5511 GB, free: 10.99 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.6e-05/0.312, allocations: 10.98 kB / 0.5511 GB, free: 10.98 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.312, allocations: 4 kB / 0.5511 GB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.312, allocations: 4 kB / 0.5511 GB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.312, allocations: 0 / 0.5511 GB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.597e-05/0.3121, allocations: 126.2 kB / 0.5512 GB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.01e-07/0.3121, allocations: 3.938 kB / 0.5512 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.51e-07/0.3121, allocations: 0 / 0.5512 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.3121, allocations: 0 / 0.5512 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.3121, allocations: 4 kB / 0.5512 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.71e-07/0.3121, allocations: 0 / 0.5512 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3121, allocations: 3.984 kB / 0.5512 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001034/0.3123, allocations: 64.98 kB / 0.5513 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.556e-05/0.3123, allocations: 85.09 kB / 0.5514 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.131e-05/0.3123, allocations: 0 / 0.5514 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.504e-06/0.3123, allocations: 0 / 0.5514 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.175e-05/0.3123, allocations: 4 kB / 0.5514 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.3123, allocations: 0 / 0.5514 GB, free: 10.61 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.07e-05/0.3124, allocations: 75.28 kB / 0.5515 GB, free: 10.54 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002161/0.3126, allocations: 35.98 kB / 0.5515 GB, free: 10.5 MB / 394.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) * 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.0003931/0.313, allocations: 263.1 kB / 0.5517 GB, free: 10.25 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 5.907e-05/0.3131, allocations: 33.64 kB / 0.5518 GB, free: 10.21 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.3131, allocations: 0 / 0.5518 GB, free: 10.21 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.537e-05/0.3131, allocations: 29.7 kB / 0.5518 GB, free: 10.18 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.277e-05/0.3132, allocations: 4.125 kB / 0.5518 GB, free: 10.18 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001056/0.3133, allocations: 44.06 kB / 0.5518 GB, free: 10.11 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001835/0.3135, allocations: 0.6879 MB / 0.5525 GB, free: 9.395 MB / 394.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3135, allocations: 0 / 0.5525 GB, free: 9.395 MB / 394.7 MB Notification: Performance of Templates: time 0.002663/0.3161, allocations: 0.931 MB / 0.5534 GB, free: 8.465 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestStreams/TestStreams.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches