Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1") [: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.0009589/0.0009589, allocations: 178.2 kB / 8.133 MB, free: 1.984 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.179/1.179, allocations: 221.4 MB / 229.9 MB, free: 2.887 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.0009368/0.0009368, allocations: 100.8 kB / 280.8 MB, free: 1.105 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.25e-06/5.27e-06, allocations: 0 / 336.5 MB, free: 9.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1981, allocations: 50.39 MB / 386.9 MB, free: 37.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07908/0.2772, allocations: 75.71 MB / 462.6 MB, free: 10.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001993/0.2774, allocations: 75.95 kB / 462.7 MB, free: 10.91 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.002473/0.2799, allocations: 0.7825 MB / 463.5 MB, free: 10.14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.608e-05/0.2799, allocations: 7.938 kB / 463.5 MB, free: 10.14 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0002586/0.2802, allocations: 339 kB / 463.8 MB, free: 9.762 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.2802, allocations: 8.656 kB / 463.8 MB, free: 9.754 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.041e-05/0.2803, allocations: 7.906 kB / 463.8 MB, free: 9.746 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000166/0.2805, allocations: 179.5 kB / 464 MB, free: 9.531 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.2805, allocations: 1.781 kB / 464 MB, free: 9.531 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.2805, allocations: 4 kB / 464 MB, free: 9.527 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.776e-05/0.2806, allocations: 12.66 kB / 464 MB, free: 9.516 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.2808, allocations: 110 kB / 464.1 MB, free: 9.395 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-06/0.2808, allocations: 3.906 kB / 464.1 MB, free: 9.391 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.404e-06/0.2808, allocations: 0.5625 kB / 464.1 MB, free: 9.391 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2808, allocations: 0 / 464.1 MB, free: 9.391 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002692/0.2811, allocations: 239.2 kB / 464.4 MB, free: 9.117 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001148/0.2812, allocations: 126.2 kB / 464.5 MB, free: 8.957 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.827e-05/0.2812, allocations: 25.92 kB / 464.5 MB, free: 8.926 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.2813, allocations: 7.984 kB / 464.5 MB, free: 8.918 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.668e-05/0.2813, allocations: 38.56 kB / 464.6 MB, free: 8.871 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.2813, allocations: 0 / 464.6 MB, free: 8.871 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001371/0.2814, allocations: 53.53 kB / 464.6 MB, free: 8.812 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.2815, allocations: 81.11 kB / 464.7 MB, free: 8.715 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.415e-05/0.2816, allocations: 117.6 kB / 464.8 MB, free: 8.594 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.108e-05/0.2816, allocations: 25.7 kB / 464.8 MB, free: 8.562 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.469e-05/0.2816, allocations: 84.17 kB / 464.9 MB, free: 8.477 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.077e-06/0.2817, allocations: 8 kB / 464.9 MB, free: 8.469 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-06/0.2817, allocations: 0 / 464.9 MB, free: 8.469 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.465e-05/0.2817, allocations: 314.8 kB / 465.2 MB, free: 8.152 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.164e-05/0.2818, allocations: 4 kB / 465.2 MB, free: 8.148 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.214e-05/0.2818, allocations: 31.47 kB / 465.3 MB, free: 8.105 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.867e-05/0.2818, allocations: 8 kB / 465.3 MB, free: 8.098 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.2818, allocations: 0 / 465.3 MB, free: 8.098 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.233e-05/0.2819, allocations: 53.53 kB / 465.3 MB, free: 8.039 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/0.2819, allocations: 6.969 kB / 465.3 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.2819, allocations: 4 kB / 465.3 MB, free: 8.031 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.776e-06/0.2819, allocations: 1.125 kB / 465.3 MB, free: 8.031 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.345e-05/0.282, allocations: 8.438 kB / 465.3 MB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.317e-06/0.282, allocations: 128 / 465.3 MB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.706e-05/0.282, allocations: 7.984 kB / 465.4 MB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.282, allocations: 4.875 kB / 465.4 MB, free: 8.012 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (sample1.u,sample1.y,assignClock.y,assignClock.u) * 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 5.965e-05/0.2821, allocations: 111.5 kB / 465.5 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.592e-05/0.2822, allocations: 45.61 kB / 465.5 MB, free: 7.852 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.335e-05/0.2822, allocations: 19.92 kB / 465.5 MB, free: 7.828 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2822, allocations: 0 / 465.5 MB, free: 7.828 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.2822, allocations: 0 / 465.5 MB, free: 7.828 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.2822, allocations: 0 / 465.5 MB, free: 7.828 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001236/0.2824, allocations: 142.2 kB / 465.7 MB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.2824, allocations: 6.766 kB / 465.7 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.826e-06/0.2824, allocations: 7.938 kB / 465.7 MB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2824, allocations: 0 / 465.7 MB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.2824, allocations: 3.906 kB / 465.7 MB, free: 7.637 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.2824, allocations: 0 / 465.7 MB, free: 7.637 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.2824, allocations: 4 kB / 465.7 MB, free: 7.633 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001048/0.2825, allocations: 166 kB / 465.9 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.859e-05/0.2826, allocations: 93 kB / 465.9 MB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.494e-05/0.2826, allocations: 0 / 465.9 MB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.223e-05/0.2827, allocations: 0 / 465.9 MB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.578e-05/0.2827, allocations: 4 kB / 465.9 MB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-06/0.2827, allocations: 0.8125 kB / 466 MB, free: 7.332 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.511e-05/0.2828, allocations: 98.64 kB / 466 MB, free: 7.238 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000217/0.283, allocations: 5.219 kB / 466.1 MB, free: 7.234 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: 4 (sample1.u,assignClock.u,assignClock.y,sample1.y) * 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 9.013e-05/0.2831, allocations: 107.2 kB / 466.2 MB, free: 7.121 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.452e-05/0.2832, allocations: 19.98 kB / 466.2 MB, free: 7.102 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2832, allocations: 0 / 466.2 MB, free: 7.102 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.143e-05/0.2832, allocations: 4 kB / 466.2 MB, free: 7.098 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002131/0.2834, allocations: 19.88 kB / 466.2 MB, free: 7.078 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001968/0.2836, allocations: 92.66 kB / 466.3 MB, free: 6.957 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002472/0.2839, allocations: 0.7074 MB / 467 MB, free: 6.227 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2839, allocations: 0 / 467 MB, free: 6.227 MB / 346.7 MB Notification: Performance of Templates: time 0.002081/0.286, allocations: 482.3 kB / 467.5 MB, free: 5.77 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample1/Sample1.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches