Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.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/IndustrialControlSystems 1.1.0-master/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) 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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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: translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") [: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.004632/0.004632, allocations: 181 kB / 7.454 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08523/0.08523, allocations: 10.59 MB / 18.46 MB, free: 2.172 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.094/2.094, allocations: 205.2 MB / 226.5 MB, free: 0.5195 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.0009942/0.0009942, allocations: 82.03 kB / 276.9 MB, free: 15.63 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.084e-05/1.114e-05, allocations: 4 kB / 332.9 MB, free: 7.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3465/0.3465, allocations: 49.99 MB / 382.9 MB, free: 39.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1122/0.4588, allocations: 80.55 MB / 463.5 MB, free: 7.109 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00038/0.4593, allocations: 83.95 kB / 463.6 MB, free: 7.027 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.029/0.4883, allocations: 8.818 MB / 472.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.1e-05/0.4884, allocations: 4 kB / 472.4 MB, free: 14.2 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.00119/0.4896, allocations: 0.5757 MB / 473 MB, free: 13.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.4897, allocations: 8.031 kB / 473 MB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001773/0.4899, allocations: 35.62 kB / 473 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008572/0.4907, allocations: 343.1 kB / 473.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.441e-05/0.4908, allocations: 7.906 kB / 473.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.194e-05/0.4908, allocations: 11.94 kB / 473.4 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002136/0.491, allocations: 64.17 kB / 473.4 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003151/0.4914, allocations: 141.1 kB / 473.6 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.4914, allocations: 4 kB / 473.6 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.672e-05/0.4914, allocations: 0 / 473.6 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.4914, allocations: 0 / 473.6 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001016/0.4925, allocations: 485.2 kB / 474 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003182/0.4928, allocations: 126.7 kB / 474.2 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.4929, allocations: 52.98 kB / 474.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.493, allocations: 4 kB / 474.2 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002138/0.4932, allocations: 117.3 kB / 474.3 MB, free: 12.08 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 2.205e-06/0.4932, allocations: 0 / 474.3 MB, free: 12.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005421/0.4937, allocations: 191.4 kB / 474.5 MB, free: 11.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.479e-05/0.4938, allocations: 110.7 kB / 474.6 MB, free: 11.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005126/0.4944, allocations: 359.5 kB / 475 MB, free: 11.4 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.45e-05/0.4944, allocations: 29.7 kB / 475 MB, free: 11.37 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.149e-05/0.4945, allocations: 120.4 kB / 475.1 MB, free: 11.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.808e-05/0.4946, allocations: 43.59 kB / 475.2 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.595e-06/0.4946, allocations: 0 / 475.2 MB, free: 11.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.4948, allocations: 342.8 kB / 475.5 MB, free: 10.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.4949, allocations: 48.22 kB / 475.5 MB, free: 10.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001589/0.495, allocations: 137 kB / 475.7 MB, free: 10.63 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002342/0.4953, allocations: 60.98 kB / 475.7 MB, free: 10.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.4953, allocations: 0 / 475.7 MB, free: 10.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.00041/0.4957, allocations: 205.2 kB / 475.9 MB, free: 10.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.4957, allocations: 4 kB / 475.9 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.4958, allocations: 4 kB / 476 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.4958, allocations: 4 kB / 476 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.4959, allocations: 35.92 kB / 476 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.496, allocations: 4 kB / 476 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000176/0.4961, allocations: 19.83 kB / 476 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.4962, allocations: 12.16 kB / 476 MB, free: 10.28 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = false ) type: Boolean timer.Q:DISCRETE(fixed = false ) "status of the timer" type: Boolean timer.tr:DISCRETE(fixed = false ) "residual time" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 23 ($PRE.timer.Sd,timer.Sd,$PRE.timer.run,timer.run,$PRE.timer.startTime,timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$whenCondition3,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition1,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * 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.0002277/0.4964, allocations: 129.2 kB / 476.2 MB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.85e-05/0.4965, allocations: 35.53 kB / 476.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005052/0.497, allocations: 203.5 kB / 476.4 MB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.497, allocations: 7.938 kB / 476.4 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.497, allocations: 4 kB / 476.4 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.4971, allocations: 4.641 kB / 476.4 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003588/0.4974, allocations: 285.9 kB / 476.7 MB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.4974, allocations: 0 / 476.7 MB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.394e-05/0.4975, allocations: 15.94 kB / 476.7 MB, free: 9.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.4975, allocations: 0 / 476.7 MB, free: 9.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.917e-05/0.4975, allocations: 11.98 kB / 476.7 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.4975, allocations: 0 / 476.7 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.4976, allocations: 1.406 kB / 476.7 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004634/0.498, allocations: 224.5 kB / 476.9 MB, free: 9.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001575/0.4982, allocations: 120.7 kB / 477 MB, free: 9.184 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.612e-05/0.4983, allocations: 7.984 kB / 477.1 MB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001191/0.4984, allocations: 7.984 kB / 477.1 MB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.558e-05/0.4985, allocations: 15.98 kB / 477.1 MB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/0.4985, allocations: 4 kB / 477.1 MB, free: 9.148 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0004225/0.499, allocations: 291.1 kB / 477.4 MB, free: 8.859 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004966/0.4995, allocations: 76 kB / 477.4 MB, free: 8.785 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.run,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.00123/0.5007, allocations: 353 kB / 477.8 MB, free: 8.477 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003985/0.5011, allocations: 147.9 kB / 477.9 MB, free: 8.332 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.5011, allocations: 0.5 kB / 477.9 MB, free: 8.332 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001659/0.5013, allocations: 83.92 kB / 478 MB, free: 8.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004852/0.5018, allocations: 62.47 kB / 478.1 MB, free: 8.191 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.5028, allocations: 390.1 kB / 478.5 MB, free: 7.789 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006066/0.5034, allocations: 0.8138 MB / 479.3 MB, free: 6.949 MB / 362.7 MB Notification: Performance of SimCode: time 2.094e-06/0.5034, allocations: 0 / 479.3 MB, free: 6.949 MB / 362.7 MB Notification: Performance of Templates: time 0.009829/0.5133, allocations: 3.866 MB / 483.1 MB, free: 3.09 MB / 362.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1)