Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_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 3.2.3+maint.om/package.mo): time 0.001829/0.001829, allocations: 188.5 kB / 7.845 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.023/2.023, allocations: 205.2 MB / 213.4 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001275/0.001274, allocations: 90.98 kB / 261.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1141/0.1141, allocations: 12.58 MB / 322 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2583/0.3724, allocations: 56.5 MB / 378.5 MB, free: 75.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09849/0.471, allocations: 50.38 MB / 428.9 MB, free: 25.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3354/0.8064, allocations: 78.4 MB / 0.4954 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002836/0.8068, allocations: 81.19 kB / 0.4955 GB, free: 11.96 MB / 330.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.02508/0.8319, allocations: 5.274 MB / 0.5006 GB, free: 11.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/0.8319, allocations: 12.14 kB / 0.5006 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001556/0.8321, allocations: 35.05 kB / 0.5007 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006519/0.8328, allocations: 247.7 kB / 0.5009 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.537e-05/0.8329, allocations: 3.844 kB / 0.5009 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.913e-05/0.833, allocations: 11.69 kB / 0.5009 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008136/0.8338, allocations: 178.4 kB / 0.5011 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002011/0.8358, allocations: 0.5721 MB / 0.5016 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.276e-05/0.8359, allocations: 0 / 0.5016 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.772e-05/0.836, allocations: 7.875 kB / 0.5016 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.225e-05/0.8361, allocations: 17.94 kB / 0.5017 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.8371, allocations: 329.5 kB / 0.502 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007427/0.8379, allocations: 217.3 kB / 0.5022 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005027/0.8384, allocations: 132.2 kB / 0.5023 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.032e-05/0.8386, allocations: 14.45 kB / 0.5023 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.805e-05/0.8386, allocations: 37.5 kB / 0.5024 GB, free: 10.52 MB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 6.331e-06/0.8386, allocations: 0 / 0.5024 GB, free: 10.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=39): time 0.001376/0.84, allocations: 278.1 kB / 0.5026 GB, free: 10.46 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001563/0.8402, allocations: 124 kB / 0.5027 GB, free: 10.34 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002566/0.8405, allocations: 138.1 kB / 0.5029 GB, free: 10.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.384e-05/0.8406, allocations: 33.67 kB / 0.5029 GB, free: 10.21 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.521e-05/0.8407, allocations: 91.19 kB / 0.503 GB, free: 10.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.316e-05/0.8408, allocations: 53.52 kB / 0.503 GB, free: 10.1 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.279e-05/0.8408, allocations: 0 / 0.503 GB, free: 10.1 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.8409, allocations: 332.8 kB / 0.5034 GB, free: 9.789 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002063/0.8412, allocations: 60.77 kB / 0.5034 GB, free: 9.789 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003784/0.8416, allocations: 302.3 kB / 0.5037 GB, free: 9.465 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003533/0.8419, allocations: 123.9 kB / 0.5038 GB, free: 9.445 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.236e-05/0.842, allocations: 3.688 kB / 0.5038 GB, free: 9.445 MB / 330.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001218/0.8432, allocations: 330.9 kB / 0.5041 GB, free: 9.355 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/0.8433, allocations: 5.234 kB / 0.5041 GB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.82e-05/0.8433, allocations: 11.22 kB / 0.5042 GB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.074e-05/0.8434, allocations: 11.22 kB / 0.5042 GB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00066/0.8441, allocations: 85.34 kB / 0.5042 GB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.405e-05/0.8441, allocations: 16.83 kB / 0.5043 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004703/0.8446, allocations: 24.91 kB / 0.5043 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.245e-05/0.8447, allocations: 30.56 kB / 0.5043 GB, free: 9.328 MB / 330.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 0.0002348/0.8449, allocations: 128.1 kB / 0.5044 GB, free: 9.207 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000845/0.8458, allocations: 263.3 kB / 0.5047 GB, free: 9.156 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001253/0.846, allocations: 34.2 kB / 0.5047 GB, free: 9.148 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.846, allocations: 12.61 kB / 0.5047 GB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.846, allocations: 4 kB / 0.5047 GB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.846, allocations: 1.312 kB / 0.5047 GB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002991/0.8463, allocations: 197.9 kB / 0.5049 GB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.8463, allocations: 3.719 kB / 0.5049 GB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005858/0.8469, allocations: 70.95 kB / 0.505 GB, free: 8.965 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.061e-05/0.847, allocations: 3.844 kB / 0.505 GB, free: 8.965 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.187e-05/0.847, allocations: 2.438 kB / 0.505 GB, free: 8.965 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.847, allocations: 3.844 kB / 0.505 GB, free: 8.965 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.847, allocations: 3.938 kB / 0.505 GB, free: 8.961 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007599/0.8478, allocations: 432.3 kB / 0.5054 GB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007521/0.8486, allocations: 0.7894 MB / 0.5062 GB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001923/0.8488, allocations: 138.2 kB / 0.5063 GB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.65e-05/0.8489, allocations: 11.02 kB / 0.5063 GB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002892/0.8492, allocations: 7.594 kB / 0.5063 GB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.453e-05/0.8492, allocations: 0 / 0.5063 GB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.68e-05/0.8493, allocations: 14.83 kB / 0.5064 GB, free: 8.047 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001229/0.8494, allocations: 119.3 kB / 0.5065 GB, free: 7.969 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001423/0.8509, allocations: 38.66 kB / 0.5065 GB, free: 7.965 MB / 330.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.0001579/0.851, allocations: 108.1 kB / 0.5066 GB, free: 7.863 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006527/0.8517, allocations: 250.8 kB / 0.5069 GB, free: 7.824 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.8517, allocations: 0.8125 kB / 0.5069 GB, free: 7.824 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.406e-05/0.8518, allocations: 3.875 kB / 0.5069 GB, free: 7.824 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008525/0.8526, allocations: 192.6 kB / 0.507 GB, free: 7.781 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.8542, allocations: 379.4 kB / 0.5074 GB, free: 7.594 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004218/0.8547, allocations: 0.8107 MB / 0.5082 GB, free: 6.836 MB / 330.7 MB Notification: Performance of SimCode: time 1.423e-06/0.8547, allocations: 4 kB / 0.5082 GB, free: 6.832 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample2_fmu --startTime=0 --stopTime=0.06 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample2.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1)