Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.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.UpSample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001349/0.001349, allocations: 206.7 kB / 8.544 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 225.5 MB / 234.4 MB, free: 3.488 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001007/0.001007, allocations: 93.02 kB / 286.3 MB, free: 5.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1222/0.1232, allocations: 56.91 MB / 343.2 MB, free: 8.699 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.2288, allocations: 51.47 MB / 394.7 MB, free: 5.184 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.272/0.5009, allocations: 77.6 MB / 472.3 MB, free: 14.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002592/0.5012, allocations: 70.14 kB / 472.4 MB, free: 14.2 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.01264/0.5139, allocations: 4.596 MB / 477 MB, free: 11.63 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.5139, allocations: 8 kB / 477 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002109/0.5142, allocations: 28.08 kB / 477 MB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002765/0.5145, allocations: 216.7 kB / 477.2 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.168e-05/0.5145, allocations: 4 kB / 477.2 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.737e-05/0.5145, allocations: 7.938 kB / 477.2 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001396/0.5147, allocations: 46.64 kB / 477.3 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003938/0.5151, allocations: 226.3 kB / 477.5 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.5151, allocations: 11.64 kB / 477.5 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.5151, allocations: 0 / 477.5 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.5151, allocations: 7.75 kB / 477.5 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000476/0.5156, allocations: 279.9 kB / 477.8 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001824/0.5158, allocations: 118.1 kB / 477.9 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.247e-05/0.5159, allocations: 64.2 kB / 478 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.676e-05/0.516, allocations: 3.562 kB / 478 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.516, allocations: 41.83 kB / 478 MB, free: 10.64 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.643e-06/0.516, allocations: 0 / 478 MB, free: 10.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002711/0.5163, allocations: 112.1 kB / 478.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.799e-05/0.5163, allocations: 118.1 kB / 478.2 MB, free: 10.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.5165, allocations: 138.3 kB / 478.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.5165, allocations: 25.7 kB / 478.4 MB, free: 10.26 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.602e-05/0.5165, allocations: 86.14 kB / 478.5 MB, free: 10.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.269e-05/0.5166, allocations: 21.67 kB / 478.5 MB, free: 10.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.46e-06/0.5166, allocations: 0 / 478.5 MB, free: 10.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.627e-05/0.5166, allocations: 321.8 kB / 478.8 MB, free: 9.848 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.016e-05/0.5167, allocations: 19 kB / 478.8 MB, free: 9.832 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.211e-05/0.5168, allocations: 120.9 kB / 479 MB, free: 9.676 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.244e-05/0.5168, allocations: 44.72 kB / 479 MB, free: 9.645 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.5168, allocations: 0 / 479 MB, free: 9.645 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002251/0.5171, allocations: 138.9 kB / 479.1 MB, free: 9.527 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.5171, allocations: 12.09 kB / 479.1 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.5171, allocations: 0 / 479.1 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.5171, allocations: 15.31 kB / 479.2 MB, free: 9.504 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.5173, allocations: 31.17 kB / 479.2 MB, free: 9.477 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.5173, allocations: 7.938 kB / 479.2 MB, free: 9.469 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.523e-05/0.5174, allocations: 15.84 kB / 479.2 MB, free: 9.453 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.5174, allocations: 14.69 kB / 479.2 MB, free: 9.445 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 7.669e-05/0.5175, allocations: 112.9 kB / 479.3 MB, free: 9.328 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000171/0.5177, allocations: 105.2 kB / 479.4 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.412e-05/0.5177, allocations: 15.62 kB / 479.5 MB, free: 9.238 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.5178, allocations: 4 kB / 479.5 MB, free: 9.234 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.5178, allocations: 0 / 479.5 MB, free: 9.234 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.5178, allocations: 3.281 kB / 479.5 MB, free: 9.234 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001513/0.5179, allocations: 171.7 kB / 479.6 MB, free: 9.059 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.5179, allocations: 4 kB / 479.6 MB, free: 9.055 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001287/0.5181, allocations: 23.42 kB / 479.7 MB, free: 9.035 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.5181, allocations: 4 kB / 479.7 MB, free: 9.031 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.5181, allocations: 4 kB / 479.7 MB, free: 9.027 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.5181, allocations: 0 / 479.7 MB, free: 9.027 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.5181, allocations: 2.719 kB / 479.7 MB, free: 9.027 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002068/0.5183, allocations: 263.7 kB / 479.9 MB, free: 8.777 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002351/0.5186, allocations: 0.6167 MB / 480.5 MB, free: 8.16 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.237e-05/0.5187, allocations: 103.2 kB / 480.6 MB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.98e-05/0.5187, allocations: 8 kB / 480.6 MB, free: 8.043 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.34e-05/0.5188, allocations: 0 / 480.6 MB, free: 8.043 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.732e-05/0.5189, allocations: 7.906 kB / 480.7 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.5189, allocations: 10.77 kB / 480.7 MB, free: 8.031 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.329e-05/0.5189, allocations: 107.9 kB / 480.8 MB, free: 7.938 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008936/0.5198, allocations: 16 kB / 480.8 MB, free: 7.922 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 0.0001665/0.52, allocations: 99.19 kB / 480.9 MB, free: 7.816 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001692/0.5202, allocations: 87.62 kB / 481 MB, free: 7.75 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.5202, allocations: 0 / 481 MB, free: 7.75 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.739e-05/0.5202, allocations: 7.375 kB / 481 MB, free: 7.746 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003843/0.5206, allocations: 75.52 kB / 481.1 MB, free: 7.695 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003734/0.521, allocations: 164.2 kB / 481.2 MB, free: 7.527 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001967/0.5212, allocations: 0.7513 MB / 482 MB, free: 6.781 MB / 346.7 MB Notification: Performance of SimCode: time 3.71e-07/0.5212, allocations: 1.781 kB / 482 MB, free: 6.781 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1)