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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001098/0.001098, allocations: 182.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05819/0.05819, allocations: 10.76 MB / 27.49 MB, free: 1.863 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.278/1.278, allocations: 205.1 MB / 235.7 MB, free: 11.75 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000981/0.0009812, allocations: 95.89 kB / 285.5 MB, free: 12.87 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.001079/0.001079, allocations: 55.92 kB / 345.3 MB, free: 0.9727 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2343/0.2354, allocations: 49.01 MB / 394.3 MB, free: 35.57 MB / 298.8 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.00285/0.2383, allocations: 2.052 MB / 396.4 MB, free: 33.5 MB / 298.8 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.2397, allocations: 1.16 MB / 397.5 MB, free: 32.34 MB / 298.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.2399, allocations: 11.94 kB / 397.5 MB, free: 32.32 MB / 298.8 MB Notification: Performance of NFTyping.typeComponents: time 0.000687/0.2406, allocations: 275.4 kB / 397.8 MB, free: 32.05 MB / 298.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0003257/0.2409, allocations: 183.5 kB / 398 MB, free: 31.88 MB / 298.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005282/0.2414, allocations: 264.6 kB / 398.2 MB, free: 31.62 MB / 298.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002595/0.2417, allocations: 355.1 kB / 398.6 MB, free: 31.27 MB / 298.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.2419, allocations: 52.38 kB / 398.6 MB, free: 31.22 MB / 298.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.242, allocations: 131.4 kB / 398.8 MB, free: 31.09 MB / 298.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001391/0.2421, allocations: 143.3 kB / 398.9 MB, free: 30.95 MB / 298.8 MB Notification: Performance of NFPackage.collectConstants: time 3.131e-05/0.2422, allocations: 8 kB / 398.9 MB, free: 30.95 MB / 298.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001635/0.2423, allocations: 87.95 kB / 399 MB, free: 30.86 MB / 298.8 MB Notification: Performance of NFScalarize.scalarize: time 8.301e-05/0.2424, allocations: 87.66 kB / 399.1 MB, free: 30.77 MB / 298.8 MB Notification: Performance of NFVerifyModel.verify: time 9.145e-05/0.2425, allocations: 107.3 kB / 399.2 MB, free: 30.67 MB / 298.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0003115/0.2429, allocations: 361 kB / 399.5 MB, free: 30.32 MB / 298.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2429, allocations: 4 kB / 399.5 MB, free: 30.31 MB / 298.8 MB Notification: Performance of FrontEnd: time 7.92e-07/0.2429, allocations: 0 / 399.5 MB, free: 30.31 MB / 298.8 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.2429, allocations: 0 / 399.5 MB, free: 30.31 MB / 298.8 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.000831/0.2437, allocations: 0.6574 MB / 400.2 MB, free: 29.59 MB / 298.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.2438, allocations: 12.03 kB / 400.2 MB, free: 29.58 MB / 298.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.452e-05/0.2438, allocations: 32.56 kB / 400.2 MB, free: 29.55 MB / 298.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000321/0.2442, allocations: 332.2 kB / 400.6 MB, free: 29.19 MB / 298.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.2442, allocations: 12.06 kB / 400.6 MB, free: 29.18 MB / 298.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.741e-05/0.2442, allocations: 12 kB / 400.6 MB, free: 29.16 MB / 298.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002526/0.2445, allocations: 152.2 kB / 400.7 MB, free: 29 MB / 298.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.2445, allocations: 0 / 400.7 MB, free: 29 MB / 298.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.2445, allocations: 11.98 kB / 400.8 MB, free: 28.99 MB / 298.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.2445, allocations: 0 / 400.8 MB, free: 28.99 MB / 298.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001618/0.2447, allocations: 71.91 kB / 400.8 MB, free: 28.92 MB / 298.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005494/0.2453, allocations: 492.1 kB / 401.3 MB, free: 28.39 MB / 298.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003678/0.2456, allocations: 142.6 kB / 401.4 MB, free: 28.24 MB / 298.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.2458, allocations: 60.97 kB / 401.5 MB, free: 28.18 MB / 298.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.82e-05/0.2458, allocations: 4 kB / 401.5 MB, free: 28.17 MB / 298.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002231/0.246, allocations: 135.2 kB / 401.6 MB, free: 28.03 MB / 298.8 MB Notification: Performance of pre-optimization done (n=18): time 2.665e-06/0.246, allocations: 4 kB / 401.6 MB, free: 28.02 MB / 298.8 MB Notification: Performance of matching and sorting (n=18): time 0.0005039/0.2466, allocations: 295.3 kB / 401.9 MB, free: 27.73 MB / 298.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.2466, allocations: 106.8 kB / 402 MB, free: 27.6 MB / 298.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003151/0.2469, allocations: 416.5 kB / 402.4 MB, free: 27.18 MB / 298.8 MB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.247, allocations: 37.64 kB / 402.5 MB, free: 27.14 MB / 298.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.754e-05/0.247, allocations: 160.4 kB / 402.6 MB, free: 26.98 MB / 298.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.068e-05/0.2471, allocations: 43.45 kB / 402.7 MB, free: 26.93 MB / 298.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.539e-05/0.2471, allocations: 57.69 kB / 402.7 MB, free: 26.87 MB / 298.8 MB Notification: Performance of setup shared object (initialization): time 6.159e-05/0.2472, allocations: 346.8 kB / 403.1 MB, free: 26.52 MB / 298.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.407e-05/0.2473, allocations: 44.2 kB / 403.1 MB, free: 26.48 MB / 298.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.2474, allocations: 150.5 kB / 403.3 MB, free: 26.29 MB / 298.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000251/0.2477, allocations: 192.4 kB / 403.5 MB, free: 26.07 MB / 298.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2477, allocations: 0 / 403.5 MB, free: 26.07 MB / 298.8 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.00031/0.248, allocations: 229 kB / 403.7 MB, free: 25.84 MB / 298.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.2481, allocations: 7.984 kB / 403.7 MB, free: 25.84 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2481, allocations: 4 kB / 403.7 MB, free: 25.83 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.2481, allocations: 8.031 kB / 403.7 MB, free: 25.82 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.976e-05/0.2482, allocations: 31.92 kB / 403.7 MB, free: 25.79 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/0.2482, allocations: 7.938 kB / 403.7 MB, free: 25.79 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.2483, allocations: 19.84 kB / 403.8 MB, free: 25.77 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.2483, allocations: 8.25 kB / 403.8 MB, free: 25.76 MB / 298.8 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = true ) type: Boolean timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.tr:DISCRETE(flow=false fixed = true ) "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,timer.run,$PRE.timer.run,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,ResetSignal.combiTimeTable.nextTimeEventScaled,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.y,SetSignal.combiTimeTable.nextTimeEventScaled,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001797/0.2485, allocations: 185.2 kB / 403.9 MB, free: 25.57 MB / 298.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.725e-05/0.2486, allocations: 27.62 kB / 404 MB, free: 25.54 MB / 298.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.076e-05/0.2486, allocations: 47.19 kB / 404 MB, free: 25.5 MB / 298.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.2486, allocations: 4 kB / 404 MB, free: 25.49 MB / 298.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.2487, allocations: 0 / 404 MB, free: 25.49 MB / 298.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2487, allocations: 4 kB / 404 MB, free: 25.49 MB / 298.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001961/0.2489, allocations: 305.3 kB / 404.3 MB, free: 25.14 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2489, allocations: 0 / 404.3 MB, free: 25.14 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.025e-05/0.2489, allocations: 8 kB / 404.3 MB, free: 25.13 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2489, allocations: 0 / 404.3 MB, free: 25.13 MB / 298.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.249, allocations: 4 kB / 404.3 MB, free: 25.13 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.249, allocations: 0 / 404.3 MB, free: 25.13 MB / 298.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.249, allocations: 3.984 kB / 404.3 MB, free: 25.12 MB / 298.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006232/0.2496, allocations: 0.9316 MB / 405.3 MB, free: 24.13 MB / 298.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.307e-05/0.2497, allocations: 104.7 kB / 405.4 MB, free: 24.01 MB / 298.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.991e-05/0.2497, allocations: 15.92 kB / 405.4 MB, free: 24 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.176e-05/0.2498, allocations: 7.938 kB / 405.4 MB, free: 23.99 MB / 298.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.557e-05/0.2499, allocations: 19.97 kB / 405.4 MB, free: 23.97 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.761e-05/0.2499, allocations: 4 kB / 405.4 MB, free: 23.96 MB / 298.8 MB Notification: Performance of sorting global known variables: time 0.0002271/0.2501, allocations: 303 kB / 405.7 MB, free: 23.67 MB / 298.8 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2501, allocations: 7.938 kB / 405.7 MB, free: 23.66 MB / 298.8 MB Notification: Performance of remove unused functions: time 0.0003775/0.2505, allocations: 75.98 kB / 405.8 MB, free: 23.59 MB / 298.8 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,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008277/0.2513, allocations: 434.6 kB / 406.2 MB, free: 23.18 MB / 298.8 MB Notification: Performance of simCode: created initialization part: time 0.0002855/0.2516, allocations: 147.8 kB / 406.4 MB, free: 23.04 MB / 298.8 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2516, allocations: 0.5 kB / 406.4 MB, free: 23.04 MB / 298.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.2518, allocations: 87.89 kB / 406.4 MB, free: 22.95 MB / 298.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003889/0.2522, allocations: 77.23 kB / 406.5 MB, free: 22.87 MB / 298.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007354/0.2529, allocations: 0.7188 MB / 407.2 MB, free: 22.12 MB / 298.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001736/0.2531, allocations: 0.7755 MB / 408 MB, free: 21.31 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 0.0001088/0.2532, allocations: 42.95 kB / 408.1 MB, free: 21.27 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.273e-05/0.2533, allocations: 35.36 kB / 408.1 MB, free: 21.24 MB / 298.8 MB Notification: Performance of SimCode: time 2.1e-07/0.2533, allocations: 0 / 408.1 MB, free: 21.24 MB / 298.8 MB Notification: Performance of Templates: time 0.006428/0.2597, allocations: 4.154 MB / 412.2 MB, free: 17.09 MB / 298.8 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)