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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008521/0.008529, allocations: 99.44 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 193.4 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.519/1.519, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05416/0.05416, allocations: 10.74 MB / 280.6 MB, free: 10.41 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 71.91 kB / 390.8 MB, free: 5.039 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3077, allocations: 49.02 MB / 439.9 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.003394/0.3111, allocations: 1.987 MB / 441.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.3129, allocations: 1.18 MB / 443 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.313, allocations: 6.688 kB / 443 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008309/0.3138, allocations: 293.1 kB / 443.3 MB, free: 3.324 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004271/0.3143, allocations: 208 kB / 443.5 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006816/0.315, allocations: 280.8 kB / 443.8 MB, free: 3.086 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004179/0.3154, allocations: 350.3 kB / 444.1 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.3156, allocations: 54.69 kB / 444.2 MB, free: 2.906 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002063/0.3158, allocations: 148.7 kB / 444.3 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001966/0.316, allocations: 138.8 kB / 444.5 MB, free: 2.793 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.636e-05/0.316, allocations: 21.25 kB / 444.5 MB, free: 2.789 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002397/0.3163, allocations: 116.7 kB / 444.6 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.3164, allocations: 80 kB / 444.7 MB, free: 2.723 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001454/0.3166, allocations: 130.6 kB / 444.8 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005293/0.3171, allocations: 376.5 kB / 445.2 MB, free: 2.477 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3171, allocations: 0 / 445.2 MB, free: 2.477 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3171, allocations: 5.406 kB / 445.2 MB, free: 2.473 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.3171, allocations: 0 / 445.2 MB, free: 2.473 MB / 318.1 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.0009501/0.3181, allocations: 0.677 MB / 445.9 MB, free: 1.867 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.3182, allocations: 9.75 kB / 445.9 MB, free: 1.867 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.365e-05/0.3182, allocations: 32.73 kB / 445.9 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004104/0.3187, allocations: 337.5 kB / 446.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.3187, allocations: 14.7 kB / 446.2 MB, free: 1.562 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.376e-05/0.3187, allocations: 11.98 kB / 446.3 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003134/0.319, allocations: 153.6 kB / 446.4 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.3191, allocations: 1.219 kB / 446.4 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.893e-05/0.3191, allocations: 6 kB / 446.4 MB, free: 1.465 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.3191, allocations: 6.297 kB / 446.4 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001877/0.3193, allocations: 74.25 kB / 446.5 MB, free: 1.434 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007026/0.32, allocations: 481.6 kB / 447 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004031/0.3204, allocations: 147.4 kB / 447.1 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/0.3205, allocations: 62.12 kB / 447.2 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.959e-05/0.3206, allocations: 14.67 kB / 447.2 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002422/0.3209, allocations: 132.2 kB / 447.3 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.563e-06/0.3209, allocations: 0 / 447.3 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005784/0.3214, allocations: 292.9 kB / 447.6 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.374e-05/0.3215, allocations: 115.3 kB / 447.7 MB, free: 0.582 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004116/0.3219, allocations: 415.3 kB / 448.1 MB, free: 348 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.322, allocations: 37.36 kB / 448.2 MB, free: 308 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.845e-05/0.3221, allocations: 158.9 kB / 448.3 MB, free: 156 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.906e-05/0.3221, allocations: 50.95 kB / 448.4 MB, free: 112 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-05/0.3222, allocations: 45.17 kB / 448.4 MB, free: 80 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3223, allocations: 351.3 kB / 448.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.3225, allocations: 52.17 kB / 448.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002081/0.3227, allocations: 152.5 kB / 448.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003311/0.323, allocations: 193.3 kB / 449.1 MB, free: 15.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.323, allocations: 1.188 kB / 449.1 MB, free: 15.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004512/0.3235, allocations: 230.4 kB / 449.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.3235, allocations: 5.312 kB / 449.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.3235, allocations: 2.75 kB / 449.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.3235, allocations: 11.94 kB / 449.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.3237, allocations: 26.83 kB / 449.4 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.3237, allocations: 11.08 kB / 449.4 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001155/0.3238, allocations: 21.27 kB / 449.4 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/0.3238, allocations: 8.781 kB / 449.4 MB, free: 15.24 MB / 334.1 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.0002282/0.3241, allocations: 192.3 kB / 449.6 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.207e-05/0.3241, allocations: 30.78 kB / 449.7 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.077e-05/0.3242, allocations: 35.16 kB / 449.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.3242, allocations: 3.156 kB / 449.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3242, allocations: 0 / 449.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.3242, allocations: 3.984 kB / 449.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000302/0.3245, allocations: 301.7 kB / 450 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3245, allocations: 0 / 450 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.941e-05/0.3246, allocations: 11.33 kB / 450 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.3246, allocations: 1.594 kB / 450 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/0.3246, allocations: 13.69 kB / 450 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.3246, allocations: 1.344 kB / 450 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3247, allocations: 0 / 450 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004859/0.3251, allocations: 259.4 kB / 450.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.298e-05/0.3252, allocations: 114.2 kB / 450.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.204e-05/0.3253, allocations: 2.438 kB / 450.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.927e-05/0.3254, allocations: 12.42 kB / 450.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.625e-05/0.3255, allocations: 14.61 kB / 450.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.746e-05/0.3255, allocations: 9.797 kB / 450.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000351/0.3259, allocations: 308 kB / 450.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3259, allocations: 0 / 450.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003359/0.3262, allocations: 71.86 kB / 450.8 MB, free: 14.23 MB / 334.1 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.0009934/0.3272, allocations: 435.9 kB / 451.2 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004325/0.3276, allocations: 164.6 kB / 451.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3277, allocations: 3.938 kB / 451.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001566/0.3278, allocations: 79.89 kB / 451.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004094/0.3282, allocations: 74.56 kB / 451.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008198/0.3291, allocations: 0.4947 MB / 452 MB, free: 13.45 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.3295, allocations: 0.7738 MB / 452.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001294/0.3296, allocations: 45.27 kB / 452.9 MB, free: 12.69 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.694e-05/0.3297, allocations: 25.78 kB / 452.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of SimCode: time 1.963e-06/0.3297, allocations: 0 / 452.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of Templates: time 0.009924/0.3396, allocations: 4.265 MB / 457.1 MB, free: 10.52 MB / 334.1 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)