Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.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.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") [: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.002059/0.002059, allocations: 196.1 kB / 8.537 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 225.5 MB / 234.4 MB, free: 3.418 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001056/0.001056, allocations: 92.44 kB / 286.3 MB, free: 5.215 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.245/0.245, allocations: 45.15 MB / 383.3 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.955e-06/8.226e-06, allocations: 0 / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.1681, allocations: 63.24 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4454/0.6135, allocations: 86.79 MB / 0.5885 GB, free: 140 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001987/0.6138, allocations: 63.03 kB / 0.5886 GB, free: 108 kB / 378.7 MB Notification: Performance of FrontEnd: time 0.02136/0.6352, allocations: 7.417 MB / 0.5958 GB, free: 10.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.6352, allocations: 0 / 0.5958 GB, free: 10.14 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.0005374/0.6358, allocations: 399.4 kB / 0.5962 GB, free: 9.707 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.6358, allocations: 8.031 kB / 0.5962 GB, free: 9.699 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.313e-05/0.6359, allocations: 4 kB / 0.5962 GB, free: 9.695 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.636, allocations: 166.7 kB / 0.5964 GB, free: 9.496 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.636, allocations: 4 kB / 0.5964 GB, free: 9.492 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.666e-06/0.636, allocations: 4 kB / 0.5964 GB, free: 9.488 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.663e-05/0.6361, allocations: 0 / 0.5964 GB, free: 9.488 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.465e-05/0.6362, allocations: 25.7 kB / 0.5964 GB, free: 9.457 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.6362, allocations: 0 / 0.5964 GB, free: 9.457 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.6362, allocations: 3.906 kB / 0.5964 GB, free: 9.453 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.6362, allocations: 4 kB / 0.5964 GB, free: 9.449 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001254/0.6363, allocations: 126.2 kB / 0.5965 GB, free: 9.289 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.905e-05/0.6364, allocations: 22.5 kB / 0.5966 GB, free: 9.258 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.693e-05/0.6364, allocations: 4.859 kB / 0.5966 GB, free: 9.25 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.077e-05/0.6364, allocations: 4.094 kB / 0.5966 GB, free: 9.246 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.537e-05/0.6365, allocations: 59.7 kB / 0.5966 GB, free: 9.176 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.6365, allocations: 0 / 0.5966 GB, free: 9.176 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001416/0.6366, allocations: 29.7 kB / 0.5967 GB, free: 9.141 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/0.6367, allocations: 81.14 kB / 0.5967 GB, free: 9.043 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.758e-05/0.6367, allocations: 85 kB / 0.5968 GB, free: 8.953 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.6368, allocations: 25.7 kB / 0.5968 GB, free: 8.922 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.683e-05/0.6368, allocations: 80.14 kB / 0.5969 GB, free: 8.84 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.97e-05/0.6368, allocations: 7.844 kB / 0.5969 GB, free: 8.832 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-06/0.6368, allocations: 4 kB / 0.5969 GB, free: 8.828 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.937e-05/0.6369, allocations: 314.8 kB / 0.5972 GB, free: 8.512 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.087e-05/0.637, allocations: 3.938 kB / 0.5972 GB, free: 8.508 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.741e-06/0.637, allocations: 11.69 kB / 0.5972 GB, free: 8.5 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.819e-05/0.637, allocations: 0 / 0.5972 GB, free: 8.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.637, allocations: 0 / 0.5972 GB, free: 8.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.326e-05/0.6371, allocations: 33.7 kB / 0.5973 GB, free: 8.461 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.6371, allocations: 4 kB / 0.5973 GB, free: 8.457 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.6371, allocations: 0 / 0.5973 GB, free: 8.457 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.6371, allocations: 0 / 0.5973 GB, free: 8.457 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.202e-06/0.6371, allocations: 0 / 0.5973 GB, free: 8.457 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.6371, allocations: 0 / 0.5973 GB, free: 8.457 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.139e-05/0.6371, allocations: 96 / 0.5973 GB, free: 8.457 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.6372, allocations: 11.91 kB / 0.5973 GB, free: 8.445 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 8.999e-05/0.6372, allocations: 134.7 kB / 0.5974 GB, free: 8.301 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.432e-06/0.6373, allocations: 0 / 0.5974 GB, free: 8.301 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.328e-05/0.6373, allocations: 6.953 kB / 0.5974 GB, free: 8.289 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.11e-07/0.6373, allocations: 0 / 0.5974 GB, free: 8.289 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.6373, allocations: 4 kB / 0.5974 GB, free: 8.285 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.6373, allocations: 0 / 0.5974 GB, free: 8.285 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.749e-05/0.6374, allocations: 126.2 kB / 0.5975 GB, free: 8.125 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.41e-07/0.6374, allocations: 0 / 0.5975 GB, free: 8.125 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.206e-06/0.6374, allocations: 7.984 kB / 0.5976 GB, free: 8.117 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.6374, allocations: 3.938 kB / 0.5976 GB, free: 8.113 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.385e-06/0.6374, allocations: 4 kB / 0.5976 GB, free: 8.109 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.6374, allocations: 0 / 0.5976 GB, free: 8.109 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.6374, allocations: 0 / 0.5976 GB, free: 8.109 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.224e-05/0.6375, allocations: 56.36 kB / 0.5976 GB, free: 8.039 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.541e-05/0.6376, allocations: 81.11 kB / 0.5977 GB, free: 7.941 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.6376, allocations: 3.984 kB / 0.5977 GB, free: 7.938 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.404e-06/0.6376, allocations: 4.031 kB / 0.5977 GB, free: 7.934 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.968e-05/0.6376, allocations: 3.984 kB / 0.5977 GB, free: 7.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.6376, allocations: 4 kB / 0.5977 GB, free: 7.926 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.076e-05/0.6377, allocations: 75.28 kB / 0.5978 GB, free: 7.852 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001928/0.6379, allocations: 8 kB / 0.5978 GB, free: 7.844 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.0001309/0.638, allocations: 87.25 kB / 0.5979 GB, free: 7.75 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.002e-05/0.6381, allocations: 37.58 kB / 0.5979 GB, free: 7.711 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.6381, allocations: 4.062 kB / 0.5979 GB, free: 7.707 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.051e-05/0.6381, allocations: 29.7 kB / 0.5979 GB, free: 7.672 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.671e-05/0.6382, allocations: 7.875 kB / 0.5979 GB, free: 7.664 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001475/0.6384, allocations: 44.06 kB / 0.598 GB, free: 7.598 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002186/0.6386, allocations: 0.6802 MB / 0.5987 GB, free: 6.891 MB / 394.7 MB Notification: Performance of SimCode: time 3.5e-07/0.6386, allocations: 0 / 0.5987 GB, free: 6.891 MB / 394.7 MB Notification: Performance of Templates: time 0.001654/0.6402, allocations: 176 kB / 0.5988 GB, free: 6.727 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches