Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample",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.002365/0.002364, allocations: 195.3 kB / 7.852 MB, free: 2.484 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.924/1.924, 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.001326/0.001326, allocations: 102.5 kB / 261.5 MB, free: 13.61 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.1053/0.1053, allocations: 12.59 MB / 322 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2463/0.3516, allocations: 56.5 MB / 378.5 MB, free: 75.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.4524, allocations: 50.37 MB / 428.9 MB, free: 25.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3425/0.795, allocations: 81.03 MB / 0.4979 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002979/0.7954, allocations: 81.31 kB / 0.498 GB, free: 11.63 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.02536/0.8208, allocations: 6.025 MB / 0.5039 GB, free: 10.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.8208, allocations: 7.812 kB / 0.5039 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.302e-05/0.8209, allocations: 23.25 kB / 0.5039 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005601/0.8215, allocations: 289.5 kB / 0.5042 GB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/0.8215, allocations: 7.672 kB / 0.5042 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.078e-05/0.8216, allocations: 8.312 kB / 0.5042 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001505/0.8217, allocations: 29.94 kB / 0.5043 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003417/0.8221, allocations: 153.4 kB / 0.5044 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.8221, allocations: 4.562 kB / 0.5044 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.8222, allocations: 0.625 kB / 0.5044 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.8222, allocations: 1.656 kB / 0.5044 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000633/0.8228, allocations: 375.9 kB / 0.5048 GB, free: 9.742 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002075/0.823, allocations: 111.4 kB / 0.5049 GB, free: 9.656 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.929e-05/0.8231, allocations: 43.83 kB / 0.5049 GB, free: 9.629 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.018e-05/0.8232, allocations: 7.75 kB / 0.5049 GB, free: 9.625 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001268/0.8233, allocations: 75.2 kB / 0.505 GB, free: 9.566 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.164e-06/0.8233, allocations: 0 / 0.505 GB, free: 9.566 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003257/0.8237, allocations: 107 kB / 0.5051 GB, free: 9.512 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.734e-05/0.8237, allocations: 161.8 kB / 0.5052 GB, free: 9.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004345/0.8242, allocations: 284.9 kB / 0.5055 GB, free: 9.195 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/0.8242, allocations: 29.52 kB / 0.5055 GB, free: 9.164 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.136e-05/0.8243, allocations: 110.5 kB / 0.5057 GB, free: 9.066 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.186e-05/0.8243, allocations: 15.16 kB / 0.5057 GB, free: 9.059 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.047e-06/0.8244, allocations: 0 / 0.5057 GB, free: 9.059 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.728e-05/0.8244, allocations: 333.3 kB / 0.506 GB, free: 8.734 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.248e-05/0.8245, allocations: 19.78 kB / 0.506 GB, free: 8.734 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.8246, allocations: 87.38 kB / 0.5061 GB, free: 8.664 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.698e-05/0.8247, allocations: 33.81 kB / 0.5061 GB, free: 8.652 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.8248, allocations: 3.906 kB / 0.5061 GB, free: 8.648 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002609/0.825, allocations: 108.4 kB / 0.5062 GB, free: 8.598 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.8251, allocations: 7.656 kB / 0.5062 GB, free: 8.598 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.8251, allocations: 3.984 kB / 0.5062 GB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.8251, allocations: 0 / 0.5062 GB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000197/0.8253, allocations: 18.44 kB / 0.5063 GB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.8253, allocations: 7.844 kB / 0.5063 GB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001472/0.8255, allocations: 15.86 kB / 0.5063 GB, free: 8.578 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/0.8255, allocations: 7.844 kB / 0.5063 GB, free: 8.574 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,shiftSample1.y,shiftSample1.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.08e-05/0.8256, allocations: 109.5 kB / 0.5064 GB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/0.8257, allocations: 66.66 kB / 0.5065 GB, free: 8.414 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003433/0.8261, allocations: 111 kB / 0.5066 GB, free: 8.363 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.8261, allocations: 0 / 0.5066 GB, free: 8.363 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.8261, allocations: 7.969 kB / 0.5066 GB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.8261, allocations: 3.844 kB / 0.5066 GB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000241/0.8264, allocations: 219.6 kB / 0.5068 GB, free: 8.164 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.8264, allocations: 0 / 0.5068 GB, free: 8.164 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001288/0.8265, allocations: 15.3 kB / 0.5068 GB, free: 8.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.8266, allocations: 0 / 0.5068 GB, free: 8.16 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/0.8266, allocations: 3.719 kB / 0.5068 GB, free: 8.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.8266, allocations: 7.844 kB / 0.5068 GB, free: 8.152 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.8266, allocations: 48 / 0.5068 GB, free: 8.152 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002758/0.8269, allocations: 189.4 kB / 0.507 GB, free: 8.004 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003254/0.8272, allocations: 0.5449 MB / 0.5075 GB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001525/0.8274, allocations: 124.1 kB / 0.5076 GB, free: 7.383 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.755e-05/0.8275, allocations: 6.422 kB / 0.5076 GB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.8276, allocations: 3.844 kB / 0.5076 GB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.383e-05/0.8277, allocations: 14.98 kB / 0.5077 GB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.8277, allocations: 3.719 kB / 0.5077 GB, free: 7.371 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003135/0.828, allocations: 228.9 kB / 0.5079 GB, free: 7.273 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00243/0.8305, allocations: 52.27 kB / 0.5079 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,shiftSample1.y,sample.y,shiftSample1.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.00152/0.8321, allocations: 333.7 kB / 0.5083 GB, free: 7.016 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005179/0.8326, allocations: 73.83 kB / 0.5083 GB, free: 7.008 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.8327, allocations: 0 / 0.5083 GB, free: 7.008 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000171/0.8328, allocations: 33.23 kB / 0.5084 GB, free: 7 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.8339, allocations: 49.19 kB / 0.5084 GB, free: 6.988 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/0.8354, allocations: 285.2 kB / 0.5087 GB, free: 6.832 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000651/0.8361, allocations: 0.7714 MB / 0.5094 GB, free: 6.094 MB / 330.7 MB Notification: Performance of SimCode: time 2.034e-06/0.8362, allocations: 4 kB / 0.5094 GB, free: 6.09 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1)