Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") [: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.0009394/0.0009394, allocations: 188.3 kB / 8.137 MB, free: 2.215 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.175/1.175, allocations: 221.4 MB / 229.9 MB, free: 3 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.0009761/0.0009759, allocations: 98.2 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.711e-06/5.821e-06, allocations: 0 / 336.5 MB, free: 9.484 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2052/0.2052, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08909/0.2943, allocations: 80.79 MB / 467.7 MB, free: 5.969 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/0.2946, allocations: 76.8 kB / 467.8 MB, free: 5.895 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02314/0.3177, allocations: 8.402 MB / 476.2 MB, free: 13.54 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.833e-05/0.3178, allocations: 4 kB / 476.2 MB, free: 13.54 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005739/0.3184, allocations: 0.4979 MB / 476.7 MB, free: 12.99 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.3184, allocations: 12.03 kB / 476.7 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.475e-05/0.3185, allocations: 27.62 kB / 476.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003931/0.3189, allocations: 273.6 kB / 477 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.3189, allocations: 8 kB / 477 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.296e-05/0.319, allocations: 11.98 kB / 477 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001484/0.3191, allocations: 63.98 kB / 477.1 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004074/0.3195, allocations: 267.3 kB / 477.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.3195, allocations: 0 / 477.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.3196, allocations: 7.906 kB / 477.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.3196, allocations: 0 / 477.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000441/0.32, allocations: 358.9 kB / 477.7 MB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002121/0.3203, allocations: 156 kB / 477.8 MB, free: 11.69 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.3204, allocations: 70.7 kB / 477.9 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.3204, allocations: 11.98 kB / 477.9 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.456e-05/0.3205, allocations: 63.41 kB / 478 MB, free: 11.53 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.523e-06/0.3205, allocations: 0 / 478 MB, free: 11.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0002876/0.3208, allocations: 165.4 kB / 478.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.826e-05/0.3209, allocations: 132.5 kB / 478.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002336/0.3211, allocations: 240 kB / 478.5 MB, free: 10.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.3211, allocations: 29.7 kB / 478.5 MB, free: 10.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.443e-05/0.3212, allocations: 104.5 kB / 478.6 MB, free: 10.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.994e-05/0.3212, allocations: 31.95 kB / 478.7 MB, free: 10.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.022e-06/0.3212, allocations: 0 / 478.7 MB, free: 10.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.3213, allocations: 338.7 kB / 479 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.74e-05/0.3214, allocations: 32.47 kB / 479 MB, free: 10.42 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.3215, allocations: 157.8 kB / 479.2 MB, free: 10.2 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.404e-05/0.3216, allocations: 56.97 kB / 479.2 MB, free: 10.15 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3217, allocations: 4.75 kB / 479.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002628/0.3219, allocations: 185 kB / 479.4 MB, free: 9.957 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.322, allocations: 4.531 kB / 479.4 MB, free: 9.953 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.322, allocations: 11.94 kB / 479.4 MB, free: 9.941 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.322, allocations: 8 kB / 479.5 MB, free: 9.934 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.369e-05/0.3221, allocations: 27.92 kB / 479.5 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.3221, allocations: 4 kB / 479.5 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.3222, allocations: 12.12 kB / 479.5 MB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.508e-05/0.3222, allocations: 14.62 kB / 479.5 MB, free: 9.879 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,sample1.u,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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 9.036e-05/0.3223, allocations: 129.8 kB / 479.6 MB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.3225, allocations: 117.3 kB / 479.8 MB, free: 9.625 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001796/0.3227, allocations: 99.31 kB / 479.9 MB, free: 9.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.3227, allocations: 4 kB / 479.9 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3227, allocations: 0 / 479.9 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.3227, allocations: 4 kB / 479.9 MB, free: 9.512 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001678/0.3229, allocations: 222 kB / 480.1 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3229, allocations: 0 / 480.1 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.367e-05/0.3229, allocations: 8 kB / 480.1 MB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.3229, allocations: 4 kB / 480.1 MB, free: 9.246 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.323, allocations: 3.984 kB / 480.1 MB, free: 9.242 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.233e-05/0.323, allocations: 8 kB / 480.1 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.323, allocations: 3.938 kB / 480.1 MB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002468/0.3233, allocations: 219.4 kB / 480.3 MB, free: 8.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.3234, allocations: 128.8 kB / 480.4 MB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.106e-05/0.3234, allocations: 8 kB / 480.5 MB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.125e-05/0.3235, allocations: 4 kB / 480.5 MB, free: 8.824 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.393e-05/0.3235, allocations: 3.984 kB / 480.5 MB, free: 8.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.3236, allocations: 12 kB / 480.5 MB, free: 8.809 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001587/0.3237, allocations: 185.3 kB / 480.7 MB, free: 8.625 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002918/0.324, allocations: 43.98 kB / 480.7 MB, free: 8.582 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: 20 ($whenCondition1,sample1.u,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.0006247/0.3247, allocations: 338.7 kB / 481 MB, free: 8.34 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002314/0.3249, allocations: 127.7 kB / 481.2 MB, free: 8.215 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3249, allocations: 3.938 kB / 481.2 MB, free: 8.211 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.966e-05/0.325, allocations: 27.98 kB / 481.2 MB, free: 8.184 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003803/0.3254, allocations: 95.84 kB / 481.3 MB, free: 8.094 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005101/0.3259, allocations: 285.5 kB / 481.6 MB, free: 7.789 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003225/0.3262, allocations: 0.7865 MB / 482.3 MB, free: 6.973 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.3262, allocations: 0 / 482.3 MB, free: 6.973 MB / 362.7 MB Notification: Performance of Templates: time 0.005725/0.332, allocations: 2.861 MB / 485.2 MB, free: 4.137 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches