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.0006979/0.0006979, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.004523/0.004523, allocations: 174.5 kB / 16.27 MB, free: 6.648 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.327/1.327, allocations: 205.4 MB / 222.4 MB, free: 5.809 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05325/0.05325, allocations: 10.75 MB / 281.5 MB, free: 10.69 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.0004757/0.0004758, allocations: 12 kB / 342.3 MB, free: 23.43 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09358/0.09407, allocations: 50.01 MB / 392.3 MB, free: 5.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.002415/0.09654, allocations: 1.691 MB / 394 MB, free: 3.641 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001719/0.09828, allocations: 1.139 MB / 395.2 MB, free: 2.492 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.89e-05/0.09839, allocations: 4 kB / 395.2 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007916/0.09919, allocations: 263.4 kB / 395.4 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003764/0.09958, allocations: 175.5 kB / 395.6 MB, free: 2.059 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006356/0.1002, allocations: 255.5 kB / 395.9 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003801/0.1006, allocations: 339.1 kB / 396.2 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.1007, allocations: 52.3 kB / 396.2 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001457/0.1009, allocations: 119.5 kB / 396.4 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001542/0.1011, allocations: 127.4 kB / 396.5 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.645e-05/0.1011, allocations: 8 kB / 396.5 MB, free: 1.176 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001654/0.1013, allocations: 87.88 kB / 396.6 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.47e-05/0.1014, allocations: 67.75 kB / 396.6 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.1015, allocations: 133 kB / 396.8 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003623/0.1019, allocations: 339 kB / 397.1 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1019, allocations: 0 / 397.1 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1019, allocations: 0 / 397.1 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.1019, allocations: 0 / 397.1 MB, free: 0.5547 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.0008947/0.1028, allocations: 0.591 MB / 397.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.1028, allocations: 16.03 kB / 397.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.962e-05/0.1029, allocations: 46.73 kB / 397.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.842e-05/0.103, allocations: 28.56 kB / 397.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004008/0.1034, allocations: 328.2 kB / 398.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.1034, allocations: 15.94 kB / 398.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.654e-05/0.1034, allocations: 12 kB / 398.1 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003023/0.1037, allocations: 152.1 kB / 398.3 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.1038, allocations: 4 kB / 398.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.1038, allocations: 0 / 398.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.1038, allocations: 4 kB / 398.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001669/0.104, allocations: 63.91 kB / 398.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006836/0.1047, allocations: 488.1 kB / 398.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003148/0.105, allocations: 138.7 kB / 399 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.1051, allocations: 52.84 kB / 399 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.089e-05/0.1052, allocations: 4 kB / 399 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002366/0.1054, allocations: 130.5 kB / 399.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.413e-06/0.1054, allocations: 0 / 399.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005674/0.106, allocations: 261.1 kB / 399.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.13e-05/0.1061, allocations: 122.7 kB / 399.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004395/0.1065, allocations: 380.5 kB / 399.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.1065, allocations: 29.7 kB / 399.9 MB, free: 13.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.1067, allocations: 160.4 kB / 400.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.783e-05/0.1067, allocations: 47.39 kB / 400.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.339e-05/0.1068, allocations: 29.7 kB / 400.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.1069, allocations: 346.7 kB / 400.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.1071, allocations: 47.97 kB / 400.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/0.1072, allocations: 140.6 kB / 400.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003177/0.1076, allocations: 192.4 kB / 400.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1076, allocations: 0 / 400.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003817/0.108, allocations: 221.1 kB / 401.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.108, allocations: 8 kB / 401.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.108, allocations: 0 / 401.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.108, allocations: 4 kB / 401.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/0.1082, allocations: 31.92 kB / 401.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.1082, allocations: 4 kB / 401.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001249/0.1083, allocations: 39.95 kB / 401.2 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.594e-05/0.1083, allocations: 12 kB / 401.2 MB, free: 12.14 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.0002322/0.1086, allocations: 172.1 kB / 401.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.1e-05/0.1086, allocations: 27.62 kB / 401.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.544e-05/0.1087, allocations: 31.08 kB / 401.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.1087, allocations: 8 kB / 401.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1087, allocations: 48 / 401.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.892e-06/0.1087, allocations: 7.922 kB / 401.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000273/0.109, allocations: 293.3 kB / 401.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.109, allocations: 0 / 401.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.569e-05/0.1091, allocations: 11.94 kB / 401.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1091, allocations: 0 / 401.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/0.1091, allocations: 11.98 kB / 401.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1091, allocations: 0 / 401.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1091, allocations: 0 / 401.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004037/0.1095, allocations: 248.6 kB / 402 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.932e-05/0.1096, allocations: 108.7 kB / 402.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.197e-05/0.1097, allocations: 8 kB / 402.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.213e-05/0.1097, allocations: 11.98 kB / 402.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.892e-05/0.1098, allocations: 11.98 kB / 402.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-05/0.1098, allocations: 7.938 kB / 402.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002881/0.1101, allocations: 283 kB / 402.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1101, allocations: 4 kB / 402.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003149/0.1105, allocations: 59.94 kB / 402.5 MB, free: 10.77 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.001609/0.1121, allocations: 1.123 MB / 403.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003374/0.1124, allocations: 155.7 kB / 403.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.1124, allocations: 4 kB / 403.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00014/0.1126, allocations: 75.91 kB / 403.8 MB, free: 9.488 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004124/0.113, allocations: 72.95 kB / 403.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003497/0.1165, allocations: 2.865 MB / 406.7 MB, free: 6.406 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/0.1169, allocations: 0.7675 MB / 407.5 MB, free: 5.613 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001328/0.117, allocations: 46.5 kB / 407.6 MB, free: 5.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.1171, allocations: 87.34 kB / 407.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1172, allocations: 4 kB / 407.6 MB, free: 5.484 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1792/0.2963, allocations: 6.618 MB / 414.3 MB, free: 14.91 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002244/0.2966, allocations: 270 kB / 414.5 MB, free: 14.54 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.13/2.427, allocations: 0 / 414.5 MB, free: 14.54 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)