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.001187/0.001187, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001293/0.001293, allocations: 214.7 kB / 23.04 MB, free: 5.07 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.366/1.366, allocations: 230.6 MB / 256.8 MB, free: 8.012 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.06181/0.06181, allocations: 11.34 MB / 324.6 MB, free: 8.328 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.002039/0.002039, allocations: 63.91 kB / 451.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09782/0.09985, allocations: 56.07 MB / 0.496 GB, free: 2.402 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.003224/0.1031, allocations: 2.052 MB / 0.498 GB, free: 348 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002304/0.1054, allocations: 1.423 MB / 0.4994 GB, free: 14.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.1055, allocations: 7.938 kB / 0.4994 GB, free: 14.9 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008157/0.1063, allocations: 291.1 kB / 0.4997 GB, free: 14.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005346/0.1068, allocations: 250 kB / 0.4999 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005802/0.1074, allocations: 255.3 kB / 0.5002 GB, free: 14.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004058/0.1078, allocations: 359 kB / 0.5005 GB, free: 13.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.1079, allocations: 37.2 kB / 0.5005 GB, free: 13.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000188/0.1081, allocations: 151.4 kB / 0.5007 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001998/0.1083, allocations: 155.3 kB / 0.5008 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.508e-05/0.1084, allocations: 16 kB / 0.5008 GB, free: 13.42 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002254/0.1086, allocations: 115.9 kB / 0.5009 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.1087, allocations: 83.67 kB / 0.501 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.1088, allocations: 123.3 kB / 0.5011 GB, free: 13.1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004586/0.1093, allocations: 370.4 kB / 0.5015 GB, free: 12.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1093, allocations: 0 / 0.5015 GB, free: 12.74 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1093, allocations: 0 / 0.5015 GB, free: 12.74 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.1093, allocations: 4 kB / 0.5015 GB, free: 12.73 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.001043/0.1103, allocations: 0.5935 MB / 0.5021 GB, free: 12.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.1104, allocations: 8.031 kB / 0.5021 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.687e-05/0.1104, allocations: 4.375 kB / 0.5021 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.772e-05/0.1104, allocations: 42.73 kB / 0.5021 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.41e-05/0.1105, allocations: 36.69 kB / 0.5022 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004356/0.111, allocations: 278.2 kB / 0.5024 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.111, allocations: 8 kB / 0.5024 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.84e-05/0.111, allocations: 12 kB / 0.5025 GB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003066/0.1113, allocations: 149.7 kB / 0.5026 GB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.1113, allocations: 0 / 0.5026 GB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.826e-05/0.1113, allocations: 4 kB / 0.5026 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1113, allocations: 4 kB / 0.5026 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001798/0.1115, allocations: 75.89 kB / 0.5027 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007047/0.1122, allocations: 451.5 kB / 0.5031 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003333/0.1126, allocations: 130.7 kB / 0.5032 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001242/0.1127, allocations: 56.83 kB / 0.5033 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.1127, allocations: 4 kB / 0.5033 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002658/0.113, allocations: 129.4 kB / 0.5034 GB, free: 10.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.322e-06/0.113, allocations: 0 / 0.5034 GB, free: 10.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005707/0.1135, allocations: 269.2 kB / 0.5037 GB, free: 10.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.92e-05/0.1136, allocations: 110.8 kB / 0.5038 GB, free: 10.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004475/0.1141, allocations: 412.4 kB / 0.5042 GB, free: 9.809 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.1141, allocations: 33.7 kB / 0.5042 GB, free: 9.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.1142, allocations: 152.4 kB / 0.5043 GB, free: 9.613 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.09e-05/0.1143, allocations: 47.67 kB / 0.5044 GB, free: 9.566 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.208e-05/0.1144, allocations: 49.7 kB / 0.5044 GB, free: 9.512 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.1145, allocations: 346.7 kB / 0.5048 GB, free: 9.164 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.1146, allocations: 48.19 kB / 0.5048 GB, free: 9.117 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.1148, allocations: 147.3 kB / 0.505 GB, free: 8.934 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003207/0.1151, allocations: 192.4 kB / 0.5051 GB, free: 8.715 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1151, allocations: 0 / 0.5051 GB, free: 8.715 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000449/0.1156, allocations: 221.2 kB / 0.5054 GB, free: 8.492 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.1156, allocations: 8 kB / 0.5054 GB, free: 8.484 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.1156, allocations: 8.25 kB / 0.5054 GB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.1156, allocations: 4 kB / 0.5054 GB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.1158, allocations: 27.92 kB / 0.5054 GB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.1158, allocations: 15.86 kB / 0.5054 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.1159, allocations: 23.88 kB / 0.5054 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.1159, allocations: 12 kB / 0.5054 GB, free: 8.395 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.0002298/0.1161, allocations: 180.5 kB / 0.5056 GB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.205e-05/0.1162, allocations: 35.8 kB / 0.5057 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004532/0.1166, allocations: 235.3 kB / 0.5059 GB, free: 7.934 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.1167, allocations: 4 kB / 0.5059 GB, free: 7.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.1167, allocations: 3.938 kB / 0.5059 GB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1167, allocations: 0 / 0.5059 GB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002725/0.1169, allocations: 260.6 kB / 0.5061 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1169, allocations: 0 / 0.5061 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.629e-05/0.117, allocations: 11.98 kB / 0.5061 GB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.117, allocations: 4 kB / 0.5061 GB, free: 7.613 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.117, allocations: 8 kB / 0.5062 GB, free: 7.605 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.117, allocations: 0 / 0.5062 GB, free: 7.605 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.117, allocations: 3.938 kB / 0.5062 GB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004145/0.1174, allocations: 256.6 kB / 0.5064 GB, free: 7.332 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.923e-05/0.1175, allocations: 27.81 kB / 0.5064 GB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.31e-05/0.1175, allocations: 3.984 kB / 0.5064 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.531e-05/0.1176, allocations: 16 kB / 0.5065 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.436e-05/0.1176, allocations: 15.91 kB / 0.5065 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.02e-05/0.1177, allocations: 8 kB / 0.5065 GB, free: 7.262 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003189/0.118, allocations: 291 kB / 0.5068 GB, free: 6.977 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.118, allocations: 0 / 0.5068 GB, free: 6.977 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003154/0.1183, allocations: 63.92 kB / 0.5068 GB, free: 6.914 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 (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.002149/0.1204, allocations: 1.129 MB / 0.5079 GB, free: 5.918 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003493/0.1208, allocations: 147.7 kB / 0.5081 GB, free: 5.773 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1208, allocations: 0 / 0.5081 GB, free: 5.773 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001416/0.1209, allocations: 60.42 kB / 0.5081 GB, free: 5.715 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004071/0.1213, allocations: 79.47 kB / 0.5082 GB, free: 5.645 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003513/0.1249, allocations: 2.868 MB / 0.511 GB, free: 2.637 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000376/0.1252, allocations: 0.7675 MB / 0.5117 GB, free: 1.844 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001194/0.1254, allocations: 46.25 kB / 0.5118 GB, free: 1.801 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001421/0.1255, allocations: 91.39 kB / 0.5119 GB, free: 1.711 MB / 382.1 MB Notification: Performance of SimCode: time 5.72e-07/0.1255, allocations: 4 kB / 0.5119 GB, free: 1.707 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2061/0.3316, allocations: 7.707 MB / 0.5194 GB, free: 22.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.08, allocations: 7.797 kB / 0.5194 GB, free: 22.09 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.59650602308102] Failed to read output from testmodel.py, exit status != 0: 11.28966731694527 11.304728217 11.192712783 Calling exit ...