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.001636/0.001636, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.00165/0.00165, allocations: 222.9 kB / 23.03 MB, free: 4.945 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.359/1.359, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.06215/0.06215, allocations: 11.33 MB / 324.5 MB, free: 8.062 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.001911/0.001911, allocations: 66.25 kB / 451.7 MB, free: 10.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1122, allocations: 56.07 MB / 0.4959 GB, free: 2.176 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.003424/0.1156, allocations: 1.963 MB / 0.4978 GB, free: 204 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002288/0.1179, allocations: 1.333 MB / 0.4991 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001131/0.118, allocations: 7.938 kB / 0.4991 GB, free: 14.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008371/0.1188, allocations: 283.2 kB / 0.4994 GB, free: 14.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005572/0.1194, allocations: 255.1 kB / 0.4997 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006075/0.12, allocations: 254 kB / 0.4999 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004033/0.1204, allocations: 359 kB / 0.5002 GB, free: 13.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.1205, allocations: 41.19 kB / 0.5003 GB, free: 13.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.1207, allocations: 143.5 kB / 0.5004 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002054/0.1209, allocations: 155.3 kB / 0.5006 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.087e-05/0.1209, allocations: 20 kB / 0.5006 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002222/0.1212, allocations: 115.8 kB / 0.5007 GB, free: 13.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.1213, allocations: 83.75 kB / 0.5008 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000116/0.1214, allocations: 99.27 kB / 0.5009 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004542/0.1219, allocations: 366.5 kB / 0.5012 GB, free: 12.72 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.1219, allocations: 8 kB / 0.5012 GB, free: 12.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1219, allocations: 0 / 0.5012 GB, free: 12.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.852e-06/0.1219, allocations: 0 / 0.5012 GB, free: 12.71 MB / 382.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.0009722/0.1228, allocations: 0.5956 MB / 0.5018 GB, free: 12.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.1229, allocations: 8.031 kB / 0.5018 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.933e-05/0.1229, allocations: 8.375 kB / 0.5018 GB, free: 12.06 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.375e-05/0.1229, allocations: 42.73 kB / 0.5019 GB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.225e-05/0.123, allocations: 32.75 kB / 0.5019 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004208/0.1234, allocations: 274.2 kB / 0.5022 GB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.1235, allocations: 8 kB / 0.5022 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.645e-05/0.1235, allocations: 15.98 kB / 0.5022 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003503/0.1238, allocations: 205.2 kB / 0.5024 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.056e-06/0.1238, allocations: 0 / 0.5024 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.057e-05/0.1239, allocations: 11.94 kB / 0.5024 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.1239, allocations: 0 / 0.5024 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001815/0.1241, allocations: 75.89 kB / 0.5025 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006781/0.1247, allocations: 427.5 kB / 0.5029 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003467/0.1251, allocations: 138.7 kB / 0.503 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001249/0.1252, allocations: 56.83 kB / 0.503 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.781e-05/0.1252, allocations: 0 / 0.503 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002715/0.1255, allocations: 127.3 kB / 0.5032 GB, free: 10.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.593e-06/0.1255, allocations: 0 / 0.5032 GB, free: 10.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.000626/0.1261, allocations: 287.9 kB / 0.5034 GB, free: 10.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/0.1262, allocations: 110.8 kB / 0.5036 GB, free: 10.13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004634/0.1267, allocations: 416.3 kB / 0.5039 GB, free: 9.715 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.137e-05/0.1267, allocations: 37.7 kB / 0.504 GB, free: 9.672 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.1268, allocations: 160.4 kB / 0.5041 GB, free: 9.508 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.173e-05/0.1269, allocations: 39.69 kB / 0.5042 GB, free: 9.469 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.305e-05/0.127, allocations: 45.91 kB / 0.5042 GB, free: 9.418 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1271, allocations: 346.8 kB / 0.5045 GB, free: 9.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.1272, allocations: 51.83 kB / 0.5046 GB, free: 9.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000248/0.1275, allocations: 254.7 kB / 0.5048 GB, free: 8.703 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003339/0.1278, allocations: 192.4 kB / 0.505 GB, free: 8.484 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.1278, allocations: 4 kB / 0.505 GB, free: 8.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004005/0.1282, allocations: 229.2 kB / 0.5052 GB, free: 8.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.1282, allocations: 4 kB / 0.5053 GB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.1282, allocations: 4 kB / 0.5053 GB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.1282, allocations: 7.938 kB / 0.5053 GB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.1284, allocations: 35.92 kB / 0.5053 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.1284, allocations: 7.922 kB / 0.5053 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/0.1285, allocations: 23.83 kB / 0.5053 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.1285, allocations: 12 kB / 0.5053 GB, free: 8.156 MB / 382.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.0002259/0.1288, allocations: 176.6 kB / 0.5055 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.455e-05/0.1288, allocations: 35.77 kB / 0.5055 GB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004896/0.1293, allocations: 244.8 kB / 0.5058 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.1293, allocations: 0 / 0.5058 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.918e-06/0.1293, allocations: 8.125 kB / 0.5058 GB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.1293, allocations: 3.938 kB / 0.5058 GB, free: 7.676 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000285/0.1296, allocations: 256.5 kB / 0.506 GB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1296, allocations: 0 / 0.506 GB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.247e-05/0.1297, allocations: 15.94 kB / 0.506 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1297, allocations: 0 / 0.506 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.745e-05/0.1297, allocations: 4 kB / 0.506 GB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.1297, allocations: 3.984 kB / 0.5061 GB, free: 7.359 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1297, allocations: 0 / 0.5061 GB, free: 7.359 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004355/0.1301, allocations: 264.8 kB / 0.5063 GB, free: 7.082 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.625e-05/0.1302, allocations: 35.75 kB / 0.5063 GB, free: 7.047 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.679e-05/0.1302, allocations: 7.984 kB / 0.5063 GB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.788e-05/0.1303, allocations: 12 kB / 0.5064 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.192e-05/0.1304, allocations: 19.91 kB / 0.5064 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.236e-05/0.1304, allocations: 8 kB / 0.5064 GB, free: 7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003217/0.1307, allocations: 295 kB / 0.5067 GB, free: 6.711 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1307, allocations: 0 / 0.5067 GB, free: 6.711 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003283/0.131, allocations: 67.88 kB / 0.5067 GB, free: 6.645 MB / 382.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,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 11 * 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.002302/0.1333, allocations: 1.179 MB / 0.5079 GB, free: 5.629 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003617/0.1337, allocations: 155.8 kB / 0.508 GB, free: 5.477 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1337, allocations: 0 / 0.508 GB, free: 5.477 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001585/0.1339, allocations: 71.89 kB / 0.5081 GB, free: 5.406 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004122/0.1343, allocations: 75.8 kB / 0.5082 GB, free: 5.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00351/0.1378, allocations: 2.897 MB / 0.511 GB, free: 2.297 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001558/0.1379, allocations: 159.1 kB / 0.5112 GB, free: 2.121 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001159/0.1381, allocations: 46.52 kB / 0.5112 GB, free: 2.078 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001474/0.1382, allocations: 95.41 kB / 0.5113 GB, free: 1.984 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1382, allocations: 0 / 0.5113 GB, free: 1.984 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2176/0.3558, allocations: 8.096 MB / 0.5192 GB, free: 22.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.16, allocations: 12.97 kB / 0.5192 GB, free: 22.35 MB / 382.1 MB " [Timeout remaining time 649] (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: 13.750498244073242] Failed to read output from testmodel.py, exit status != 0: 11.374472341965884 11.396532422 11.270399418 Calling exit ...