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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 110 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06493/0.06493, allocations: 11.35 MB / 314 MB, free: 14.94 MB / 254.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/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: "" <> 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001863/0.001863, allocations: 63.91 kB / 437.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1048, allocations: 54.84 MB / 492.2 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.00345/0.1083, allocations: 1.997 MB / 494.2 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.1104, allocations: 1.259 MB / 495.4 MB, free: 248 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.1105, allocations: 7.938 kB / 495.4 MB, free: 240 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008908/0.1114, allocations: 279.2 kB / 495.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00045/0.1119, allocations: 197.3 kB / 495.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008165/0.1127, allocations: 321.4 kB / 496.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004117/0.1131, allocations: 331.2 kB / 496.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.1132, allocations: 36.38 kB / 496.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001847/0.1134, allocations: 143.5 kB / 496.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001985/0.1136, allocations: 151.3 kB / 496.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.402e-05/0.1137, allocations: 16 kB / 496.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000213/0.1139, allocations: 111.9 kB / 497 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.114, allocations: 83.73 kB / 497.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.1141, allocations: 107.3 kB / 497.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004658/0.1146, allocations: 358.5 kB / 497.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.1146, allocations: 0 / 497.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1146, allocations: 0 / 497.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.1146, allocations: 0 / 497.5 MB, free: 14.15 MB / 366.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.001088/0.1157, allocations: 0.6533 MB / 498.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.1157, allocations: 11.89 kB / 498.2 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.95e-05/0.1158, allocations: 46.73 kB / 498.2 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.52e-05/0.1158, allocations: 40.69 kB / 498.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004767/0.1163, allocations: 320.5 kB / 498.6 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.985e-05/0.1163, allocations: 23.8 kB / 498.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.185e-05/0.1164, allocations: 12 kB / 498.6 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000318/0.1167, allocations: 144.2 kB / 498.8 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.1167, allocations: 4 kB / 498.8 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/0.1167, allocations: 11.98 kB / 498.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.1167, allocations: 4 kB / 498.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001815/0.1169, allocations: 63.91 kB / 498.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007339/0.1177, allocations: 480.4 kB / 499.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003536/0.118, allocations: 134.7 kB / 499.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.1181, allocations: 48.84 kB / 499.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.441e-05/0.1182, allocations: 0 / 499.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002635/0.1184, allocations: 123.3 kB / 499.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.533e-06/0.1184, allocations: 4 kB / 499.6 MB, free: 11.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006237/0.119, allocations: 265.4 kB / 499.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.734e-05/0.1191, allocations: 114.8 kB / 500 MB, free: 11.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004444/0.1196, allocations: 380.4 kB / 0.4886 GB, free: 11.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/0.1196, allocations: 37.69 kB / 0.4887 GB, free: 11.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.1197, allocations: 152.5 kB / 0.4888 GB, free: 10.87 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.211e-05/0.1198, allocations: 47.64 kB / 0.4889 GB, free: 10.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.252e-05/0.1199, allocations: 45.7 kB / 0.4889 GB, free: 10.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.12, allocations: 350.8 kB / 0.4892 GB, free: 10.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.1202, allocations: 43.97 kB / 0.4893 GB, free: 10.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001912/0.1204, allocations: 149 kB / 0.4894 GB, free: 10.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003183/0.1207, allocations: 176.5 kB / 0.4896 GB, free: 9.988 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.1207, allocations: 4 kB / 0.4896 GB, free: 9.984 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004454/0.1211, allocations: 221.4 kB / 0.4898 GB, free: 9.762 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.1211, allocations: 11.12 kB / 0.4898 GB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.1211, allocations: 0 / 0.4898 GB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.1212, allocations: 4 kB / 0.4898 GB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.1213, allocations: 31.92 kB / 0.4899 GB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.1213, allocations: 15.91 kB / 0.4899 GB, free: 9.703 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001219/0.1214, allocations: 27.91 kB / 0.4899 GB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.865e-05/0.1215, allocations: 16 kB / 0.4899 GB, free: 9.66 MB / 366.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.0002355/0.1217, allocations: 176.8 kB / 0.4901 GB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.193e-05/0.1217, allocations: 31.81 kB / 0.4901 GB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.598e-05/0.1218, allocations: 31.02 kB / 0.4901 GB, free: 9.406 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.1218, allocations: 4 kB / 0.4901 GB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.1218, allocations: 0 / 0.4901 GB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1218, allocations: 3.938 kB / 0.4901 GB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003044/0.1221, allocations: 297.4 kB / 0.4904 GB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1221, allocations: 0 / 0.4904 GB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.61e-05/0.1222, allocations: 7.984 kB / 0.4904 GB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.1222, allocations: 4 kB / 0.4904 GB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.1222, allocations: 4 kB / 0.4904 GB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.1222, allocations: 4 kB / 0.4904 GB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1222, allocations: 0 / 0.4904 GB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004576/0.1227, allocations: 251.9 kB / 0.4907 GB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.562e-05/0.1228, allocations: 112.9 kB / 0.4908 GB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.513e-05/0.1228, allocations: 7.984 kB / 0.4908 GB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.733e-05/0.1229, allocations: 8 kB / 0.4908 GB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.186e-05/0.1229, allocations: 12.02 kB / 0.4908 GB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.77e-05/0.123, allocations: 19.92 kB / 0.4908 GB, free: 8.602 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003248/0.1233, allocations: 275 kB / 0.4911 GB, free: 8.332 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1233, allocations: 0 / 0.4911 GB, free: 8.332 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003278/0.1236, allocations: 67.88 kB / 0.4912 GB, free: 8.266 MB / 366.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.002151/0.1258, allocations: 1.114 MB / 0.4923 GB, free: 7.293 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004124/0.1262, allocations: 144.1 kB / 0.4924 GB, free: 7.152 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1262, allocations: 4.188 kB / 0.4924 GB, free: 7.148 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001508/0.1263, allocations: 59.97 kB / 0.4925 GB, free: 7.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00047/0.1268, allocations: 87.7 kB / 0.4925 GB, free: 7.016 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003627/0.1304, allocations: 2.808 MB / 0.4953 GB, free: 4.066 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004227/0.1309, allocations: 0.7673 MB / 0.496 GB, free: 3.273 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001407/0.131, allocations: 42.27 kB / 0.4961 GB, free: 3.234 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.1311, allocations: 83.41 kB / 0.4962 GB, free: 3.152 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.1311, allocations: 0 / 0.4962 GB, free: 3.152 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03196/0.1631, allocations: 7.339 MB / 0.5033 GB, free: 11.94 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.318/8.481, allocations: 8 kB / 0.5033 GB, free: 11.93 MB / 382.1 MB " [Timeout remaining time 651] (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 --stepSize=0.02 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.25533870793879] Failed to read output from testmodel.py, exit status != 0: 8.6049292110838 8.79272667 8.502719746 Calling exit ...