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.001111/0.001111, allocations: 116.2 kB / 16.42 MB, free: 6.477 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.001121/0.001122, allocations: 189.5 kB / 17.35 MB, free: 5.711 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.31/1.31, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06124/0.06124, allocations: 10.74 MB / 281.3 MB, free: 1.281 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.00154/0.00154, allocations: 67.45 kB / 391.5 MB, free: 46.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06318/0.06473, allocations: 49.04 MB / 440.5 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.002471/0.06722, allocations: 1.979 MB / 442.5 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001348/0.06859, allocations: 1.182 MB / 443.7 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.0687, allocations: 7.938 kB / 443.7 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006458/0.06937, allocations: 303.2 kB / 444 MB, free: 456 kB / 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.0003538/0.06973, allocations: 199.3 kB / 444.2 MB, free: 256 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005708/0.07031, allocations: 289.9 kB / 444.5 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003452/0.07066, allocations: 347 kB / 444.8 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000121/0.07079, allocations: 48.33 kB / 444.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001659/0.07097, allocations: 147.4 kB / 445 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000165/0.07114, allocations: 151.4 kB / 445.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.919e-05/0.07119, allocations: 20 kB / 445.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002063/0.0714, allocations: 119.8 kB / 445.3 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.622e-05/0.07151, allocations: 79.75 kB / 445.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.07164, allocations: 135.1 kB / 445.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004195/0.07206, allocations: 382.4 kB / 445.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.07207, allocations: 0 / 445.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.07209, allocations: 4 kB / 445.9 MB, free: 14.56 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.0721, allocations: 0 / 445.9 MB, free: 14.56 MB / 334.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.0008635/0.07297, allocations: 0.6875 MB / 446.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.07301, allocations: 8.031 kB / 446.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.434e-05/0.07309, allocations: 40.64 kB / 446.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003949/0.07349, allocations: 348.4 kB / 447 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.143e-05/0.07352, allocations: 12.11 kB / 447 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.397e-05/0.07355, allocations: 12 kB / 447 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/0.07385, allocations: 156 kB / 447.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.07387, allocations: 0 / 447.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.07389, allocations: 8 kB / 447.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.0739, allocations: 0 / 447.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001829/0.07409, allocations: 79.83 kB / 447.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000628/0.07473, allocations: 484.4 kB / 447.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004019/0.07514, allocations: 150.8 kB / 447.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.07529, allocations: 60.83 kB / 447.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.07532, allocations: 4 kB / 447.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002586/0.07558, allocations: 133.4 kB / 448 MB, free: 12.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.784e-06/0.07559, allocations: 0 / 448 MB, free: 12.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005978/0.0762, allocations: 289.2 kB / 448.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.057e-05/0.07626, allocations: 114.8 kB / 448.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004399/0.0767, allocations: 437.7 kB / 448.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/0.07674, allocations: 29.7 kB / 448.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.07685, allocations: 176.4 kB / 449.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.214e-05/0.0769, allocations: 47.64 kB / 449.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.669e-05/0.07697, allocations: 45.7 kB / 449.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.07709, allocations: 350.7 kB / 449.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.07721, allocations: 44.22 kB / 449.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.0774, allocations: 152.6 kB / 449.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003069/0.07771, allocations: 188.4 kB / 449.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.07773, allocations: 8 kB / 449.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003952/0.07813, allocations: 225.2 kB / 450.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.07815, allocations: 8 kB / 450.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.07817, allocations: 3.938 kB / 450.1 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.07818, allocations: 7.938 kB / 450.1 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.0783, allocations: 27.98 kB / 450.1 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.07832, allocations: 8.188 kB / 450.2 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001225/0.07845, allocations: 27.88 kB / 450.2 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/0.07847, allocations: 12 kB / 450.2 MB, free: 9.922 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.0001908/0.07867, allocations: 204.3 kB / 450.4 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.062e-05/0.07873, allocations: 31.77 kB / 450.4 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.093e-05/0.07879, allocations: 35.28 kB / 450.5 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.0788, allocations: 0 / 450.5 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.07881, allocations: 4 kB / 450.5 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.028e-05/0.07889, allocations: 108.9 kB / 450.6 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.562e-05/0.07894, allocations: 3.984 kB / 450.6 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.07904, allocations: 19.97 kB / 450.6 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.569e-05/0.0791, allocations: 11.98 kB / 450.6 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000456/0.07956, allocations: 297.7 kB / 450.9 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000465/0.08004, allocations: 413.7 kB / 451.3 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001467/0.0802, allocations: 71.97 kB / 451.4 MB, free: 8.699 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000319/0.08052, allocations: 327.1 kB / 451.7 MB, free: 8.379 MB / 334.1 MB Notification: Performance of Backend: time 3.4e-07/0.08053, allocations: 0 / 451.7 MB, free: 8.379 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001421/0.08196, allocations: 0.5399 MB / 452.2 MB, free: 7.953 MB / 334.1 MB Notification: Performance of SimCode: time 0.0009374/0.08291, allocations: 0.9499 MB / 453.2 MB, free: 6.957 MB / 334.1 MB Notification: Performance of Templates: time 0.007955/0.09088, allocations: 4.396 MB / 457.6 MB, free: 2.562 MB / 334.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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1)