Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.0009993/0.0009994, allocations: 183.7 kB / 8.136 MB, free: 2.207 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.188/1.188, allocations: 221.4 MB / 229.9 MB, free: 3.066 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.0009461/0.0009459, allocations: 100.1 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.611e-06/5.651e-06, allocations: 0 / 336.5 MB, free: 9.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2028/0.2028, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08517/0.288, allocations: 80.26 MB / 467.2 MB, free: 6.516 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.2883, allocations: 80.52 kB / 467.3 MB, free: 6.438 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01747/0.3058, allocations: 6.117 MB / 473.4 MB, free: 380 kB / 346.7 MB Notification: Performance of Transformations before backend: time 1.633e-05/0.3058, allocations: 8 kB / 473.4 MB, free: 372 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.0005713/0.3064, allocations: 479.5 kB / 473.8 MB, free: 15.84 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.3064, allocations: 8.031 kB / 473.9 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.931e-05/0.3065, allocations: 23.75 kB / 473.9 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000387/0.3069, allocations: 257.7 kB / 474.1 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.307, allocations: 4.938 kB / 474.1 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.735e-05/0.307, allocations: 4 kB / 474.1 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001082/0.3071, allocations: 39.98 kB / 474.2 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002683/0.3074, allocations: 134.7 kB / 474.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.3074, allocations: 0 / 474.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.3074, allocations: 7.906 kB / 474.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.3074, allocations: 0 / 474.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000463/0.3079, allocations: 351 kB / 474.7 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001391/0.3081, allocations: 99.91 kB / 474.8 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.961e-05/0.3081, allocations: 42.7 kB / 474.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.3082, allocations: 5.969 kB / 474.8 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001002/0.3083, allocations: 71.33 kB / 474.9 MB, free: 14.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.693e-06/0.3083, allocations: 4 kB / 474.9 MB, free: 14.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002226/0.3085, allocations: 101.4 kB / 475 MB, free: 14.55 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.579e-05/0.3086, allocations: 132.4 kB / 475.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002487/0.3088, allocations: 232.1 kB / 475.3 MB, free: 14.16 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.3089, allocations: 29.64 kB / 475.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.671e-05/0.3089, allocations: 96.12 kB / 475.5 MB, free: 14.03 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.156e-05/0.3089, allocations: 15.88 kB / 475.5 MB, free: 14.01 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-06/0.309, allocations: 0 / 475.5 MB, free: 14.01 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.3091, allocations: 334.8 kB / 475.8 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.736e-05/0.3091, allocations: 16 kB / 475.8 MB, free: 13.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.297e-05/0.3092, allocations: 66.06 kB / 475.9 MB, free: 13.57 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.143e-05/0.3092, allocations: 31.95 kB / 475.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3092, allocations: 0 / 475.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001629/0.3094, allocations: 105.3 kB / 476 MB, free: 13.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.3094, allocations: 4 kB / 476 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.3094, allocations: 0 / 476 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.3095, allocations: 4 kB / 476 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.595e-05/0.3096, allocations: 16.05 kB / 476 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.3096, allocations: 8 kB / 476 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.598e-05/0.3097, allocations: 4.656 kB / 476 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.3097, allocations: 4 kB / 476.1 MB, free: 13.39 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.571e-05/0.3097, allocations: 111.6 kB / 476.2 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.491e-05/0.3098, allocations: 61.44 kB / 476.2 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001782/0.31, allocations: 102.3 kB / 476.3 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.31, allocations: 4.062 kB / 476.3 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.31, allocations: 0 / 476.3 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.3101, allocations: 8.844 kB / 476.3 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001895/0.3102, allocations: 206.1 kB / 476.5 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.3103, allocations: 0 / 476.5 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.628e-05/0.3103, allocations: 4 kB / 476.5 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.3103, allocations: 7.938 kB / 476.5 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.3103, allocations: 0 / 476.5 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.3103, allocations: 128 / 476.5 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.3103, allocations: 8 kB / 476.6 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001919/0.3105, allocations: 173.8 kB / 476.7 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.3107, allocations: 116.8 kB / 476.8 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.699e-05/0.3107, allocations: 3.984 kB / 476.8 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.741e-05/0.3108, allocations: 8 kB / 476.9 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.924e-05/0.3108, allocations: 8 kB / 476.9 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.3108, allocations: 7.984 kB / 476.9 MB, free: 12.47 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001696/0.311, allocations: 180.5 kB / 477 MB, free: 12.29 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002716/0.3113, allocations: 35.91 kB / 477.1 MB, free: 12.25 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.00066/0.312, allocations: 311.2 kB / 477.4 MB, free: 12.03 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001595/0.3121, allocations: 67.92 kB / 477.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3121, allocations: 0 / 477.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.185e-05/0.3122, allocations: 27.94 kB / 477.5 MB, free: 11.94 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003259/0.3125, allocations: 57.61 kB / 477.5 MB, free: 11.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004366/0.313, allocations: 237.2 kB / 477.8 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002999/0.3133, allocations: 0.7513 MB / 478.5 MB, free: 10.84 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3133, allocations: 0 / 478.5 MB, free: 10.84 MB / 362.7 MB Notification: Performance of Templates: time 0.005093/0.3184, allocations: 2.201 MB / 480.7 MB, free: 8.664 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches