Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.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: "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001332/0.001332, allocations: 192.1 kB / 16.13 MB, free: 6.66 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.515/1.515, allocations: 205.1 MB / 222 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05579/0.05579, allocations: 10.75 MB / 280.1 MB, free: 10.7 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.001312/0.001312, allocations: 71.83 kB / 340 MB, free: 23.69 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08496/0.08628, allocations: 49.01 MB / 389 MB, free: 6.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.003338/0.08967, allocations: 2.057 MB / 391 MB, free: 4.543 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001785/0.09148, allocations: 1.155 MB / 392.2 MB, free: 3.379 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.0916, allocations: 3.938 kB / 392.2 MB, free: 3.375 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008725/0.09248, allocations: 267.4 kB / 392.5 MB, free: 3.113 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003844/0.09287, allocations: 183.5 kB / 392.6 MB, free: 2.934 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006228/0.0935, allocations: 247.6 kB / 392.9 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003589/0.09387, allocations: 347 kB / 393.2 MB, free: 2.352 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.09405, allocations: 52.3 kB / 393.3 MB, free: 2.301 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001658/0.09422, allocations: 119.5 kB / 393.4 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/0.09441, allocations: 135.4 kB / 393.5 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.317e-05/0.09445, allocations: 8 kB / 393.5 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000186/0.09464, allocations: 83.89 kB / 393.6 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.09476, allocations: 75.73 kB / 393.7 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001218/0.09489, allocations: 107.3 kB / 393.8 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000394/0.09529, allocations: 351.1 kB / 394.1 MB, free: 1.438 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.09531, allocations: 3.938 kB / 394.1 MB, free: 1.434 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.09531, allocations: 0 / 394.1 MB, free: 1.434 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.09532, allocations: 0 / 394.1 MB, free: 1.434 MB / 286.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.001017/0.09634, allocations: 0.6342 MB / 394.8 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.0964, allocations: 8.031 kB / 394.8 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.77e-05/0.09645, allocations: 46.73 kB / 394.8 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.4e-05/0.09653, allocations: 32.56 kB / 394.8 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003995/0.09694, allocations: 324.2 kB / 395.2 MB, free: 296 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.09697, allocations: 15.94 kB / 395.2 MB, free: 280 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.734e-05/0.09701, allocations: 15.98 kB / 395.2 MB, free: 264 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003607/0.09738, allocations: 144.1 kB / 395.3 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.0974, allocations: 0 / 395.3 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.148e-05/0.09744, allocations: 4 kB / 395.3 MB, free: 100 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.09746, allocations: 7.984 kB / 395.3 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001735/0.09764, allocations: 67.91 kB / 395.4 MB, free: 24 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007379/0.09838, allocations: 484.1 kB / 395.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003354/0.09873, allocations: 134.8 kB / 396 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/0.09887, allocations: 64.77 kB / 396.1 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.0989, allocations: 0 / 396.1 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002564/0.09916, allocations: 130.5 kB / 396.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.513e-06/0.09917, allocations: 4 kB / 396.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005556/0.09974, allocations: 257.2 kB / 396.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.197e-05/0.09982, allocations: 114.7 kB / 396.6 MB, free: 14.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003769/0.1002, allocations: 384.4 kB / 397 MB, free: 14.37 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.435e-05/0.1002, allocations: 33.7 kB / 397 MB, free: 14.33 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.1003, allocations: 152.4 kB / 397.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.202e-05/0.1004, allocations: 47.39 kB / 397.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.61e-05/0.1005, allocations: 49.69 kB / 397.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1006, allocations: 354.7 kB / 397.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.1007, allocations: 43.97 kB / 397.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/0.1009, allocations: 144.6 kB / 397.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003123/0.1012, allocations: 188.4 kB / 397.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.1012, allocations: 0 / 397.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003882/0.1016, allocations: 221.2 kB / 398.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.1017, allocations: 8 kB / 398.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.1017, allocations: 0 / 398.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.1017, allocations: 4 kB / 398.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.1018, allocations: 35.92 kB / 398.2 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.1019, allocations: 4 kB / 398.2 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001155/0.102, allocations: 27.77 kB / 398.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.102, allocations: 11.94 kB / 398.2 MB, free: 12.96 MB / 302.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.run:DISCRETE(fixed = true ) "Flag: true while the timer is counting" 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: 22 ($PRE.timer.Sd,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$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,timer.Sd) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0002311/0.1022, allocations: 176.1 kB / 398.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.738e-05/0.1023, allocations: 31.62 kB / 398.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.588e-05/0.1024, allocations: 31.08 kB / 398.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1024, allocations: 0 / 398.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.1024, allocations: 0 / 398.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.1024, allocations: 3.938 kB / 398.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003071/0.1027, allocations: 297.3 kB / 398.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1027, allocations: 4 kB / 398.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.582e-05/0.1028, allocations: 11.94 kB / 398.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.1028, allocations: 0 / 398.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/0.1028, allocations: 3.984 kB / 398.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1028, allocations: 4.125 kB / 398.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.1028, allocations: 4 kB / 398.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00041/0.1032, allocations: 244.6 kB / 399 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.647e-05/0.1033, allocations: 100.8 kB / 399.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.328e-05/0.1033, allocations: 8 kB / 399.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.256e-05/0.1034, allocations: 7.984 kB / 399.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.829e-05/0.1035, allocations: 11.98 kB / 399.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.372e-05/0.1035, allocations: 15.92 kB / 399.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002698/0.1038, allocations: 275 kB / 399.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1038, allocations: 0 / 399.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003182/0.1041, allocations: 71.83 kB / 399.5 MB, free: 11.6 MB / 302.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: 13 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.startTime,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 (16): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.001558/0.1057, allocations: 1.135 MB / 400.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003508/0.1061, allocations: 148.1 kB / 400.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1061, allocations: 4.125 kB / 400.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001481/0.1062, allocations: 67.92 kB / 400.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000427/0.1067, allocations: 72.97 kB / 400.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003379/0.1101, allocations: 2.879 MB / 403.8 MB, free: 7.238 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.1104, allocations: 0.7597 MB / 404.6 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001281/0.1105, allocations: 42.27 kB / 404.6 MB, free: 6.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.1107, allocations: 87.39 kB / 404.7 MB, free: 6.328 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1107, allocations: 4 kB / 404.7 MB, free: 6.324 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01688/0.1275, allocations: 6.847 MB / 411.6 MB, free: 15.49 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001938/0.1278, allocations: 274.6 kB / 411.8 MB, free: 15.12 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.794/1.922, allocations: 0 / 411.8 MB, free: 15.12 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1)