Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00122/0.00122, allocations: 205.8 kB / 8.54 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 225.5 MB / 234.4 MB, free: 3.391 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009603/0.0009606, allocations: 91.22 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1228/0.1238, allocations: 56.9 MB / 343.2 MB, free: 8.609 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.2301, allocations: 51.48 MB / 394.7 MB, free: 5.074 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2796/0.5097, allocations: 78.32 MB / 473 MB, free: 13.41 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/0.5101, allocations: 77.48 kB / 473.1 MB, free: 13.38 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.01731/0.5274, allocations: 5.778 MB / 478.9 MB, free: 10.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.5274, allocations: 8 kB / 478.9 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001901/0.5276, allocations: 40.36 kB / 478.9 MB, free: 9.977 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000296/0.5279, allocations: 240.8 kB / 479.2 MB, free: 9.711 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.192e-05/0.528, allocations: 8 kB / 479.2 MB, free: 9.703 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.826e-05/0.528, allocations: 19.84 kB / 479.2 MB, free: 9.684 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003106/0.5283, allocations: 179.5 kB / 479.4 MB, free: 9.559 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007547/0.5291, allocations: 0.5701 MB / 479.9 MB, free: 9.105 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.5291, allocations: 0 / 479.9 MB, free: 9.105 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.288e-05/0.5292, allocations: 3.984 kB / 479.9 MB, free: 9.102 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.667e-05/0.5292, allocations: 15.56 kB / 480 MB, free: 9.09 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004345/0.5296, allocations: 332.4 kB / 480.3 MB, free: 8.746 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002815/0.5299, allocations: 210.6 kB / 480.5 MB, free: 8.566 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.5301, allocations: 144.6 kB / 480.6 MB, free: 8.457 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.965e-05/0.5302, allocations: 8.141 kB / 480.6 MB, free: 8.449 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.5302, allocations: 45.19 kB / 480.7 MB, free: 8.402 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 2.194e-06/0.5302, allocations: 0 / 480.7 MB, free: 8.402 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.0004657/0.5307, allocations: 276.2 kB / 481 MB, free: 8.184 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.774e-05/0.5307, allocations: 127.4 kB / 481.1 MB, free: 8.039 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.5309, allocations: 139.7 kB / 481.2 MB, free: 7.91 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.5309, allocations: 25.7 kB / 481.2 MB, free: 7.879 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.269e-05/0.5309, allocations: 96.75 kB / 481.3 MB, free: 7.785 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.634e-05/0.531, allocations: 46.38 kB / 481.4 MB, free: 7.75 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.226e-06/0.531, allocations: 0 / 481.4 MB, free: 7.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.316e-05/0.531, allocations: 337.3 kB / 481.7 MB, free: 7.422 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.953e-05/0.5311, allocations: 59.05 kB / 481.8 MB, free: 7.379 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001489/0.5313, allocations: 300.8 kB / 482.1 MB, free: 6.992 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.5314, allocations: 129 kB / 482.2 MB, free: 6.891 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.5314, allocations: 0 / 482.2 MB, free: 6.891 MB / 346.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004208/0.5319, allocations: 332.8 kB / 482.5 MB, free: 6.598 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.5319, allocations: 8.031 kB / 482.5 MB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.5319, allocations: 8 kB / 482.5 MB, free: 6.582 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.5319, allocations: 16 kB / 482.5 MB, free: 6.566 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.5322, allocations: 82.95 kB / 482.6 MB, free: 6.488 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.5322, allocations: 15.94 kB / 482.6 MB, free: 6.473 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001705/0.5324, allocations: 27.75 kB / 482.7 MB, free: 6.445 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.557e-05/0.5324, allocations: 23.62 kB / 482.7 MB, free: 6.426 MB / 346.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 9.037e-05/0.5325, allocations: 128.2 kB / 482.8 MB, free: 6.297 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003654/0.5329, allocations: 276.6 kB / 483.1 MB, free: 6.078 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.325e-05/0.533, allocations: 30.91 kB / 483.1 MB, free: 6.066 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.533, allocations: 4 kB / 483.1 MB, free: 6.062 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.533, allocations: 0 / 483.1 MB, free: 6.062 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.533, allocations: 3.984 kB / 483.1 MB, free: 6.059 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001632/0.5332, allocations: 200.4 kB / 483.3 MB, free: 5.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.5332, allocations: 0 / 483.3 MB, free: 5.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002758/0.5335, allocations: 71.2 kB / 483.4 MB, free: 5.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/0.5335, allocations: 8 kB / 483.4 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.345e-05/0.5335, allocations: 4 kB / 483.4 MB, free: 5.762 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.5335, allocations: 1.969 kB / 483.4 MB, free: 5.762 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.5335, allocations: 3.906 kB / 483.4 MB, free: 5.758 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003912/0.5339, allocations: 428.2 kB / 483.8 MB, free: 5.375 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004043/0.5343, allocations: 0.7909 MB / 484.6 MB, free: 4.613 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.5345, allocations: 130.4 kB / 484.7 MB, free: 4.477 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.434e-05/0.5345, allocations: 15.17 kB / 484.8 MB, free: 4.465 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001697/0.5347, allocations: 7.984 kB / 484.8 MB, free: 4.457 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.489e-05/0.5347, allocations: 4 kB / 484.8 MB, free: 4.453 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.371e-05/0.5348, allocations: 15 kB / 484.8 MB, free: 4.441 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.301e-05/0.5348, allocations: 123.8 kB / 484.9 MB, free: 4.332 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009617/0.5358, allocations: 36 kB / 484.9 MB, free: 4.297 MB / 346.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.0001451/0.536, allocations: 107.8 kB / 485 MB, free: 4.184 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003797/0.5364, allocations: 243.1 kB / 485.3 MB, free: 4 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5364, allocations: 0 / 485.3 MB, free: 4 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.834e-05/0.5364, allocations: 10.94 kB / 485.3 MB, free: 3.992 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005637/0.537, allocations: 186 kB / 485.5 MB, free: 3.855 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009699/0.5379, allocations: 376.9 kB / 485.8 MB, free: 3.504 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000304/0.5383, allocations: 0.8143 MB / 486.7 MB, free: 2.668 MB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5383, allocations: 0 / 486.7 MB, free: 2.668 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2_fmu --startTime=0 --stopTime=0.06 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1)