Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.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.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold",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.001863/0.001863, allocations: 185.2 kB / 7.843 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.894/1.894, allocations: 205.2 MB / 213.4 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.002237/0.002237, allocations: 90.78 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.1269/0.1269, allocations: 12.59 MB / 322 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2987/0.4257, allocations: 56.49 MB / 378.5 MB, free: 75.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.5304, allocations: 50.37 MB / 428.9 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3513/0.8818, allocations: 81.2 MB / 0.4981 GB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000309/0.8822, allocations: 83.27 kB / 0.4982 GB, free: 11.89 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.02674/0.9089, allocations: 6.147 MB / 0.5042 GB, free: 10.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.909, allocations: 15.34 kB / 0.5042 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.9091, allocations: 31.25 kB / 0.5042 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006268/0.9098, allocations: 286.6 kB / 0.5045 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/0.9098, allocations: 0 / 0.5045 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.976e-05/0.9099, allocations: 11.47 kB / 0.5045 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001711/0.91, allocations: 38.77 kB / 0.5046 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000358/0.9104, allocations: 161 kB / 0.5047 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.9104, allocations: 3.844 kB / 0.5047 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.08e-05/0.9105, allocations: 0 / 0.5047 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.9105, allocations: 4 kB / 0.5047 GB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000768/0.9113, allocations: 460.1 kB / 0.5052 GB, free: 9.789 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.9115, allocations: 133.8 kB / 0.5053 GB, free: 9.68 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.9116, allocations: 57.8 kB / 0.5053 GB, free: 9.641 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.759e-05/0.9117, allocations: 3.844 kB / 0.5053 GB, free: 9.641 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001531/0.9118, allocations: 91.14 kB / 0.5054 GB, free: 9.566 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 3.817e-06/0.9119, allocations: 0 / 0.5054 GB, free: 9.566 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004106/0.9123, allocations: 117.2 kB / 0.5055 GB, free: 9.508 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.426e-05/0.9124, allocations: 191.8 kB / 0.5057 GB, free: 9.281 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005268/0.9129, allocations: 286 kB / 0.506 GB, free: 9.156 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.389e-05/0.913, allocations: 33.25 kB / 0.506 GB, free: 9.121 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.328e-05/0.913, allocations: 99.22 kB / 0.5061 GB, free: 9.031 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.583e-05/0.9131, allocations: 14.75 kB / 0.5061 GB, free: 9.023 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.207e-06/0.9131, allocations: 0 / 0.5061 GB, free: 9.023 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.852e-05/0.9132, allocations: 333.8 kB / 0.5065 GB, free: 8.703 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.255e-05/0.9133, allocations: 22.28 kB / 0.5065 GB, free: 8.703 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001339/0.9134, allocations: 109.1 kB / 0.5066 GB, free: 8.613 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001058/0.9135, allocations: 34.14 kB / 0.5066 GB, free: 8.605 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.9135, allocations: 4 kB / 0.5066 GB, free: 8.602 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003281/0.9139, allocations: 125.2 kB / 0.5067 GB, free: 8.543 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.9139, allocations: 3.906 kB / 0.5067 GB, free: 8.543 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.9139, allocations: 3.984 kB / 0.5067 GB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.412e-05/0.914, allocations: 3.812 kB / 0.5067 GB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002254/0.9142, allocations: 19.61 kB / 0.5068 GB, free: 8.535 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.9142, allocations: 3.906 kB / 0.5068 GB, free: 8.535 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001663/0.9144, allocations: 19.77 kB / 0.5068 GB, free: 8.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.9144, allocations: 3.812 kB / 0.5068 GB, free: 8.52 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample.u,shiftSample.y,hold.u,hold.y,shiftSample.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 0.0001064/0.9145, allocations: 119.8 kB / 0.5069 GB, free: 8.406 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.9147, allocations: 64.34 kB / 0.507 GB, free: 8.359 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003311/0.915, allocations: 114.1 kB / 0.5071 GB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.915, allocations: 3.906 kB / 0.5071 GB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.9151, allocations: 7.844 kB / 0.5071 GB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.9151, allocations: 4.062 kB / 0.5071 GB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002733/0.9154, allocations: 225.6 kB / 0.5073 GB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.9154, allocations: 0 / 0.5073 GB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001602/0.9156, allocations: 15.41 kB / 0.5073 GB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-06/0.9156, allocations: 3.781 kB / 0.5073 GB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.9156, allocations: 3.984 kB / 0.5073 GB, free: 8.098 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.9156, allocations: 3.875 kB / 0.5073 GB, free: 8.098 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-06/0.9156, allocations: 0 / 0.5073 GB, free: 8.098 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003721/0.916, allocations: 209.9 kB / 0.5075 GB, free: 7.926 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003717/0.9164, allocations: 0.5813 MB / 0.5081 GB, free: 7.387 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/0.9166, allocations: 123.2 kB / 0.5082 GB, free: 7.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.17e-05/0.9167, allocations: 7.031 kB / 0.5082 GB, free: 7.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.9169, allocations: 4 kB / 0.5082 GB, free: 7.266 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.368e-05/0.9169, allocations: 15.03 kB / 0.5082 GB, free: 7.262 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.917, allocations: 3.812 kB / 0.5082 GB, free: 7.262 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003461/0.9173, allocations: 231.1 kB / 0.5085 GB, free: 7.164 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001309/0.9186, allocations: 51.25 kB / 0.5085 GB, free: 7.156 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,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample.u,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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.0009839/0.9197, allocations: 340.4 kB / 0.5088 GB, free: 6.898 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003855/0.9201, allocations: 88.25 kB / 0.5089 GB, free: 6.883 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.9201, allocations: 0 / 0.5089 GB, free: 6.883 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.9202, allocations: 37.27 kB / 0.509 GB, free: 6.879 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006488/0.9209, allocations: 60.72 kB / 0.509 GB, free: 6.863 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009085/0.9218, allocations: 288 kB / 0.5093 GB, free: 6.703 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003504/0.9222, allocations: 0.7816 MB / 0.5101 GB, free: 5.957 MB / 330.7 MB Notification: Performance of SimCode: time 1.243e-06/0.9222, allocations: 0 / 0.5101 GB, free: 5.957 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1)