Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.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.IntegerSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample",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.002623/0.002622, allocations: 188.4 kB / 7.845 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.956/1.956, 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.001254/0.001253, allocations: 95.36 kB / 261.5 MB, free: 13.63 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.1009/0.1009, allocations: 12.58 MB / 322 MB, free: 1.008 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2472/0.3481, allocations: 56.5 MB / 378.5 MB, free: 75.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09582/0.444, allocations: 50.38 MB / 428.9 MB, free: 25.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3394/0.7835, allocations: 81.04 MB / 0.498 GB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004053/0.784, allocations: 77.7 kB / 0.498 GB, free: 11.84 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.04077/0.8248, allocations: 6.549 MB / 0.5044 GB, free: 10.46 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.085e-05/0.8248, allocations: 11.47 kB / 0.5044 GB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.825, allocations: 23.84 kB / 0.5045 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008016/0.8258, allocations: 289 kB / 0.5047 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.8259, allocations: 3.812 kB / 0.5047 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.888e-05/0.8259, allocations: 3.812 kB / 0.5047 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002113/0.8261, allocations: 36.14 kB / 0.5048 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004426/0.8266, allocations: 152.8 kB / 0.5049 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.8266, allocations: 0 / 0.5049 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.51e-05/0.8267, allocations: 0 / 0.5049 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.8267, allocations: 0 / 0.5049 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008698/0.8276, allocations: 371.9 kB / 0.5053 GB, free: 9.789 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000313/0.8279, allocations: 103.5 kB / 0.5054 GB, free: 9.711 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.8281, allocations: 49.75 kB / 0.5054 GB, free: 9.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.033e-05/0.8281, allocations: 11.75 kB / 0.5054 GB, free: 9.672 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001822/0.8283, allocations: 71.58 kB / 0.5055 GB, free: 9.613 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 4.549e-06/0.8284, allocations: 5.016 kB / 0.5055 GB, free: 9.609 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004725/0.8289, allocations: 111 kB / 0.5056 GB, free: 9.555 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.418e-05/0.829, allocations: 158.1 kB / 0.5058 GB, free: 9.367 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006326/0.8296, allocations: 284.6 kB / 0.506 GB, free: 9.238 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.66e-05/0.8297, allocations: 29.02 kB / 0.5061 GB, free: 9.207 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.533e-05/0.8298, allocations: 106.7 kB / 0.5062 GB, free: 9.113 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.572e-05/0.8298, allocations: 17.91 kB / 0.5062 GB, free: 9.102 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.454e-05/0.8299, allocations: 0 / 0.5062 GB, free: 9.102 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.83, allocations: 337.2 kB / 0.5065 GB, free: 8.777 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.791e-05/0.8301, allocations: 20.25 kB / 0.5065 GB, free: 8.777 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001937/0.8303, allocations: 88.8 kB / 0.5066 GB, free: 8.707 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001414/0.8305, allocations: 38.2 kB / 0.5066 GB, free: 8.691 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.8305, allocations: 3.906 kB / 0.5066 GB, free: 8.688 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003928/0.8309, allocations: 112.7 kB / 0.5068 GB, free: 8.633 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.831, allocations: 3.875 kB / 0.5068 GB, free: 8.633 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.831, allocations: 7.859 kB / 0.5068 GB, free: 8.629 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.831, allocations: 0 / 0.5068 GB, free: 8.629 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.8313, allocations: 22.86 kB / 0.5068 GB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.8313, allocations: 3.812 kB / 0.5068 GB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.8316, allocations: 11.61 kB / 0.5068 GB, free: 8.613 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.8316, allocations: 3.844 kB / 0.5068 GB, free: 8.613 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001229/0.8318, allocations: 110.4 kB / 0.5069 GB, free: 8.504 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001818/0.832, allocations: 64.02 kB / 0.507 GB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004408/0.8324, allocations: 112.8 kB / 0.5071 GB, free: 8.402 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.463e-06/0.8325, allocations: 0 / 0.5071 GB, free: 8.402 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.8325, allocations: 3.906 kB / 0.5071 GB, free: 8.398 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.8325, allocations: 3.688 kB / 0.5071 GB, free: 8.398 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003301/0.8328, allocations: 215.8 kB / 0.5073 GB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.8329, allocations: 0 / 0.5073 GB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.833, allocations: 23.23 kB / 0.5073 GB, free: 8.199 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.625e-06/0.8331, allocations: 0 / 0.5073 GB, free: 8.199 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/0.8331, allocations: 10.5 kB / 0.5073 GB, free: 8.195 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/0.8331, allocations: 3.906 kB / 0.5073 GB, free: 8.191 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.8331, allocations: 3.812 kB / 0.5073 GB, free: 8.191 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004014/0.8336, allocations: 178.2 kB / 0.5075 GB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005038/0.8341, allocations: 0.5464 MB / 0.508 GB, free: 7.543 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002232/0.8343, allocations: 124.4 kB / 0.5082 GB, free: 7.426 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.318e-05/0.8344, allocations: 10.23 kB / 0.5082 GB, free: 7.422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/0.8347, allocations: 0 / 0.5082 GB, free: 7.422 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.919e-05/0.8348, allocations: 7.859 kB / 0.5082 GB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-05/0.8348, allocations: 10.84 kB / 0.5082 GB, free: 7.414 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0004624/0.8353, allocations: 224.7 kB / 0.5084 GB, free: 7.32 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002213/0.8375, allocations: 57.33 kB / 0.5084 GB, free: 7.309 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 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.001323/0.8389, allocations: 338.5 kB / 0.5088 GB, free: 7.051 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000579/0.8395, allocations: 75.77 kB / 0.5088 GB, free: 7.039 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.995e-05/0.8399, allocations: 0 / 0.5088 GB, free: 7.039 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000174/0.8404, allocations: 30.55 kB / 0.5089 GB, free: 7.035 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008443/0.8412, allocations: 50.31 kB / 0.5089 GB, free: 7.023 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00119/0.8424, allocations: 278.2 kB / 0.5092 GB, free: 6.867 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004697/0.8429, allocations: 0.7734 MB / 0.5099 GB, free: 6.129 MB / 330.7 MB Notification: Performance of SimCode: time 3.717e-06/0.843, allocations: 0 / 0.5099 GB, free: 6.129 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1)