Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") [: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.00141/0.001409, allocations: 196.1 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 225.5 MB / 234.4 MB, free: 3.449 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009283/0.0009283, allocations: 92.09 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1984/0.1984, allocations: 45.13 MB / 383.3 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.572e-06/6.602e-06, allocations: 0 / 452.6 MB, free: 76.22 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1215, allocations: 63.24 MB / 0.5038 GB, free: 13.05 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3785/0.5001, allocations: 86.07 MB / 0.5878 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001581/0.5003, allocations: 60.91 kB / 0.5879 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.003729/0.504, allocations: 1.357 MB / 0.5892 GB, free: 15.71 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.5041, allocations: 0 / 0.5892 GB, free: 15.71 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.0002697/0.5043, allocations: 357.2 kB / 0.5895 GB, free: 15.32 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.5044, allocations: 8.031 kB / 0.5896 GB, free: 15.31 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.842e-05/0.5044, allocations: 0 / 0.5896 GB, free: 15.31 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.979e-05/0.5045, allocations: 163.9 kB / 0.5897 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.5045, allocations: 4 kB / 0.5897 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-06/0.5045, allocations: 0 / 0.5897 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.069e-05/0.5046, allocations: 4 kB / 0.5897 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.111e-05/0.5047, allocations: 33.69 kB / 0.5897 GB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.447e-06/0.5047, allocations: 0 / 0.5897 GB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.5047, allocations: 3.906 kB / 0.5898 GB, free: 15.06 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.912e-06/0.5047, allocations: 0.75 kB / 0.5898 GB, free: 15.06 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001089/0.5048, allocations: 122.2 kB / 0.5899 GB, free: 14.91 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.875e-05/0.5049, allocations: 14.58 kB / 0.5899 GB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.937e-05/0.5049, allocations: 16.89 kB / 0.5899 GB, free: 14.86 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.908e-06/0.5049, allocations: 2.438 kB / 0.5899 GB, free: 14.86 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.775e-05/0.505, allocations: 56.27 kB / 0.59 GB, free: 14.79 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.505, allocations: 0 / 0.59 GB, free: 14.79 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001815/0.5052, allocations: 33.69 kB / 0.59 GB, free: 14.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.089e-05/0.5052, allocations: 83.67 kB / 0.5901 GB, free: 14.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.708e-05/0.5053, allocations: 88.19 kB / 0.5902 GB, free: 14.57 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.5053, allocations: 25.7 kB / 0.5902 GB, free: 14.54 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.684e-05/0.5053, allocations: 88.17 kB / 0.5903 GB, free: 14.45 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.5053, allocations: 3.906 kB / 0.5903 GB, free: 14.44 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-06/0.5053, allocations: 0 / 0.5903 GB, free: 14.44 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.5055, allocations: 310.8 kB / 0.5906 GB, free: 14.13 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.633e-06/0.5055, allocations: 0 / 0.5906 GB, free: 14.13 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.658e-06/0.5055, allocations: 0 / 0.5906 GB, free: 14.13 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.005e-05/0.5055, allocations: 4 kB / 0.5906 GB, free: 14.12 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.5055, allocations: 0 / 0.5906 GB, free: 14.12 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.604e-05/0.5056, allocations: 41.69 kB / 0.5906 GB, free: 14.08 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.5056, allocations: 4 kB / 0.5906 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.5056, allocations: 0 / 0.5906 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.5056, allocations: 4 kB / 0.5906 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.5057, allocations: 0 / 0.5906 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.5057, allocations: 0 / 0.5906 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.272e-05/0.5057, allocations: 0 / 0.5906 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.5057, allocations: 3.906 kB / 0.5906 GB, free: 14.07 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 7.42e-05/0.5058, allocations: 129.8 kB / 0.5907 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.893e-06/0.5058, allocations: 8.031 kB / 0.5907 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.603e-05/0.5058, allocations: 6.953 kB / 0.5908 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.5058, allocations: 3.984 kB / 0.5908 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.5058, allocations: 0 / 0.5908 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.5058, allocations: 7.938 kB / 0.5908 GB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001164/0.506, allocations: 126.2 kB / 0.5909 GB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.506, allocations: 4 kB / 0.5909 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-07/0.506, allocations: 0 / 0.5909 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.506, allocations: 0 / 0.5909 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.086e-06/0.506, allocations: 0 / 0.5909 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.52e-07/0.506, allocations: 0 / 0.5909 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.506, allocations: 4 kB / 0.5909 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.786e-05/0.5061, allocations: 67.97 kB / 0.591 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.641e-05/0.5062, allocations: 77.11 kB / 0.591 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.408e-05/0.5062, allocations: 0 / 0.591 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.956e-06/0.5062, allocations: 0 / 0.591 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.746e-05/0.5062, allocations: 4 kB / 0.591 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.5062, allocations: 3.984 kB / 0.591 GB, free: 13.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.742e-05/0.5063, allocations: 83.3 kB / 0.5911 GB, free: 13.46 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002438/0.5065, allocations: 27.19 kB / 0.5911 GB, free: 13.44 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.0005293/0.507, allocations: 261.8 kB / 0.5914 GB, free: 13.22 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.87e-05/0.5071, allocations: 33.64 kB / 0.5914 GB, free: 13.18 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.5071, allocations: 0 / 0.5914 GB, free: 13.18 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.299e-05/0.5072, allocations: 25.7 kB / 0.5915 GB, free: 13.15 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.304e-05/0.5073, allocations: 11.22 kB / 0.5915 GB, free: 13.14 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001508/0.5074, allocations: 48.19 kB / 0.5915 GB, free: 13.07 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002263/0.5077, allocations: 0.6763 MB / 0.5922 GB, free: 12.37 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5077, allocations: 0 / 0.5922 GB, free: 12.37 MB / 394.7 MB Notification: Performance of Templates: time 0.002913/0.5106, allocations: 0.7706 MB / 0.5929 GB, free: 11.61 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches