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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 123.8 kB / 17.17 MB, free: 5.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 210.3 kB / 20.13 MB, free: 2.98 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.394/1.394, allocations: 230.6 MB / 253.5 MB, free: 15.12 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.06046/0.06046, allocations: 11.33 MB / 320.9 MB, free: 14.11 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/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 67.88 kB / 446.5 MB, free: 38.87 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1066, allocations: 56 MB / 0.4908 GB, free: 3.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.003343/0.1099, allocations: 2.043 MB / 0.4928 GB, free: 1.402 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.1117, allocations: 1.403 MB / 0.4941 GB, free: 15.99 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00012/0.1118, allocations: 7.938 kB / 0.4941 GB, free: 15.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008493/0.1127, allocations: 275.1 kB / 0.4944 GB, free: 15.71 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005669/0.1132, allocations: 251.1 kB / 0.4946 GB, free: 15.47 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006625/0.1139, allocations: 250.2 kB / 0.4949 GB, free: 15.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004466/0.1143, allocations: 355 kB / 0.4952 GB, free: 14.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.1145, allocations: 33.02 kB / 0.4952 GB, free: 14.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001957/0.1147, allocations: 151.3 kB / 0.4954 GB, free: 14.7 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002009/0.1149, allocations: 159.4 kB / 0.4955 GB, free: 14.54 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.527e-05/0.1149, allocations: 20 kB / 0.4956 GB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002239/0.1152, allocations: 111.9 kB / 0.4957 GB, free: 14.41 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.1153, allocations: 71.75 kB / 0.4957 GB, free: 14.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.1154, allocations: 131.1 kB / 0.4959 GB, free: 14.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000528/0.1159, allocations: 358.5 kB / 0.4962 GB, free: 13.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1159, allocations: 0 / 0.4962 GB, free: 13.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1159, allocations: 0 / 0.4962 GB, free: 13.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.1159, allocations: 0 / 0.4962 GB, free: 13.86 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.001108/0.117, allocations: 0.6765 MB / 0.4969 GB, free: 13.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.1171, allocations: 12.03 kB / 0.4969 GB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.703e-05/0.1171, allocations: 384 / 0.4969 GB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.577e-05/0.1171, allocations: 46.73 kB / 0.4969 GB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.408e-05/0.1172, allocations: 32.75 kB / 0.497 GB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004543/0.1177, allocations: 336 kB / 0.4973 GB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.1177, allocations: 4 kB / 0.4973 GB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.716e-05/0.1177, allocations: 19.98 kB / 0.4973 GB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003292/0.1181, allocations: 146.4 kB / 0.4974 GB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.1181, allocations: 0 / 0.4974 GB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.767e-05/0.1181, allocations: 4 kB / 0.4974 GB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.1181, allocations: 7.922 kB / 0.4974 GB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001921/0.1183, allocations: 75.84 kB / 0.4975 GB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007588/0.119, allocations: 480.4 kB / 0.498 GB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003766/0.1194, allocations: 134.7 kB / 0.4981 GB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.1195, allocations: 48.84 kB / 0.4981 GB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.1196, allocations: 0 / 0.4981 GB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002795/0.1198, allocations: 133.1 kB / 0.4983 GB, free: 11.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.443e-06/0.1198, allocations: 3.938 kB / 0.4983 GB, free: 11.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.000633/0.1205, allocations: 265.3 kB / 0.4985 GB, free: 11.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.1206, allocations: 114.8 kB / 0.4986 GB, free: 11.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004901/0.1211, allocations: 408.4 kB / 0.499 GB, free: 10.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.989e-05/0.1211, allocations: 33.7 kB / 0.4991 GB, free: 10.69 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.1212, allocations: 164.4 kB / 0.4992 GB, free: 10.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.024e-05/0.1213, allocations: 47.67 kB / 0.4993 GB, free: 10.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.143e-05/0.1214, allocations: 41.7 kB / 0.4993 GB, free: 10.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.1216, allocations: 342.8 kB / 0.4996 GB, free: 10.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.1217, allocations: 44.17 kB / 0.4997 GB, free: 10.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002164/0.1219, allocations: 157.5 kB / 0.4998 GB, free: 9.844 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003391/0.1222, allocations: 180.5 kB / 0.5 GB, free: 9.637 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.1222, allocations: 3.984 kB / 0.5 GB, free: 9.633 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000414/0.1227, allocations: 225.2 kB / 0.5002 GB, free: 9.406 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.1227, allocations: 8 kB / 0.5002 GB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.1227, allocations: 0 / 0.5002 GB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.1227, allocations: 4 kB / 0.5002 GB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.1228, allocations: 44.16 kB / 0.5003 GB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.1228, allocations: 7.938 kB / 0.5003 GB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.123, allocations: 19.89 kB / 0.5003 GB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.123, allocations: 8 kB / 0.5003 GB, free: 9.316 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.0002537/0.1232, allocations: 184.5 kB / 0.5005 GB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.481e-05/0.1233, allocations: 31.77 kB / 0.5005 GB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.913e-05/0.1234, allocations: 35.28 kB / 0.5005 GB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.1234, allocations: 0 / 0.5005 GB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.1234, allocations: 7.938 kB / 0.5006 GB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1234, allocations: 3.984 kB / 0.5006 GB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003027/0.1237, allocations: 297.4 kB / 0.5008 GB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1237, allocations: 0 / 0.5008 GB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.729e-05/0.1237, allocations: 12 kB / 0.5009 GB, free: 8.691 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1237, allocations: 128 / 0.5009 GB, free: 8.691 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.1237, allocations: 7.984 kB / 0.5009 GB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.1238, allocations: 4 kB / 0.5009 GB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.1238, allocations: 7.938 kB / 0.5009 GB, free: 8.672 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004424/0.1242, allocations: 250.3 kB / 0.5011 GB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.166e-05/0.1243, allocations: 104.9 kB / 0.5012 GB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.322e-05/0.1243, allocations: 11.94 kB / 0.5012 GB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.698e-05/0.1244, allocations: 7.984 kB / 0.5012 GB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.54e-05/0.1245, allocations: 19.92 kB / 0.5012 GB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.081e-05/0.1245, allocations: 7.984 kB / 0.5013 GB, free: 8.242 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003262/0.1248, allocations: 295 kB / 0.5015 GB, free: 7.957 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1248, allocations: 0 / 0.5015 GB, free: 7.957 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003263/0.1251, allocations: 63.92 kB / 0.5016 GB, free: 7.895 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.002281/0.1274, allocations: 1.107 MB / 0.5027 GB, free: 6.922 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003533/0.1278, allocations: 143.8 kB / 0.5028 GB, free: 6.781 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.1278, allocations: 0 / 0.5028 GB, free: 6.781 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001567/0.1279, allocations: 67.42 kB / 0.5029 GB, free: 6.719 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004162/0.1284, allocations: 82.14 kB / 0.503 GB, free: 6.645 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003717/0.1321, allocations: 2.876 MB / 0.5058 GB, free: 3.629 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004292/0.1325, allocations: 0.7675 MB / 0.5065 GB, free: 2.836 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001321/0.1326, allocations: 50.23 kB / 0.5066 GB, free: 2.789 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001444/0.1328, allocations: 91.41 kB / 0.5067 GB, free: 2.699 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1328, allocations: 0 / 0.5067 GB, free: 2.699 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0271/0.1599, allocations: 7.539 MB / 0.514 GB, free: 11.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.151/8.311, allocations: 10.8 kB / 0.514 GB, free: 11.28 MB / 382.1 MB " [Timeout remaining time 652] (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 os._exit(0), Time elapsed: 10.933952971012332] Failed to read output from testmodel.py, exit status != 0: 8.485856813029386 8.500104693 8.381386672 Calling exit ...