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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001213/0.001212, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001451/0.001451, allocations: 190.9 kB / 16.25 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.1718/0.1718, allocations: 11.16 MB / 301.2 MB, free: 1.352 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 63.89 kB / 364.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09981/0.1011, allocations: 51.97 MB / 416.1 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.003357/0.1045, allocations: 2.044 MB / 418.1 MB, free: 5.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0022/0.1067, allocations: 1.247 MB / 419.3 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.1068, allocations: 0 / 419.3 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007698/0.1076, allocations: 291.3 kB / 419.6 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003913/0.108, allocations: 191.3 kB / 419.8 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007233/0.1088, allocations: 287.3 kB / 420.1 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003593/0.1091, allocations: 359.1 kB / 420.4 MB, free: 2.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.1093, allocations: 52.33 kB / 420.5 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.1095, allocations: 147.4 kB / 420.6 MB, free: 2.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000195/0.1097, allocations: 167.3 kB / 420.8 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.637e-05/0.1097, allocations: 16 kB / 420.8 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001963/0.1099, allocations: 99.95 kB / 420.9 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001254/0.1101, allocations: 95.66 kB / 421 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.1102, allocations: 127.3 kB / 421.1 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004351/0.1106, allocations: 379 kB / 421.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1106, allocations: 0 / 421.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1106, allocations: 0 / 421.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.1107, allocations: 0 / 421.5 MB, free: 1.664 MB / 350.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.0009801/0.1116, allocations: 0.669 MB / 422.2 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.1117, allocations: 8.031 kB / 422.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.825e-05/0.1118, allocations: 32.56 kB / 422.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004182/0.1122, allocations: 344.1 kB / 422.6 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.1122, allocations: 8.125 kB / 422.6 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.954e-05/0.1123, allocations: 15.98 kB / 422.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003426/0.1126, allocations: 158.6 kB / 422.7 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.1126, allocations: 3.938 kB / 422.7 MB, free: 332 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.033e-05/0.1127, allocations: 7.984 kB / 422.7 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.1127, allocations: 4 kB / 422.7 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001823/0.1129, allocations: 67.84 kB / 422.8 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1891/0.3019, allocations: 484.7 kB / 423.3 MB, free: 41.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004074/0.3024, allocations: 145.5 kB / 423.4 MB, free: 41.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.3025, allocations: 56.97 kB / 423.5 MB, free: 41.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.3026, allocations: 7.281 kB / 423.5 MB, free: 41.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002638/0.3028, allocations: 132 kB / 423.6 MB, free: 41.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 2.274e-06/0.3028, allocations: 1.469 kB / 423.6 MB, free: 41.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005569/0.3034, allocations: 286.1 kB / 423.9 MB, free: 41.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.731e-05/0.3034, allocations: 112.7 kB / 424 MB, free: 41.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003799/0.3038, allocations: 443.8 kB / 424.4 MB, free: 41.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.3039, allocations: 33.55 kB / 424.5 MB, free: 41.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.025e-05/0.3039, allocations: 167.6 kB / 424.6 MB, free: 41.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.554e-05/0.304, allocations: 43.69 kB / 424.7 MB, free: 41.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.119e-05/0.3041, allocations: 52.17 kB / 424.7 MB, free: 40.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.916e-05/0.3041, allocations: 344.5 kB / 425.1 MB, free: 40.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.3042, allocations: 47.72 kB / 425.1 MB, free: 40.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.3044, allocations: 148.8 kB / 425.3 MB, free: 40.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000242/0.3046, allocations: 193.2 kB / 425.4 MB, free: 40.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3046, allocations: 7.531 kB / 425.5 MB, free: 40.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003256/0.3049, allocations: 224.7 kB / 425.7 MB, free: 40.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.305, allocations: 7.297 kB / 425.7 MB, free: 40.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.305, allocations: 6.031 kB / 425.7 MB, free: 40.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.305, allocations: 4.25 kB / 425.7 MB, free: 40.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.887e-05/0.3051, allocations: 33.84 kB / 425.7 MB, free: 40.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.3051, allocations: 4 kB / 425.7 MB, free: 40.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001125/0.3052, allocations: 22.61 kB / 425.8 MB, free: 40.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.348e-05/0.3053, allocations: 9.875 kB / 425.8 MB, free: 40.43 MB / 350.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.0001655/0.3054, allocations: 191.7 kB / 425.9 MB, free: 40.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.071e-05/0.3055, allocations: 32.14 kB / 426 MB, free: 40.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.031e-05/0.3055, allocations: 33.44 kB / 426 MB, free: 40.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.3055, allocations: 2.812 kB / 426 MB, free: 40.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3056, allocations: 0 / 426 MB, free: 40.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.3056, allocations: 3.625 kB / 426 MB, free: 40.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002009/0.3058, allocations: 309.2 kB / 426.3 MB, free: 40.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.3058, allocations: 1.344 kB / 426.3 MB, free: 40.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.218e-05/0.3058, allocations: 12.5 kB / 426.3 MB, free: 40.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.3058, allocations: 1.781 kB / 426.3 MB, free: 40.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.3058, allocations: 6.125 kB / 426.3 MB, free: 40.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.3059, allocations: 2.594 kB / 426.3 MB, free: 40.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.92e-07/0.3059, allocations: 2.25 kB / 426.3 MB, free: 40.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003504/0.3062, allocations: 267.7 kB / 426.6 MB, free: 40.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.391e-05/0.3063, allocations: 107.8 kB / 426.7 MB, free: 39.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.434e-05/0.3063, allocations: 5.094 kB / 426.7 MB, free: 39.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.66e-05/0.3064, allocations: 12.2 kB / 426.7 MB, free: 39.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.228e-05/0.3065, allocations: 13.72 kB / 426.7 MB, free: 39.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-05/0.3065, allocations: 12.66 kB / 426.8 MB, free: 39.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002495/0.3067, allocations: 323 kB / 427.1 MB, free: 39.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3067, allocations: 0.7812 kB / 427.1 MB, free: 39.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002973/0.307, allocations: 65.94 kB / 427.1 MB, free: 39.82 MB / 350.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.0009156/0.308, allocations: 447.7 kB / 427.6 MB, free: 39.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003619/0.3083, allocations: 163.4 kB / 427.7 MB, free: 39.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3084, allocations: 0 / 427.7 MB, free: 39.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001352/0.3085, allocations: 80.8 kB / 427.8 MB, free: 39.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004229/0.3089, allocations: 85.42 kB / 427.9 MB, free: 39.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006389/0.3096, allocations: 0.569 MB / 428.5 MB, free: 39.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000156/0.3097, allocations: 0.7777 MB / 429.2 MB, free: 38.72 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001173/0.3099, allocations: 49.8 kB / 429.3 MB, free: 38.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.479e-05/0.3099, allocations: 25.66 kB / 429.3 MB, free: 38.71 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3099, allocations: 0 / 429.3 MB, free: 38.71 MB / 350.1 MB Notification: Performance of Templates: time 0.006711/0.3166, allocations: 4.223 MB / 433.5 MB, free: 38.39 MB / 350.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)