Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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 4.0.0+maint.om/package.mo): time 0.0009961/0.0009962, allocations: 185.5 kB / 8.135 MB, free: 2.211 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.25/1.25, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.001235/0.001236, allocations: 106.3 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.089e-05/1.11e-05, allocations: 4 kB / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.211/0.211, allocations: 50.4 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08362/0.2947, allocations: 80.29 MB / 467.2 MB, free: 6.504 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002113/0.2949, allocations: 79.89 kB / 467.3 MB, free: 6.426 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01781/0.3128, allocations: 6.273 MB / 473.5 MB, free: 204 kB / 346.7 MB Notification: Performance of Transformations before backend: time 1.839e-05/0.3128, allocations: 8 kB / 473.6 MB, free: 196 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000569/0.3134, allocations: 495.4 kB / 474 MB, free: 15.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.3134, allocations: 9.062 kB / 474 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.211e-05/0.3135, allocations: 27.7 kB / 474.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.3139, allocations: 290 kB / 474.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.314, allocations: 4 kB / 474.4 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.062e-05/0.314, allocations: 4 kB / 474.4 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001085/0.3141, allocations: 39.98 kB / 474.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002498/0.3144, allocations: 147.5 kB / 474.6 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.114e-06/0.3144, allocations: 0 / 474.6 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.3144, allocations: 4 kB / 474.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.3144, allocations: 4 kB / 474.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004841/0.3149, allocations: 374.9 kB / 474.9 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001732/0.3151, allocations: 109.9 kB / 475 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.474e-05/0.3152, allocations: 46.69 kB / 475.1 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.3152, allocations: 4 kB / 475.1 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001036/0.3153, allocations: 67.39 kB / 475.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.633e-06/0.3153, allocations: 4 kB / 475.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002255/0.3155, allocations: 113.3 kB / 475.3 MB, free: 14.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.091e-05/0.3156, allocations: 158.2 kB / 475.4 MB, free: 14.08 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003006/0.3159, allocations: 292.8 kB / 475.7 MB, free: 13.78 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/0.316, allocations: 29.7 kB / 475.7 MB, free: 13.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.978e-05/0.316, allocations: 100.1 kB / 475.8 MB, free: 13.64 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.211e-05/0.3161, allocations: 19.73 kB / 475.8 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.2e-06/0.3161, allocations: 4.062 kB / 475.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.3162, allocations: 330.8 kB / 476.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.182e-05/0.3162, allocations: 23.98 kB / 476.2 MB, free: 13.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.98e-05/0.3163, allocations: 78.86 kB / 476.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.473e-05/0.3164, allocations: 35.98 kB / 476.3 MB, free: 13.13 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3164, allocations: 0 / 476.3 MB, free: 13.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001779/0.3166, allocations: 117.3 kB / 476.4 MB, free: 13.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.3166, allocations: 4 kB / 476.4 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.3166, allocations: 0 / 476.4 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.3166, allocations: 4 kB / 476.4 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.3168, allocations: 20.67 kB / 476.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.3168, allocations: 4 kB / 476.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.185e-05/0.3169, allocations: 7.906 kB / 476.5 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.3169, allocations: 7.984 kB / 476.5 MB, free: 12.96 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 7.484e-05/0.317, allocations: 112.9 kB / 476.6 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.422e-05/0.3171, allocations: 57.42 kB / 476.6 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002104/0.3173, allocations: 120.4 kB / 476.8 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.3173, allocations: 0 / 476.8 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.3173, allocations: 0 / 476.8 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.3173, allocations: 8.031 kB / 476.8 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001868/0.3175, allocations: 229.9 kB / 477 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3175, allocations: 0 / 477 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.401e-05/0.3176, allocations: 12 kB / 477 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.3176, allocations: 4 kB / 477 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.3176, allocations: 3.984 kB / 477 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.746e-06/0.3176, allocations: 4 kB / 477 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3176, allocations: 3.938 kB / 477 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000203/0.3178, allocations: 176.8 kB / 477.2 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.318, allocations: 124.9 kB / 477.3 MB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.288e-05/0.318, allocations: 11.98 kB / 477.3 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.943e-05/0.3181, allocations: 4 kB / 477.3 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.001e-05/0.3182, allocations: 7.984 kB / 477.3 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.3182, allocations: 4 kB / 477.3 MB, free: 11.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002137/0.3184, allocations: 229.2 kB / 477.6 MB, free: 11.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002807/0.3187, allocations: 43.98 kB / 477.6 MB, free: 11.71 MB / 362.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: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006399/0.3193, allocations: 324.6 kB / 477.9 MB, free: 11.47 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001775/0.3195, allocations: 79.92 kB / 478 MB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3195, allocations: 0 / 478 MB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.59e-05/0.3196, allocations: 35.92 kB / 478 MB, free: 11.36 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.3199, allocations: 55.17 kB / 478.1 MB, free: 11.31 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004976/0.3204, allocations: 273.9 kB / 478.4 MB, free: 11.01 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003479/0.3208, allocations: 0.7865 MB / 479.1 MB, free: 10.2 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3208, allocations: 0 / 479.1 MB, free: 10.2 MB / 362.7 MB Notification: Performance of Templates: time 0.005606/0.3264, allocations: 2.529 MB / 481.7 MB, free: 7.703 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches