Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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) 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(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") [: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.001166/0.001167, allocations: 205 kB / 8.54 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 225.5 MB / 234.4 MB, free: 3.434 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009079/0.000908, allocations: 93.3 kB / 286.3 MB, free: 5.215 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.119e-06/5.15e-06, allocations: 0 / 343.1 MB, free: 8.785 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09168/0.0917, allocations: 51.49 MB / 394.6 MB, free: 5.25 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2484/0.3401, allocations: 77.07 MB / 471.7 MB, free: 14.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002888/0.3405, allocations: 78.69 kB / 471.8 MB, free: 14.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.005559/0.3461, allocations: 1.877 MB / 473.6 MB, free: 13.26 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.707e-06/0.3461, allocations: 0 / 473.6 MB, free: 13.26 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000277/0.3464, allocations: 354.2 kB / 474 MB, free: 12.89 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.3464, allocations: 12.03 kB / 474 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001522/0.3466, allocations: 23.09 kB / 474 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001756/0.3468, allocations: 192.5 kB / 474.2 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.3468, allocations: 4 kB / 474.2 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.043e-05/0.3468, allocations: 0 / 474.2 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.978e-05/0.3469, allocations: 18.88 kB / 474.2 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001631/0.3471, allocations: 96.23 kB / 474.3 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.3471, allocations: 0 / 474.3 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.457e-06/0.3471, allocations: 0 / 474.3 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.3471, allocations: 3.984 kB / 474.3 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002734/0.3474, allocations: 246.1 kB / 474.6 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.7e-05/0.3475, allocations: 41.84 kB / 474.6 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.302e-05/0.3475, allocations: 17.34 kB / 474.6 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.3475, allocations: 0 / 474.6 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.3475, allocations: 31.88 kB / 474.7 MB, free: 12.15 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.3476, allocations: 0 / 474.7 MB, free: 12.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001502/0.3477, allocations: 56.62 kB / 474.7 MB, free: 12.09 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.599e-05/0.3477, allocations: 77.11 kB / 474.8 MB, free: 12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.024e-05/0.3478, allocations: 129.4 kB / 474.9 MB, free: 11.88 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.043e-06/0.3479, allocations: 32.7 kB / 474.9 MB, free: 11.85 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.986e-05/0.3479, allocations: 83.83 kB / 475 MB, free: 11.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.19e-05/0.3479, allocations: 3.906 kB / 475 MB, free: 11.76 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.755e-06/0.3479, allocations: 0 / 475 MB, free: 11.76 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.414e-05/0.348, allocations: 322.1 kB / 475.3 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.224e-05/0.348, allocations: 3.25 kB / 475.3 MB, free: 11.44 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.375e-05/0.348, allocations: 13.72 kB / 475.4 MB, free: 11.42 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.805e-05/0.348, allocations: 11.12 kB / 475.4 MB, free: 11.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.348, allocations: 0 / 475.4 MB, free: 11.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.01e-05/0.3481, allocations: 40.98 kB / 475.4 MB, free: 11.37 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.3481, allocations: 8 kB / 475.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3481, allocations: 4.125 kB / 475.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.3481, allocations: 0 / 475.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.587e-05/0.3482, allocations: 10.48 kB / 475.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.3482, allocations: 0 / 475.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.91e-05/0.3483, allocations: 4 kB / 475.4 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.804e-06/0.3483, allocations: 4.703 kB / 475.4 MB, free: 11.35 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 4.434e-05/0.3483, allocations: 108.9 kB / 475.6 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.945e-05/0.3484, allocations: 44.84 kB / 475.6 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.114e-05/0.3484, allocations: 11.66 kB / 475.6 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.3484, allocations: 0 / 475.6 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.3484, allocations: 4 kB / 475.6 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.3485, allocations: 0 / 475.6 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001048/0.3486, allocations: 144.4 kB / 475.8 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3486, allocations: 0 / 475.8 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.917e-05/0.3486, allocations: 12.05 kB / 475.8 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.3486, allocations: 0 / 475.8 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.271e-06/0.3486, allocations: 4.031 kB / 475.8 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3487, allocations: 3.906 kB / 475.8 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3487, allocations: 0 / 475.8 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.823e-05/0.3488, allocations: 164.1 kB / 475.9 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.798e-05/0.3488, allocations: 91.12 kB / 476 MB, free: 10.72 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.578e-05/0.3488, allocations: 1.406 kB / 476 MB, free: 10.72 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.609e-05/0.3489, allocations: 11.17 kB / 476 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.901e-05/0.3489, allocations: 0 / 476 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.058e-06/0.3489, allocations: 5.812 kB / 476 MB, free: 10.71 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.036e-05/0.349, allocations: 107.5 kB / 476.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002134/0.3492, allocations: 8 kB / 476.2 MB, free: 10.61 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 7.919e-05/0.3493, allocations: 102.3 kB / 476.3 MB, free: 10.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.382e-05/0.3494, allocations: 12 kB / 476.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3494, allocations: 0 / 476.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.348e-05/0.3494, allocations: 11.44 kB / 476.3 MB, free: 10.48 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002224/0.3496, allocations: 14.33 kB / 476.3 MB, free: 10.48 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002188/0.3499, allocations: 91.03 kB / 476.4 MB, free: 10.38 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001385/0.35, allocations: 0.7013 MB / 477.1 MB, free: 9.656 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.35, allocations: 288 / 477.1 MB, free: 9.656 MB / 346.7 MB Notification: Performance of Templates: time 0.002163/0.3522, allocations: 494.8 kB / 477.6 MB, free: 9.398 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches