Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.CompareSincExpSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sinc.y|expSine1.y|expSine2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine") translateModel(Modelica.Blocks.Examples.CompareSincExpSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sinc.y|expSine1.y|expSine2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine") [: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 4.0.0+maint.om/package.mo): time 0.0009665/0.0009666, allocations: 184.6 kB / 8.138 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.163/1.163, allocations: 221.4 MB / 230 MB, free: 3.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 103.4 kB / 280.8 MB, free: 1.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.923e-06/6.953e-06, allocations: 0 / 336.5 MB, free: 9.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2131/0.2132, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08454/0.2977, allocations: 75.41 MB / 462.3 MB, free: 11.41 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001976/0.298, allocations: 66 kB / 462.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.004726/0.3027, allocations: 1.251 MB / 463.6 MB, free: 10.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.3028, allocations: 0 / 463.6 MB, free: 10.11 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003954/0.3032, allocations: 374.2 kB / 464 MB, free: 9.703 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.3032, allocations: 12.03 kB / 464 MB, free: 9.691 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.387e-05/0.3032, allocations: 7.906 kB / 464 MB, free: 9.684 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.3034, allocations: 175 kB / 464.2 MB, free: 9.473 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.3034, allocations: 0 / 464.2 MB, free: 9.473 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.3034, allocations: 4 kB / 464.2 MB, free: 9.469 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.312e-05/0.3035, allocations: 24.69 kB / 464.2 MB, free: 9.445 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.915e-05/0.3036, allocations: 73.48 kB / 464.3 MB, free: 9.363 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.3036, allocations: 0 / 464.3 MB, free: 9.363 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.3037, allocations: 7.984 kB / 464.3 MB, free: 9.355 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.3037, allocations: 0 / 464.3 MB, free: 9.355 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001624/0.3038, allocations: 171.9 kB / 464.5 MB, free: 9.145 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.672e-05/0.3039, allocations: 63.8 kB / 464.5 MB, free: 9.055 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.755e-05/0.304, allocations: 30.64 kB / 464.5 MB, free: 9.016 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.304, allocations: 4 kB / 464.6 MB, free: 9.012 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.15e-05/0.304, allocations: 43.8 kB / 464.6 MB, free: 8.961 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.304, allocations: 0 / 464.6 MB, free: 8.961 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001973/0.3042, allocations: 61.59 kB / 464.7 MB, free: 8.895 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.3043, allocations: 114.8 kB / 464.8 MB, free: 8.758 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.381e-05/0.3044, allocations: 110.8 kB / 464.9 MB, free: 8.641 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.3044, allocations: 29.7 kB / 464.9 MB, free: 8.605 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.523e-05/0.3044, allocations: 80.14 kB / 465 MB, free: 8.523 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.028e-05/0.3045, allocations: 19.8 kB / 465 MB, free: 8.504 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.092e-06/0.3045, allocations: 0 / 465 MB, free: 8.504 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.458e-05/0.3046, allocations: 314.8 kB / 465.3 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.289e-05/0.3046, allocations: 15.94 kB / 465.3 MB, free: 8.172 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.679e-05/0.3046, allocations: 30.56 kB / 465.4 MB, free: 8.133 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.964e-05/0.3047, allocations: 12 kB / 465.4 MB, free: 8.121 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3047, allocations: 0 / 465.4 MB, free: 8.121 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001247/0.3048, allocations: 73.52 kB / 465.4 MB, free: 8.043 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.788e-06/0.3048, allocations: 4 kB / 465.4 MB, free: 8.039 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.3049, allocations: 0 / 465.4 MB, free: 8.039 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.3049, allocations: 8.094 kB / 465.5 MB, free: 8.031 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001627/0.305, allocations: 21.39 kB / 465.5 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.137e-06/0.3051, allocations: 0 / 465.5 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.3052, allocations: 19.98 kB / 465.5 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.3052, allocations: 3.984 kB / 465.5 MB, free: 7.988 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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.376e-05/0.3053, allocations: 112.8 kB / 465.6 MB, free: 7.871 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.813e-05/0.3053, allocations: 7.906 kB / 465.6 MB, free: 7.863 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.489e-05/0.3053, allocations: 7.75 kB / 465.6 MB, free: 7.855 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.3053, allocations: 4 kB / 465.6 MB, free: 7.852 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.3053, allocations: 0 / 465.6 MB, free: 7.852 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3053, allocations: 1.688 kB / 465.6 MB, free: 7.852 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001052/0.3054, allocations: 162.1 kB / 465.8 MB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3055, allocations: 3.906 kB / 465.8 MB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001355/0.3056, allocations: 23.97 kB / 465.8 MB, free: 7.629 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3056, allocations: 0 / 465.8 MB, free: 7.629 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.3056, allocations: 4 kB / 465.8 MB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.3056, allocations: 1.406 kB / 465.8 MB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3056, allocations: 0 / 465.8 MB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001502/0.3058, allocations: 130.1 kB / 465.9 MB, free: 7.461 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.683e-05/0.3058, allocations: 85.02 kB / 466 MB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.3059, allocations: 7.984 kB / 466 MB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.306, allocations: 17.16 kB / 466.1 MB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.114e-05/0.306, allocations: 7.984 kB / 466.1 MB, free: 7.328 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.345e-06/0.3061, allocations: 4 kB / 466.1 MB, free: 7.324 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.314e-05/0.3061, allocations: 94.36 kB / 466.2 MB, free: 7.234 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002007/0.3063, allocations: 12 kB / 466.2 MB, free: 7.223 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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.0001069/0.3064, allocations: 103.2 kB / 466.3 MB, free: 7.113 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001035/0.3065, allocations: 35.92 kB / 466.3 MB, free: 7.078 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3065, allocations: 0 / 466.3 MB, free: 7.078 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.538e-05/0.3066, allocations: 19.92 kB / 466.3 MB, free: 7.059 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001041/0.3067, allocations: 6.703 kB / 466.3 MB, free: 7.055 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004066/0.3071, allocations: 125.8 kB / 466.5 MB, free: 6.895 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002604/0.3074, allocations: 0.7036 MB / 467.2 MB, free: 6.164 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3074, allocations: 0 / 467.2 MB, free: 6.164 MB / 346.7 MB Notification: Performance of Templates: time 0.002281/0.3097, allocations: 0.6815 MB / 467.8 MB, free: 5.508 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/CompareSincExpSine/CompareSincExpSine.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches