Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.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.SuperSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample",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.001825/0.001825, allocations: 186.2 kB / 7.845 MB, free: 2.508 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.959/1.959, allocations: 205.2 MB / 213.5 MB, free: 13.85 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.001816/0.001816, allocations: 90.77 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.1017/0.1017, allocations: 12.6 MB / 322 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.247/0.3488, allocations: 56.49 MB / 378.5 MB, free: 75.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.4533, allocations: 50.37 MB / 428.9 MB, free: 25.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3321/0.7855, allocations: 81.04 MB / 0.498 GB, free: 11.81 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003213/0.7858, allocations: 87.91 kB / 0.498 GB, free: 11.8 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.0349/0.8208, allocations: 6.548 MB / 0.5044 GB, free: 10.41 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.8208, allocations: 11.56 kB / 0.5044 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.086e-05/0.8209, allocations: 19.41 kB / 0.5045 GB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005829/0.8215, allocations: 287.8 kB / 0.5047 GB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.668e-05/0.8216, allocations: 3.938 kB / 0.5047 GB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.203e-05/0.8216, allocations: 3.906 kB / 0.5047 GB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001555/0.8218, allocations: 37.73 kB / 0.5048 GB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000326/0.8221, allocations: 155 kB / 0.5049 GB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.8222, allocations: 0 / 0.5049 GB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.8222, allocations: 0 / 0.5049 GB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.8222, allocations: 3.844 kB / 0.5049 GB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006607/0.8229, allocations: 367 kB / 0.5053 GB, free: 9.734 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002119/0.8231, allocations: 111.4 kB / 0.5054 GB, free: 9.652 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.963e-05/0.8232, allocations: 50.69 kB / 0.5054 GB, free: 9.617 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.176e-05/0.8233, allocations: 3.906 kB / 0.5054 GB, free: 9.613 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001282/0.8234, allocations: 71.59 kB / 0.5055 GB, free: 9.559 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 3.006e-06/0.8234, allocations: 3.844 kB / 0.5055 GB, free: 9.559 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003471/0.8238, allocations: 112.5 kB / 0.5056 GB, free: 9.5 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.925e-05/0.8238, allocations: 158.3 kB / 0.5058 GB, free: 9.309 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004582/0.8243, allocations: 286.6 kB / 0.506 GB, free: 9.184 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.8244, allocations: 25.7 kB / 0.5061 GB, free: 9.152 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.046e-05/0.8244, allocations: 104.6 kB / 0.5062 GB, free: 9.062 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.48e-05/0.8245, allocations: 22.39 kB / 0.5062 GB, free: 9.047 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.819e-06/0.8245, allocations: 0 / 0.5062 GB, free: 9.047 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.649e-05/0.8246, allocations: 331.1 kB / 0.5065 GB, free: 8.727 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.132e-05/0.8246, allocations: 18.09 kB / 0.5065 GB, free: 8.727 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.8248, allocations: 91.81 kB / 0.5066 GB, free: 8.652 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.779e-05/0.8249, allocations: 30.39 kB / 0.5066 GB, free: 8.645 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.8249, allocations: 3.906 kB / 0.5066 GB, free: 8.641 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002648/0.8252, allocations: 112.4 kB / 0.5068 GB, free: 8.586 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.8252, allocations: 7.688 kB / 0.5068 GB, free: 8.586 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.8252, allocations: 0 / 0.5068 GB, free: 8.586 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.8252, allocations: 0 / 0.5068 GB, free: 8.586 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.8254, allocations: 26.67 kB / 0.5068 GB, free: 8.578 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.8255, allocations: 7.781 kB / 0.5068 GB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001734/0.8256, allocations: 7.688 kB / 0.5068 GB, free: 8.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/0.8257, allocations: 3.891 kB / 0.5068 GB, free: 8.57 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,superSample.y,superSample.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 9.441e-05/0.8258, allocations: 113.9 kB / 0.5069 GB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.8259, allocations: 68.5 kB / 0.507 GB, free: 8.406 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003302/0.8262, allocations: 102.7 kB / 0.5071 GB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.8263, allocations: 2.219 kB / 0.5071 GB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.086e-06/0.8263, allocations: 5 kB / 0.5071 GB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.8263, allocations: 0.7812 kB / 0.5071 GB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002389/0.8265, allocations: 223.8 kB / 0.5073 GB, free: 8.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.8266, allocations: 4.188 kB / 0.5073 GB, free: 8.156 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/0.8267, allocations: 19.44 kB / 0.5073 GB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.8267, allocations: 3.844 kB / 0.5073 GB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.8267, allocations: 3.938 kB / 0.5073 GB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.8268, allocations: 7.891 kB / 0.5073 GB, free: 8.137 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.8268, allocations: 3.812 kB / 0.5073 GB, free: 8.137 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002736/0.827, allocations: 174.3 kB / 0.5075 GB, free: 8 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003246/0.8274, allocations: 0.5543 MB / 0.508 GB, free: 7.484 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/0.8276, allocations: 125 kB / 0.5082 GB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.677e-05/0.8276, allocations: 0 / 0.5082 GB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.8278, allocations: 3.625 kB / 0.5082 GB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.715e-05/0.8278, allocations: 10.33 kB / 0.5082 GB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.529e-05/0.8279, allocations: 3.875 kB / 0.5082 GB, free: 7.367 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003222/0.8282, allocations: 232.3 kB / 0.5084 GB, free: 7.27 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001301/0.8295, allocations: 47.66 kB / 0.5084 GB, free: 7.262 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,superSample.y,sample.y,superSample.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.001286/0.8308, allocations: 345.8 kB / 0.5088 GB, free: 7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004274/0.8313, allocations: 80.97 kB / 0.5089 GB, free: 6.984 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.8313, allocations: 0 / 0.5089 GB, free: 6.984 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.8314, allocations: 30.16 kB / 0.5089 GB, free: 6.984 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007682/0.8322, allocations: 49.45 kB / 0.5089 GB, free: 6.973 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.8333, allocations: 277.5 kB / 0.5092 GB, free: 6.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004559/0.8338, allocations: 0.7729 MB / 0.51 GB, free: 6.078 MB / 330.7 MB Notification: Performance of SimCode: time 2.865e-06/0.8339, allocations: 0 / 0.51 GB, free: 6.078 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1)