Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") [: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.001389/0.001389, allocations: 184.8 kB / 8.134 MB, free: 2.199 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.173/1.173, 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.0009285/0.0009284, allocations: 101.3 kB / 280.8 MB, free: 1.309 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.062e-06/6.092e-06, allocations: 0 / 336.5 MB, free: 9.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1828/0.1828, allocations: 50.4 MB / 386.9 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08152/0.2644, allocations: 80.24 MB / 467.2 MB, free: 6.562 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002197/0.2647, allocations: 79.89 kB / 467.2 MB, free: 6.484 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01592/0.2806, allocations: 5.55 MB / 472.8 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.739e-05/0.2806, allocations: 4 kB / 472.8 MB, free: 0.9766 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005016/0.2811, allocations: 483.5 kB / 473.3 MB, free: 464 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.2812, allocations: 9.156 kB / 473.3 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.395e-05/0.2813, allocations: 15.81 kB / 473.3 MB, free: 440 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003747/0.2816, allocations: 265.6 kB / 473.5 MB, free: 132 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.2817, allocations: 3.984 kB / 473.5 MB, free: 128 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.91e-05/0.2817, allocations: 7.984 kB / 473.6 MB, free: 120 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001001/0.2818, allocations: 36 kB / 473.6 MB, free: 84 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002404/0.282, allocations: 136 kB / 473.7 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-06/0.2821, allocations: 0 / 473.7 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.478e-05/0.2821, allocations: 11.91 kB / 473.7 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.2821, allocations: 0 / 473.7 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004248/0.2825, allocations: 335 kB / 474.1 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001393/0.2827, allocations: 95.91 kB / 474.2 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.164e-05/0.2828, allocations: 47.81 kB / 474.2 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.845e-05/0.2828, allocations: 4.062 kB / 474.2 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.305e-05/0.2829, allocations: 72.31 kB / 474.3 MB, free: 15.28 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.683e-06/0.2829, allocations: 0 / 474.3 MB, free: 15.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.000213/0.2831, allocations: 97.42 kB / 474.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/0.2832, allocations: 140.5 kB / 474.5 MB, free: 15.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/0.2834, allocations: 228.1 kB / 474.7 MB, free: 14.78 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.2835, allocations: 29.64 kB / 474.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.66e-05/0.2835, allocations: 96.12 kB / 474.9 MB, free: 14.65 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.158e-05/0.2835, allocations: 15.8 kB / 474.9 MB, free: 14.63 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.228e-06/0.2836, allocations: 0 / 474.9 MB, free: 14.63 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.916e-05/0.2837, allocations: 326.8 kB / 475.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.888e-05/0.2837, allocations: 25.31 kB / 475.2 MB, free: 14.28 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.603e-05/0.2838, allocations: 72.08 kB / 475.3 MB, free: 14.19 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.252e-05/0.2838, allocations: 28.55 kB / 475.3 MB, free: 14.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2838, allocations: 32 / 475.3 MB, free: 14.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001645/0.284, allocations: 110.1 kB / 475.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.758e-06/0.284, allocations: 4 kB / 475.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.284, allocations: 0 / 475.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.2841, allocations: 4 kB / 475.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.038e-05/0.2841, allocations: 11.94 kB / 475.4 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.2842, allocations: 4 kB / 475.4 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.098e-05/0.2842, allocations: 11.92 kB / 475.5 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.084e-05/0.2843, allocations: 12.12 kB / 475.5 MB, free: 14 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,shiftSample1.y,shiftSample1.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 6.963e-05/0.2843, allocations: 113 kB / 475.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.098e-05/0.2844, allocations: 57.45 kB / 475.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001782/0.2846, allocations: 99.36 kB / 475.7 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.2846, allocations: 0 / 475.7 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.2846, allocations: 0 / 475.7 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.2847, allocations: 3.906 kB / 475.7 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001647/0.2848, allocations: 210.1 kB / 475.9 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.2848, allocations: 4.062 kB / 475.9 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.589e-05/0.2849, allocations: 7.938 kB / 475.9 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2849, allocations: 0 / 475.9 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.2849, allocations: 7.984 kB / 476 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2849, allocations: 0 / 476 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.2849, allocations: 3.938 kB / 476 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001919/0.2851, allocations: 173.8 kB / 476.1 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.763e-05/0.2852, allocations: 116.8 kB / 476.2 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.379e-05/0.2853, allocations: 4 kB / 476.2 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.569e-05/0.2854, allocations: 4 kB / 476.3 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.741e-05/0.2854, allocations: 7.984 kB / 476.3 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.2854, allocations: 4 kB / 476.3 MB, free: 13.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001694/0.2856, allocations: 188.5 kB / 476.4 MB, free: 12.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000271/0.2859, allocations: 35.84 kB / 476.5 MB, free: 12.87 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,shiftSample1.y,sample1.y,shiftSample1.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.0006522/0.2865, allocations: 325.7 kB / 476.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000169/0.2867, allocations: 63.86 kB / 476.9 MB, free: 12.58 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2867, allocations: 4 kB / 476.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.224e-05/0.2868, allocations: 24.25 kB / 476.9 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003292/0.2871, allocations: 44.44 kB / 476.9 MB, free: 12.51 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004329/0.2876, allocations: 233.2 kB / 477.2 MB, free: 12.25 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002928/0.2879, allocations: 0.7511 MB / 477.9 MB, free: 11.47 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2879, allocations: 4 kB / 477.9 MB, free: 11.46 MB / 362.7 MB Notification: Performance of Templates: time 0.005204/0.2931, allocations: 2.246 MB / 480.2 MB, free: 9.25 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches