Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample",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.002641/0.00264, allocations: 186.5 kB / 7.844 MB, free: 2.473 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.829/1.829, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.001802/0.001801, 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.1212/0.1212, allocations: 12.59 MB / 322 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2613/0.3826, allocations: 56.49 MB / 378.5 MB, free: 75.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.4867, allocations: 50.37 MB / 428.9 MB, free: 25.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3493/0.8361, allocations: 81.13 MB / 0.498 GB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002962/0.8364, allocations: 82.28 kB / 0.4981 GB, free: 11.86 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.02474/0.8612, allocations: 6.16 MB / 0.5041 GB, free: 10.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.8612, allocations: 7.531 kB / 0.5041 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.6e-05/0.8613, allocations: 30.75 kB / 0.5042 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005495/0.8619, allocations: 296.5 kB / 0.5044 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.8619, allocations: 3.781 kB / 0.5045 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.573e-05/0.862, allocations: 3.75 kB / 0.5045 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001557/0.8621, allocations: 42.39 kB / 0.5045 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.8625, allocations: 165.9 kB / 0.5047 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.8625, allocations: 0 / 0.5047 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.8625, allocations: 3.875 kB / 0.5047 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.8626, allocations: 0 / 0.5047 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006079/0.8632, allocations: 390.8 kB / 0.505 GB, free: 9.863 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002113/0.8634, allocations: 127.5 kB / 0.5052 GB, free: 9.758 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.8635, allocations: 60.83 kB / 0.5052 GB, free: 9.719 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.944e-05/0.8636, allocations: 3.875 kB / 0.5052 GB, free: 9.719 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001214/0.8637, allocations: 74.08 kB / 0.5053 GB, free: 9.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 3.196e-06/0.8637, allocations: 3.984 kB / 0.5053 GB, free: 9.656 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003344/0.8641, allocations: 116.2 kB / 0.5054 GB, free: 9.598 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.476e-05/0.8641, allocations: 194.9 kB / 0.5056 GB, free: 9.371 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004384/0.8646, allocations: 289.9 kB / 0.5059 GB, free: 9.246 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.8646, allocations: 29.33 kB / 0.5059 GB, free: 9.215 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.01e-05/0.8647, allocations: 103.3 kB / 0.506 GB, free: 9.121 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.039e-05/0.8647, allocations: 23.14 kB / 0.506 GB, free: 9.105 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.877e-06/0.8647, allocations: 0 / 0.506 GB, free: 9.105 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.058e-05/0.8648, allocations: 325.8 kB / 0.5063 GB, free: 8.789 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.75e-05/0.8649, allocations: 26.52 kB / 0.5063 GB, free: 8.785 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.8651, allocations: 106.6 kB / 0.5064 GB, free: 8.695 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.815e-05/0.8652, allocations: 30.55 kB / 0.5065 GB, free: 8.688 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.8652, allocations: 3.906 kB / 0.5065 GB, free: 8.684 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002666/0.8654, allocations: 125.3 kB / 0.5066 GB, free: 8.625 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.8655, allocations: 7.5 kB / 0.5066 GB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.8655, allocations: 3.875 kB / 0.5066 GB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.8655, allocations: 7.688 kB / 0.5066 GB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00019/0.8657, allocations: 19.52 kB / 0.5066 GB, free: 8.613 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.8657, allocations: 7.828 kB / 0.5066 GB, free: 8.609 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001428/0.8659, allocations: 15.7 kB / 0.5067 GB, free: 8.598 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.525e-05/0.8659, allocations: 7.094 kB / 0.5067 GB, free: 8.598 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 8.462e-05/0.866, allocations: 116.8 kB / 0.5068 GB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.8661, allocations: 76.03 kB / 0.5068 GB, free: 8.43 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002775/0.8664, allocations: 110.2 kB / 0.507 GB, free: 8.379 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.8665, allocations: 0 / 0.507 GB, free: 8.379 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.8665, allocations: 3.844 kB / 0.507 GB, free: 8.379 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.8665, allocations: 0 / 0.507 GB, free: 8.379 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002147/0.8667, allocations: 228.4 kB / 0.5072 GB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.8667, allocations: 11.75 kB / 0.5072 GB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001633/0.8669, allocations: 19.48 kB / 0.5072 GB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-06/0.8669, allocations: 3.875 kB / 0.5072 GB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.8669, allocations: 0 / 0.5072 GB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.867, allocations: 3.969 kB / 0.5072 GB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.867, allocations: 0 / 0.5072 GB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002837/0.8673, allocations: 206.5 kB / 0.5074 GB, free: 8 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003418/0.8676, allocations: 0.5787 MB / 0.508 GB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001539/0.8678, allocations: 121.8 kB / 0.5081 GB, free: 7.348 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.821e-05/0.8679, allocations: 1.75 kB / 0.5081 GB, free: 7.348 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000134/0.868, allocations: 7.234 kB / 0.5081 GB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.726e-05/0.8681, allocations: 8.188 kB / 0.5081 GB, free: 7.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.8681, allocations: 15.86 kB / 0.5081 GB, free: 7.332 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.000308/0.8684, allocations: 230.5 kB / 0.5083 GB, free: 7.238 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001289/0.8697, allocations: 60.67 kB / 0.5084 GB, free: 7.223 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (12): * Single equations (assignments): 10 * 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.0008365/0.8706, allocations: 329.5 kB / 0.5087 GB, free: 6.977 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003072/0.8709, allocations: 82.91 kB / 0.5088 GB, free: 6.965 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.8709, allocations: 4.062 kB / 0.5088 GB, free: 6.961 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.065e-05/0.871, allocations: 44.38 kB / 0.5088 GB, free: 6.945 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005535/0.8716, allocations: 56.62 kB / 0.5089 GB, free: 6.934 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007425/0.8723, allocations: 295.8 kB / 0.5092 GB, free: 6.766 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003226/0.8727, allocations: 0.7854 MB / 0.5099 GB, free: 6.02 MB / 330.7 MB Notification: Performance of SimCode: time 7.42e-07/0.8727, allocations: 0 / 0.5099 GB, free: 6.02 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1)