Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.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_Redge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.0009614/0.0009615, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.273/1.273, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05731/0.05731, allocations: 10.74 MB / 281.3 MB, free: 1.32 MB / 222.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.001404/0.001404, allocations: 67.89 kB / 342 MB, free: 4.461 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2323, allocations: 49.01 MB / 391 MB, free: 49.97 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.003076/0.2355, allocations: 1.988 MB / 393 MB, free: 48.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0016/0.2371, allocations: 1.181 MB / 394.2 MB, free: 47.78 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.2372, allocations: 10.62 kB / 394.2 MB, free: 47.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008527/0.2381, allocations: 294.2 kB / 394.5 MB, free: 47.7 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.0004696/0.2385, allocations: 205.5 kB / 394.7 MB, free: 47.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007121/0.2393, allocations: 288 kB / 395 MB, free: 47.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004255/0.2397, allocations: 355.9 kB / 395.3 MB, free: 47.31 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.2399, allocations: 50.44 kB / 395.4 MB, free: 47.29 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.24, allocations: 142.9 kB / 395.5 MB, free: 47.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001932/0.2402, allocations: 154.5 kB / 395.6 MB, free: 47.17 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.294e-05/0.2403, allocations: 21.88 kB / 395.7 MB, free: 47.17 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000232/0.2405, allocations: 114 kB / 395.8 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.2407, allocations: 85.56 kB / 395.9 MB, free: 47.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.2408, allocations: 131.6 kB / 396 MB, free: 47.01 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004882/0.2413, allocations: 374.9 kB / 396.4 MB, free: 46.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2413, allocations: 0 / 396.4 MB, free: 46.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2413, allocations: 0 / 396.4 MB, free: 46.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.2413, allocations: 0 / 396.4 MB, free: 46.86 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.000937/0.2423, allocations: 0.6827 MB / 397 MB, free: 46.26 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.2423, allocations: 8.656 kB / 397 MB, free: 46.26 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.647e-05/0.2424, allocations: 40.75 kB / 397.1 MB, free: 46.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004167/0.2428, allocations: 336.1 kB / 397.4 MB, free: 45.96 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.2428, allocations: 14.06 kB / 397.4 MB, free: 45.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.918e-05/0.2429, allocations: 8.672 kB / 397.4 MB, free: 45.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003052/0.2432, allocations: 159.4 kB / 397.6 MB, free: 45.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.2432, allocations: 0.6562 kB / 397.6 MB, free: 45.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.89e-05/0.2432, allocations: 6.109 kB / 397.6 MB, free: 45.85 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.2432, allocations: 2.438 kB / 397.6 MB, free: 45.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001731/0.2434, allocations: 73.8 kB / 397.7 MB, free: 45.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006901/0.2441, allocations: 496.5 kB / 398.2 MB, free: 45.45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000395/0.2445, allocations: 147.1 kB / 398.3 MB, free: 45.39 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.2447, allocations: 56.25 kB / 398.4 MB, free: 45.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.2447, allocations: 2.078 kB / 398.4 MB, free: 45.36 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002599/0.245, allocations: 141.9 kB / 398.5 MB, free: 45.28 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.583e-06/0.245, allocations: 0 / 398.5 MB, free: 45.28 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006177/0.2456, allocations: 285.2 kB / 398.8 MB, free: 45.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.676e-05/0.2456, allocations: 112.4 kB / 398.9 MB, free: 45.04 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004659/0.2461, allocations: 439.5 kB / 399.3 MB, free: 44.83 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.2461, allocations: 33.45 kB / 399.4 MB, free: 44.8 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.227e-05/0.2462, allocations: 169.8 kB / 399.5 MB, free: 44.64 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.31e-05/0.2463, allocations: 50.84 kB / 399.6 MB, free: 44.6 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.407e-05/0.2463, allocations: 47.39 kB / 399.6 MB, free: 44.56 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.108e-05/0.2464, allocations: 346.4 kB / 400 MB, free: 44.22 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.9e-05/0.2465, allocations: 44.41 kB / 400 MB, free: 44.2 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.2467, allocations: 157.7 kB / 400.1 MB, free: 44.05 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000277/0.247, allocations: 189.4 kB / 400.3 MB, free: 43.9 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.247, allocations: 1.531 kB / 400.3 MB, free: 43.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000367/0.2473, allocations: 230.1 kB / 400.6 MB, free: 43.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.2474, allocations: 5.906 kB / 400.6 MB, free: 43.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.2474, allocations: 2.406 kB / 400.6 MB, free: 43.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.2474, allocations: 7.719 kB / 400.6 MB, free: 43.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.2475, allocations: 30.3 kB / 400.6 MB, free: 43.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.2475, allocations: 7.531 kB / 400.6 MB, free: 43.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.2477, allocations: 30.3 kB / 400.6 MB, free: 43.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/0.2477, allocations: 6.844 kB / 400.6 MB, free: 43.73 MB / 318.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.0001779/0.2479, allocations: 195 kB / 400.8 MB, free: 43.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.415e-05/0.2479, allocations: 31.03 kB / 400.9 MB, free: 43.55 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.202e-05/0.248, allocations: 35.53 kB / 400.9 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.248, allocations: 1.469 kB / 400.9 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.248, allocations: 7.938 kB / 400.9 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.248, allocations: 1.406 kB / 400.9 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002318/0.2482, allocations: 311.6 kB / 401.2 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.2483, allocations: 0 / 401.2 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.55e-05/0.2483, allocations: 10.69 kB / 401.2 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.2483, allocations: 5.234 kB / 401.2 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.2483, allocations: 7.156 kB / 401.2 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2483, allocations: 0 / 401.2 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2483, allocations: 1.188 kB / 401.2 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003921/0.2487, allocations: 267.8 kB / 401.5 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.723e-05/0.2488, allocations: 109.4 kB / 401.6 MB, free: 42.92 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.448e-05/0.2489, allocations: 2.219 kB / 401.6 MB, free: 42.92 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.785e-05/0.2489, allocations: 13.8 kB / 401.6 MB, free: 42.91 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.205e-05/0.249, allocations: 13.77 kB / 401.6 MB, free: 42.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.249, allocations: 6.125 kB / 401.6 MB, free: 42.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002834/0.2493, allocations: 322.8 kB / 402 MB, free: 42.72 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2493, allocations: 1.062 kB / 402 MB, free: 42.72 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003505/0.2497, allocations: 72.17 kB / 402 MB, free: 42.7 MB / 318.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.0009691/0.2507, allocations: 441.8 kB / 402.5 MB, free: 42.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003428/0.251, allocations: 152.7 kB / 402.6 MB, free: 42.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.251, allocations: 2 kB / 402.6 MB, free: 42.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00014/0.2512, allocations: 78.12 kB / 402.7 MB, free: 42.4 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/0.2516, allocations: 87.69 kB / 402.8 MB, free: 42.36 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006966/0.2523, allocations: 0.492 MB / 403.3 MB, free: 42.04 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001841/0.2525, allocations: 0.7762 MB / 404 MB, free: 41.29 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001123/0.2526, allocations: 40.33 kB / 404.1 MB, free: 41.28 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6e-05/0.2527, allocations: 35.17 kB / 404.1 MB, free: 41.26 MB / 318.1 MB Notification: Performance of SimCode: time 8.82e-07/0.2527, allocations: 0 / 404.1 MB, free: 41.26 MB / 318.1 MB Notification: Performance of Templates: time 0.008437/0.2611, allocations: 4.287 MB / 408.4 MB, free: 38.96 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1)