Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",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.0009399/0.0009399, allocations: 185.4 kB / 8.139 MB, free: 2.125 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.125/1.125, allocations: 221.4 MB / 229.9 MB, free: 3.09 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.0009983/0.0009986, allocations: 98.92 kB / 280.8 MB, free: 1.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1054/0.1064, allocations: 55.83 MB / 336.6 MB, free: 9.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2036/0.31, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08571/0.3958, allocations: 80.87 MB / 467.9 MB, free: 5.906 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002392/0.3961, allocations: 83.89 kB / 468 MB, free: 5.824 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.02443/0.4205, allocations: 9.163 MB / 477.1 MB, free: 12.65 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.4206, allocations: 8 kB / 477.1 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.774e-05/0.4206, allocations: 27.62 kB / 477.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004343/0.4211, allocations: 307.1 kB / 477.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.89e-05/0.4211, allocations: 8 kB / 477.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/0.4211, allocations: 8 kB / 477.5 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001558/0.4213, allocations: 71.97 kB / 477.5 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000426/0.4217, allocations: 307.2 kB / 477.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.4218, allocations: 0 / 477.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.4218, allocations: 3.938 kB / 477.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.4218, allocations: 4 kB / 477.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004877/0.4223, allocations: 394.8 kB / 478.2 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002596/0.4226, allocations: 172 kB / 478.4 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.4227, allocations: 90.67 kB / 478.5 MB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.4227, allocations: 0 / 478.5 MB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.138e-05/0.4228, allocations: 79.56 kB / 478.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.273e-06/0.4228, allocations: 0 / 478.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003071/0.4231, allocations: 181.8 kB / 478.7 MB, free: 10.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.457e-05/0.4232, allocations: 161.3 kB / 478.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003002/0.4235, allocations: 303.3 kB / 479.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.166e-05/0.4236, allocations: 26.27 kB / 479.2 MB, free: 10.33 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.224e-05/0.4236, allocations: 112.5 kB / 479.3 MB, free: 10.22 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.017e-05/0.4237, allocations: 31.64 kB / 479.4 MB, free: 10.19 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-06/0.4237, allocations: 3.938 kB / 479.4 MB, free: 10.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.344e-05/0.4238, allocations: 338.8 kB / 479.7 MB, free: 9.844 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.776e-05/0.4238, allocations: 32.47 kB / 479.7 MB, free: 9.809 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.424, allocations: 180.2 kB / 479.9 MB, free: 9.566 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.991e-05/0.4241, allocations: 63.91 kB / 480 MB, free: 9.504 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.4241, allocations: 4 kB / 480 MB, free: 9.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002774/0.4244, allocations: 201.4 kB / 480.2 MB, free: 9.297 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/0.4244, allocations: 8.062 kB / 480.2 MB, free: 9.289 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.4244, allocations: 4 kB / 480.2 MB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.4244, allocations: 8 kB / 480.2 MB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.4246, allocations: 39.91 kB / 480.2 MB, free: 9.238 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.4246, allocations: 7.938 kB / 480.2 MB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.4247, allocations: 11.91 kB / 480.3 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.861e-05/0.4247, allocations: 16.66 kB / 480.3 MB, free: 9.203 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.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],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.355e-05/0.4248, allocations: 129.7 kB / 480.4 MB, free: 9.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001777/0.425, allocations: 129.3 kB / 480.5 MB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002179/0.4253, allocations: 111.4 kB / 480.6 MB, free: 8.816 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.4253, allocations: 4 kB / 480.6 MB, free: 8.812 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.4253, allocations: 0 / 480.6 MB, free: 8.812 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.4253, allocations: 11.92 kB / 480.6 MB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000205/0.4255, allocations: 237.9 kB / 480.9 MB, free: 8.531 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.4255, allocations: 4.172 kB / 480.9 MB, free: 8.527 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/0.4257, allocations: 35.91 kB / 480.9 MB, free: 8.492 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.4257, allocations: 8 kB / 480.9 MB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.126e-05/0.4257, allocations: 7.906 kB / 480.9 MB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.588e-06/0.4257, allocations: 7.984 kB / 480.9 MB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.4257, allocations: 0 / 480.9 MB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003003/0.426, allocations: 240.3 kB / 481.2 MB, free: 8.199 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004324/0.4265, allocations: 0.6254 MB / 481.8 MB, free: 7.535 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001333/0.4266, allocations: 136.6 kB / 481.9 MB, free: 7.383 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.797e-05/0.4267, allocations: 8 kB / 481.9 MB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.504e-05/0.4268, allocations: 8 kB / 482 MB, free: 7.367 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.438e-05/0.4268, allocations: 7.984 kB / 482 MB, free: 7.359 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.4268, allocations: 8 kB / 482 MB, free: 7.352 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002273/0.4271, allocations: 239.1 kB / 482.2 MB, free: 7.121 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009024/0.428, allocations: 63.84 kB / 482.3 MB, free: 7.059 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,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.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.0007205/0.4287, allocations: 337.8 kB / 482.6 MB, free: 6.816 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003009/0.429, allocations: 157.4 kB / 482.7 MB, free: 6.664 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.429, allocations: 0 / 482.7 MB, free: 6.664 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.011e-05/0.4291, allocations: 28 kB / 482.8 MB, free: 6.637 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004626/0.4296, allocations: 111.1 kB / 482.9 MB, free: 6.527 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006571/0.4302, allocations: 342.4 kB / 483.2 MB, free: 6.164 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004221/0.4307, allocations: 0.8063 MB / 484 MB, free: 5.328 MB / 362.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4307, allocations: 0 / 484 MB, free: 5.328 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1)