Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) [: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.0009939/0.0009939, allocations: 181.5 kB / 8.134 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.189/1.189, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0008748/0.0008748, allocations: 87.38 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08945/0.09036, allocations: 55.83 MB / 336.6 MB, free: 9.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1801/0.2705, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07824/0.3488, allocations: 77.52 MB / 464.5 MB, free: 9.242 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001992/0.349, allocations: 85.16 kB / 464.6 MB, free: 9.16 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0157/0.3648, allocations: 5.673 MB / 470.3 MB, free: 3.477 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.058e-05/0.3648, allocations: 8 kB / 470.3 MB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.5e-05/0.3649, allocations: 23.72 kB / 470.3 MB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002592/0.3651, allocations: 242.6 kB / 470.5 MB, free: 3.168 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.623e-05/0.3652, allocations: 11.98 kB / 470.6 MB, free: 3.156 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.56e-05/0.3652, allocations: 12 kB / 470.6 MB, free: 3.145 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002984/0.3655, allocations: 183.8 kB / 470.7 MB, free: 2.965 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007398/0.3662, allocations: 0.5761 MB / 471.3 MB, free: 2.371 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.3663, allocations: 7.875 kB / 471.3 MB, free: 2.363 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/0.3663, allocations: 0 / 471.3 MB, free: 2.363 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.273e-05/0.3663, allocations: 12 kB / 471.3 MB, free: 2.352 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003812/0.3667, allocations: 330.9 kB / 471.7 MB, free: 1.984 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002741/0.367, allocations: 218.2 kB / 471.9 MB, free: 1.742 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001696/0.3672, allocations: 141.6 kB / 472 MB, free: 1.598 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/0.3672, allocations: 8 kB / 472 MB, free: 1.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.3672, allocations: 38.62 kB / 472.1 MB, free: 1.543 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 1.402e-06/0.3672, allocations: 0 / 472.1 MB, free: 1.543 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.0004481/0.3677, allocations: 278.3 kB / 472.3 MB, free: 1.266 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.015e-05/0.3678, allocations: 130.7 kB / 472.5 MB, free: 1.113 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.3679, allocations: 149.4 kB / 472.6 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.3679, allocations: 25.7 kB / 472.6 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.886e-05/0.368, allocations: 88.91 kB / 472.7 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.747e-05/0.368, allocations: 43.62 kB / 472.8 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.536e-06/0.368, allocations: 0 / 472.8 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.3681, allocations: 334.7 kB / 473.1 MB, free: 472 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.247e-05/0.3682, allocations: 64.86 kB / 473.1 MB, free: 408 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001912/0.3684, allocations: 297.9 kB / 473.4 MB, free: 15.99 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001459/0.3686, allocations: 127.8 kB / 473.6 MB, free: 15.86 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.3686, allocations: 4 kB / 473.6 MB, free: 15.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004206/0.369, allocations: 325.4 kB / 473.9 MB, free: 15.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.959e-06/0.369, allocations: 4 kB / 473.9 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.369, allocations: 12 kB / 473.9 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.3691, allocations: 12 kB / 473.9 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002344/0.3693, allocations: 87.83 kB / 474 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.3693, allocations: 16.44 kB / 474 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001562/0.3695, allocations: 31.69 kB / 474 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.622e-05/0.3695, allocations: 24 kB / 474.1 MB, free: 15.35 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 13 (FIR1.first,$CLKPRE.FIR1.first,FIR2.first,$CLKPRE.FIR2.first,upSample.b_super,$CLKPRE.upSample.b_super,superSampleIpo.ticks,$CLKPRE.superSampleIpo.ticks,superSampleIpo.usedFactor,superSampleIpo.first,$CLKPRE.superSampleIpo.first,upSample.b,$CLKPRE.upSample.b) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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 8.762e-05/0.3696, allocations: 136.7 kB / 474.2 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003578/0.37, allocations: 266.5 kB / 474.5 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.998e-05/0.37, allocations: 27.69 kB / 474.5 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.37, allocations: 4 kB / 474.5 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3701, allocations: 0 / 474.5 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.3701, allocations: 3.984 kB / 474.5 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.3702, allocations: 209.9 kB / 474.7 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3702, allocations: 0 / 474.7 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002713/0.3705, allocations: 67.89 kB / 474.8 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.3705, allocations: 0 / 474.8 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.3706, allocations: 8 kB / 474.8 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3706, allocations: 0 / 474.8 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3706, allocations: 8 kB / 474.8 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004124/0.371, allocations: 437.5 kB / 475.2 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005029/0.3715, allocations: 0.7856 MB / 476 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.3716, allocations: 124.8 kB / 476.1 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.239e-05/0.3717, allocations: 15.91 kB / 476.1 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/0.3718, allocations: 11.98 kB / 476.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.044e-05/0.3719, allocations: 0 / 476.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.3719, allocations: 12 kB / 476.2 MB, free: 13.13 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.235e-05/0.372, allocations: 127.2 kB / 476.3 MB, free: 13 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008987/0.3729, allocations: 36 kB / 476.3 MB, free: 12.97 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 (superSampleIpo.usedFactor,superSampleIpo.ticks,upSample.b_super,FIR2.first,FIR1.first,upSample.b,superSampleIpo.first) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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 0.0001033/0.373, allocations: 106.6 kB / 476.4 MB, free: 12.86 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003176/0.3733, allocations: 245.9 kB / 476.7 MB, free: 12.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.3733, allocations: 64 / 476.7 MB, free: 12.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.404e-05/0.3733, allocations: 12 kB / 476.7 MB, free: 12.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004682/0.3738, allocations: 186.3 kB / 476.9 MB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008327/0.3747, allocations: 383.2 kB / 477.2 MB, free: 12.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003417/0.375, allocations: 0.8107 MB / 478 MB, free: 11.18 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.375, allocations: 0 / 478 MB, free: 11.18 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2_fmu --startTime=0 --stopTime=0.06 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1)