Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.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.UpSample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",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.0009743/0.0009743, allocations: 182.8 kB / 8.132 MB, free: 2.219 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.165/1.165, allocations: 221.4 MB / 229.9 MB, free: 3.035 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.0009297/0.0009299, allocations: 99.77 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08774/0.08869, allocations: 55.83 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1823/0.271, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07512/0.3461, allocations: 76.78 MB / 463.8 MB, free: 10.03 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001986/0.3464, allocations: 79.89 kB / 463.9 MB, free: 9.949 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.01162/0.358, allocations: 4.487 MB / 468.3 MB, free: 5.453 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.991e-05/0.3581, allocations: 8 kB / 468.4 MB, free: 5.445 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.969e-05/0.3581, allocations: 15.81 kB / 468.4 MB, free: 5.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000203/0.3583, allocations: 212.3 kB / 468.6 MB, free: 5.184 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.3583, allocations: 4 kB / 468.6 MB, free: 5.18 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.553e-05/0.3584, allocations: 8 kB / 468.6 MB, free: 5.172 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001189/0.3585, allocations: 51.98 kB / 468.6 MB, free: 5.121 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003418/0.3588, allocations: 244 kB / 468.9 MB, free: 4.863 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.3589, allocations: 0 / 468.9 MB, free: 4.863 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.3589, allocations: 0 / 468.9 MB, free: 4.863 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.3589, allocations: 4 kB / 468.9 MB, free: 4.859 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003234/0.3592, allocations: 283 kB / 469.2 MB, free: 4.539 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001589/0.3594, allocations: 119.7 kB / 469.3 MB, free: 4.395 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.133e-05/0.3595, allocations: 63.62 kB / 469.3 MB, free: 4.324 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.3595, allocations: 16.06 kB / 469.4 MB, free: 4.309 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.702e-05/0.3595, allocations: 38.69 kB / 469.4 MB, free: 4.262 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.192e-06/0.3595, allocations: 0 / 469.4 MB, free: 4.262 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002345/0.3598, allocations: 115.4 kB / 469.5 MB, free: 4.145 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.3598, allocations: 106.8 kB / 469.6 MB, free: 4.016 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.3599, allocations: 129.4 kB / 469.7 MB, free: 3.879 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.36, allocations: 29.73 kB / 469.8 MB, free: 3.844 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.083e-05/0.36, allocations: 88.14 kB / 469.8 MB, free: 3.754 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/0.36, allocations: 23.73 kB / 469.9 MB, free: 3.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.648e-06/0.36, allocations: 0 / 469.9 MB, free: 3.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.708e-05/0.3601, allocations: 318.8 kB / 470.2 MB, free: 3.41 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.733e-05/0.3602, allocations: 24.31 kB / 470.2 MB, free: 3.383 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.365e-05/0.3603, allocations: 123.2 kB / 470.3 MB, free: 3.211 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.968e-05/0.3603, allocations: 35.92 kB / 470.4 MB, free: 3.176 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3603, allocations: 4 kB / 470.4 MB, free: 3.172 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002029/0.3606, allocations: 141.2 kB / 470.5 MB, free: 3.027 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.3606, allocations: 4 kB / 470.5 MB, free: 3.023 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.3606, allocations: 4 kB / 470.5 MB, free: 3.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.3606, allocations: 4.531 kB / 470.5 MB, free: 3.016 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.3607, allocations: 39.92 kB / 470.6 MB, free: 2.977 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.3608, allocations: 7.938 kB / 470.6 MB, free: 2.969 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.861e-05/0.3609, allocations: 8.75 kB / 470.6 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.3609, allocations: 11.91 kB / 470.6 MB, free: 2.949 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 (upSample2.b_super,$CLKPRE.upSample2.b_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample2.b,$CLKPRE.upSample2.b,upSample1.b,$CLKPRE.upSample1.b) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.149e-05/0.361, allocations: 115.6 kB / 470.7 MB, free: 2.832 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001612/0.3611, allocations: 114.4 kB / 470.8 MB, free: 2.715 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.73e-05/0.3612, allocations: 24.42 kB / 470.8 MB, free: 2.688 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.3612, allocations: 4 kB / 470.8 MB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.391e-06/0.3612, allocations: 0 / 470.8 MB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.3612, allocations: 4 kB / 470.8 MB, free: 2.68 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.3614, allocations: 166.1 kB / 471 MB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3614, allocations: 0 / 471 MB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001208/0.3615, allocations: 23.98 kB / 471 MB, free: 2.457 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.451e-06/0.3615, allocations: 4 kB / 471 MB, free: 2.453 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.3616, allocations: 3.984 kB / 471 MB, free: 2.449 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.3616, allocations: 192 / 471 MB, free: 2.449 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.3616, allocations: 11.94 kB / 471 MB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00021/0.3618, allocations: 251.5 kB / 471.3 MB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002681/0.3621, allocations: 0.6246 MB / 471.9 MB, free: 1.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.861e-05/0.3621, allocations: 112.8 kB / 472 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.356e-05/0.3622, allocations: 0 / 472 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.29e-05/0.3623, allocations: 4 kB / 472 MB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.33e-05/0.3623, allocations: 4 kB / 472 MB, free: 1.363 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.233e-05/0.3623, allocations: 11.89 kB / 472 MB, free: 1.352 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.116e-05/0.3624, allocations: 114.1 kB / 472.2 MB, free: 1.242 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008233/0.3632, allocations: 16 kB / 472.2 MB, free: 1.227 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: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.652e-05/0.3633, allocations: 95.25 kB / 472.3 MB, free: 1.125 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001597/0.3635, allocations: 84.8 kB / 472.3 MB, free: 1.043 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3635, allocations: 8.062 kB / 472.4 MB, free: 1.035 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.253e-05/0.3635, allocations: 0 / 472.4 MB, free: 1.035 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003351/0.3639, allocations: 71.81 kB / 472.4 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000348/0.3642, allocations: 165.4 kB / 472.6 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002652/0.3645, allocations: 0.7388 MB / 473.3 MB, free: 0 / 346.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3645, allocations: 4.109 kB / 473.3 MB, free: 15.99 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1)