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.001207/0.001206, allocations: 106.8 kB / 16.35 MB, free: 5.824 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.001264/0.001264, allocations: 193.1 kB / 17.29 MB, free: 5.48 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.586/1.586, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05798/0.05798, allocations: 10.74 MB / 281.3 MB, free: 1.293 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.001962/0.001962, allocations: 68.11 kB / 342 MB, free: 4.438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3787/0.3806, allocations: 49.01 MB / 391 MB, free: 50.23 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.004034/0.3847, allocations: 1.99 MB / 393 MB, free: 48.85 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002058/0.3868, allocations: 1.186 MB / 394.2 MB, free: 48.04 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001635/0.387, allocations: 3.531 kB / 394.2 MB, free: 48.04 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001266/0.3883, allocations: 295.4 kB / 394.5 MB, free: 47.95 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.0005932/0.3889, allocations: 200.8 kB / 394.7 MB, free: 47.86 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009714/0.3899, allocations: 288.8 kB / 394.9 MB, free: 47.72 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004963/0.3904, allocations: 353 kB / 395.3 MB, free: 47.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.3906, allocations: 50.36 kB / 395.3 MB, free: 47.55 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001985/0.3908, allocations: 146.7 kB / 395.5 MB, free: 47.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000205/0.391, allocations: 149.4 kB / 395.6 MB, free: 47.42 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.388e-05/0.391, allocations: 26.47 kB / 395.6 MB, free: 47.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000282/0.3913, allocations: 110.5 kB / 395.8 MB, free: 47.39 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001432/0.3915, allocations: 88.02 kB / 395.8 MB, free: 47.35 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.3916, allocations: 116.5 kB / 396 MB, free: 47.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005947/0.3922, allocations: 378.9 kB / 396.3 MB, free: 47.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3923, allocations: 0 / 396.3 MB, free: 47.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3923, allocations: 0 / 396.3 MB, free: 47.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.3923, allocations: 1.25 kB / 396.3 MB, free: 47.11 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.001175/0.3935, allocations: 0.6624 MB / 397 MB, free: 46.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.3935, allocations: 8.938 kB / 397 MB, free: 46.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.3936, allocations: 32.38 kB / 397 MB, free: 46.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004932/0.3941, allocations: 333.7 kB / 397.4 MB, free: 46.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/0.3942, allocations: 14.55 kB / 397.4 MB, free: 46.22 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.972e-05/0.3942, allocations: 12.42 kB / 397.4 MB, free: 46.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003578/0.3946, allocations: 156.1 kB / 397.5 MB, free: 46.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.3946, allocations: 4 kB / 397.5 MB, free: 46.12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.282e-05/0.3946, allocations: 6.047 kB / 397.5 MB, free: 46.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.3946, allocations: 2.469 kB / 397.5 MB, free: 46.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001959/0.3948, allocations: 69.58 kB / 397.6 MB, free: 46.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008425/0.3957, allocations: 486.3 kB / 398.1 MB, free: 45.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004526/0.3961, allocations: 150.5 kB / 398.2 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001391/0.3963, allocations: 60.17 kB / 398.3 MB, free: 45.63 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.017e-05/0.3963, allocations: 6.453 kB / 398.3 MB, free: 45.63 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003145/0.3967, allocations: 144.5 kB / 398.4 MB, free: 45.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.663e-06/0.3967, allocations: 0 / 398.4 MB, free: 45.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007269/0.3974, allocations: 283 kB / 398.7 MB, free: 45.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.864e-05/0.3975, allocations: 111.6 kB / 398.8 MB, free: 45.3 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005856/0.3981, allocations: 419.6 kB / 399.2 MB, free: 45.1 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.3981, allocations: 33.05 kB / 399.3 MB, free: 45.06 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.3982, allocations: 161.1 kB / 399.4 MB, free: 44.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.555e-05/0.3983, allocations: 46.95 kB / 399.5 MB, free: 44.88 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.056e-05/0.3983, allocations: 48.61 kB / 399.5 MB, free: 44.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.738e-05/0.3984, allocations: 347.8 kB / 399.9 MB, free: 44.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.3986, allocations: 51.7 kB / 399.9 MB, free: 44.47 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.3987, allocations: 145.6 kB / 400 MB, free: 44.33 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003363/0.3991, allocations: 185.1 kB / 400.2 MB, free: 44.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3991, allocations: 1.469 kB / 400.2 MB, free: 44.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003916/0.3995, allocations: 233.5 kB / 400.5 MB, free: 44.05 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.3995, allocations: 6.25 kB / 400.5 MB, free: 44.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.3996, allocations: 3.656 kB / 400.5 MB, free: 44.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.3996, allocations: 7.266 kB / 400.5 MB, free: 44.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.3997, allocations: 33.86 kB / 400.5 MB, free: 44.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.3997, allocations: 3.562 kB / 400.5 MB, free: 44.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001211/0.3998, allocations: 21.44 kB / 400.5 MB, free: 44.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.3999, allocations: 16.34 kB / 400.6 MB, free: 44.02 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.0002224/0.4001, allocations: 185 kB / 400.7 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.153e-05/0.4002, allocations: 34.62 kB / 400.8 MB, free: 43.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.204e-05/0.4002, allocations: 29.66 kB / 400.8 MB, free: 43.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.4003, allocations: 2.031 kB / 400.8 MB, free: 43.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.4003, allocations: 13.05 kB / 400.8 MB, free: 43.81 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.4003, allocations: 0 / 400.8 MB, free: 43.81 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000352/0.4006, allocations: 298.7 kB / 401.1 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4006, allocations: 0 / 401.1 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.948e-05/0.4007, allocations: 11.55 kB / 401.1 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.4007, allocations: 1.031 kB / 401.1 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.4007, allocations: 6.125 kB / 401.1 MB, free: 43.51 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.4007, allocations: 5.156 kB / 401.1 MB, free: 43.51 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4007, allocations: 0 / 401.1 MB, free: 43.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000511/0.4013, allocations: 263.7 kB / 401.4 MB, free: 43.35 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.423e-05/0.4014, allocations: 113.6 kB / 401.5 MB, free: 43.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.105e-05/0.4014, allocations: 6.281 kB / 401.5 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.945e-05/0.4015, allocations: 8.609 kB / 401.5 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.433e-05/0.4016, allocations: 14.86 kB / 401.5 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.98e-05/0.4016, allocations: 6.031 kB / 401.5 MB, free: 43.21 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004149/0.402, allocations: 306.6 kB / 401.8 MB, free: 43.04 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.402, allocations: 1.125 kB / 401.8 MB, free: 43.04 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004154/0.4025, allocations: 71.7 kB / 401.9 MB, free: 43.01 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.001101/0.4036, allocations: 457.6 kB / 402.3 MB, free: 42.79 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004155/0.404, allocations: 160.2 kB / 402.5 MB, free: 42.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.404, allocations: 1.594 kB / 402.5 MB, free: 42.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001974/0.4042, allocations: 87.05 kB / 402.6 MB, free: 42.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004714/0.4047, allocations: 75 kB / 402.7 MB, free: 42.65 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008895/0.4056, allocations: 492.8 kB / 403.1 MB, free: 42.33 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003428/0.406, allocations: 0.7697 MB / 403.9 MB, free: 41.59 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001356/0.4061, allocations: 41.11 kB / 404 MB, free: 41.58 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.017e-05/0.4062, allocations: 33.95 kB / 404 MB, free: 41.57 MB / 318.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4062, allocations: 4 kB / 404 MB, free: 41.56 MB / 318.1 MB Notification: Performance of Templates: time 0.01032/0.4165, allocations: 4.228 MB / 408.2 MB, free: 39.27 MB / 318.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 -s cvode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1)