Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001235/0.001235, allocations: 199.2 kB / 8.542 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 225.5 MB / 234.4 MB, free: 3.367 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009739/0.000974, allocations: 88.59 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.223/0.223, allocations: 45.13 MB / 383.3 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.225e-06/8.296e-06, allocations: 0 / 452.6 MB, free: 76.24 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1417, allocations: 63.25 MB / 0.5038 GB, free: 13.07 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3386/0.4804, allocations: 86.31 MB / 0.5881 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000211/0.4806, allocations: 63.09 kB / 0.5881 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.00578/0.4864, allocations: 1.985 MB / 0.5901 GB, free: 15.21 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.4865, allocations: 0 / 0.5901 GB, free: 15.21 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.0003075/0.4868, allocations: 363.8 kB / 0.5904 GB, free: 14.81 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.4868, allocations: 8.031 kB / 0.5904 GB, free: 14.8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.153e-05/0.4869, allocations: 6.594 kB / 0.5904 GB, free: 14.8 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001075/0.487, allocations: 159.1 kB / 0.5906 GB, free: 14.6 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.487, allocations: 0.5 kB / 0.5906 GB, free: 14.6 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.384e-06/0.487, allocations: 0 / 0.5906 GB, free: 14.6 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.377e-05/0.4871, allocations: 3.984 kB / 0.5906 GB, free: 14.6 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.418e-05/0.4871, allocations: 29.7 kB / 0.5906 GB, free: 14.56 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.4871, allocations: 4 kB / 0.5906 GB, free: 14.56 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.4872, allocations: 7.906 kB / 0.5906 GB, free: 14.55 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.4872, allocations: 0 / 0.5906 GB, free: 14.55 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000131/0.4873, allocations: 122.2 kB / 0.5907 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.125e-05/0.4874, allocations: 25.98 kB / 0.5908 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.688e-05/0.4874, allocations: 8.797 kB / 0.5908 GB, free: 14.35 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.406e-06/0.4874, allocations: 0 / 0.5908 GB, free: 14.35 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.765e-05/0.4874, allocations: 64.25 kB / 0.5908 GB, free: 14.27 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.222e-06/0.4874, allocations: 0 / 0.5908 GB, free: 14.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001789/0.4876, allocations: 33.77 kB / 0.5909 GB, free: 14.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.4877, allocations: 77.11 kB / 0.5909 GB, free: 14.14 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.541e-05/0.4877, allocations: 85 kB / 0.591 GB, free: 14.05 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.132e-05/0.4878, allocations: 25.7 kB / 0.591 GB, free: 14.02 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.658e-05/0.4878, allocations: 83.64 kB / 0.5911 GB, free: 13.94 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.792e-05/0.4878, allocations: 3.906 kB / 0.5911 GB, free: 13.93 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.445e-06/0.4878, allocations: 0 / 0.5911 GB, free: 13.93 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.4879, allocations: 318.9 kB / 0.5914 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.438e-06/0.488, allocations: 4 kB / 0.5914 GB, free: 13.61 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.222e-06/0.488, allocations: 3.938 kB / 0.5914 GB, free: 13.61 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.828e-05/0.488, allocations: 0 / 0.5914 GB, free: 13.61 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/0.488, allocations: 0 / 0.5914 GB, free: 13.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.045e-05/0.4881, allocations: 37.69 kB / 0.5915 GB, free: 13.56 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.4881, allocations: 4 kB / 0.5915 GB, free: 13.56 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.4881, allocations: 0 / 0.5915 GB, free: 13.56 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.4882, allocations: 4.094 kB / 0.5915 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.213e-06/0.4882, allocations: 0.8438 kB / 0.5915 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.4882, allocations: 4 kB / 0.5915 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.155e-05/0.4882, allocations: 0 / 0.5915 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.136e-06/0.4882, allocations: 3.906 kB / 0.5915 GB, free: 13.55 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 9.206e-05/0.4883, allocations: 130.7 kB / 0.5916 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.285e-06/0.4883, allocations: 4 kB / 0.5916 GB, free: 13.4 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.415e-05/0.4883, allocations: 10.45 kB / 0.5916 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.4883, allocations: 3.984 kB / 0.5916 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.4884, allocations: 4 kB / 0.5916 GB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.4884, allocations: 3.938 kB / 0.5916 GB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.23e-05/0.4885, allocations: 126.2 kB / 0.5918 GB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.4885, allocations: 0 / 0.5918 GB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.074e-06/0.4885, allocations: 4 kB / 0.5918 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.4885, allocations: 0 / 0.5918 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.4885, allocations: 0 / 0.5918 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.4885, allocations: 0 / 0.5918 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.4885, allocations: 7.875 kB / 0.5918 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.78e-05/0.4886, allocations: 68.53 kB / 0.5918 GB, free: 13.12 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.745e-05/0.4887, allocations: 77.11 kB / 0.5919 GB, free: 13.03 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/0.4887, allocations: 3.984 kB / 0.5919 GB, free: 13.03 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.998e-06/0.4887, allocations: 4 kB / 0.5919 GB, free: 13.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.629e-05/0.4887, allocations: 0 / 0.5919 GB, free: 13.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.4887, allocations: 0 / 0.5919 GB, free: 13.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.122e-05/0.4888, allocations: 75.28 kB / 0.592 GB, free: 12.95 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002538/0.489, allocations: 35.38 kB / 0.592 GB, free: 12.92 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.0005593/0.4896, allocations: 270.3 kB / 0.5923 GB, free: 12.68 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.627e-05/0.4897, allocations: 29.7 kB / 0.5923 GB, free: 12.65 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4897, allocations: 0 / 0.5923 GB, free: 12.65 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.081e-05/0.4898, allocations: 33.14 kB / 0.5923 GB, free: 12.61 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.951e-05/0.4899, allocations: 0 / 0.5923 GB, free: 12.61 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001631/0.4901, allocations: 44.06 kB / 0.5924 GB, free: 12.55 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003832/0.4905, allocations: 0.684 MB / 0.593 GB, free: 11.84 MB / 394.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4905, allocations: 0 / 0.593 GB, free: 11.84 MB / 394.7 MB Notification: Performance of Templates: time 0.003452/0.4939, allocations: 0.9448 MB / 0.594 GB, free: 10.9 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches