Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.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.001329/0.001329, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001411/0.001411, allocations: 214.6 kB / 23.03 MB, free: 4.922 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.335/1.335, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.0624/0.0624, allocations: 11.34 MB / 324.6 MB, free: 8.047 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_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",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.001851/0.001851, allocations: 70.25 kB / 451.7 MB, free: 10.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.103, allocations: 56.07 MB / 0.4959 GB, free: 2.176 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.003253/0.1063, allocations: 1.959 MB / 0.4978 GB, free: 208 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002244/0.1085, allocations: 1.341 MB / 0.4991 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.1086, allocations: 4 kB / 0.4991 GB, free: 14.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008338/0.1095, allocations: 311.1 kB / 0.4994 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005425/0.11, allocations: 267.1 kB / 0.4997 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005993/0.1106, allocations: 258 kB / 0.4999 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004024/0.111, allocations: 375 kB / 0.5003 GB, free: 13.67 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.1111, allocations: 29.2 kB / 0.5003 GB, free: 13.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001705/0.1113, allocations: 147.5 kB / 0.5005 GB, free: 13.49 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002021/0.1115, allocations: 171.3 kB / 0.5006 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.014e-05/0.1115, allocations: 24 kB / 0.5007 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002268/0.1118, allocations: 123.8 kB / 0.5008 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.1119, allocations: 95.67 kB / 0.5009 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.112, allocations: 99.33 kB / 0.501 GB, free: 12.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004667/0.1125, allocations: 410.3 kB / 0.5014 GB, free: 12.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1125, allocations: 0 / 0.5014 GB, free: 12.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1125, allocations: 0 / 0.5014 GB, free: 12.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.1125, allocations: 0 / 0.5014 GB, free: 12.59 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.0009703/0.1135, allocations: 0.6167 MB / 0.502 GB, free: 11.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.1135, allocations: 16.03 kB / 0.502 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.289e-05/0.1135, allocations: 384 / 0.502 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.796e-05/0.1135, allocations: 46.73 kB / 0.502 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.185e-05/0.1136, allocations: 36.7 kB / 0.5021 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004335/0.1141, allocations: 288.6 kB / 0.5023 GB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.1141, allocations: 15.94 kB / 0.5023 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.039e-05/0.1141, allocations: 12 kB / 0.5024 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003381/0.1144, allocations: 205.2 kB / 0.5025 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.1144, allocations: 0 / 0.5025 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.825e-05/0.1145, allocations: 7.984 kB / 0.5026 GB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.1145, allocations: 4 kB / 0.5026 GB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001849/0.1147, allocations: 75.89 kB / 0.5026 GB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006708/0.1153, allocations: 439.5 kB / 0.5031 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004039/0.1157, allocations: 150.7 kB / 0.5032 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.1159, allocations: 48.84 kB / 0.5032 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.1159, allocations: 7.984 kB / 0.5032 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002633/0.1161, allocations: 138 kB / 0.5034 GB, free: 10.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.553e-06/0.1161, allocations: 0 / 0.5034 GB, free: 10.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006353/0.1168, allocations: 305.2 kB / 0.5037 GB, free: 10.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.755e-05/0.1169, allocations: 110.8 kB / 0.5038 GB, free: 9.902 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005481/0.1174, allocations: 465.6 kB / 0.5042 GB, free: 9.434 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.88e-05/0.1174, allocations: 33.7 kB / 0.5043 GB, free: 9.395 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/0.1176, allocations: 172.4 kB / 0.5044 GB, free: 9.219 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.007e-05/0.1176, allocations: 51.61 kB / 0.5045 GB, free: 9.168 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.575e-05/0.1177, allocations: 45.91 kB / 0.5045 GB, free: 9.117 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.1179, allocations: 350.7 kB / 0.5048 GB, free: 8.766 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001178/0.118, allocations: 56.06 kB / 0.5049 GB, free: 8.711 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002505/0.1182, allocations: 251.3 kB / 0.5051 GB, free: 8.398 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003313/0.1186, allocations: 204.3 kB / 0.5053 GB, free: 8.168 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1186, allocations: 0 / 0.5053 GB, free: 8.168 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004081/0.119, allocations: 241.4 kB / 0.5056 GB, free: 7.926 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.119, allocations: 4 kB / 0.5056 GB, free: 7.922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.119, allocations: 4 kB / 0.5056 GB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.119, allocations: 4 kB / 0.5056 GB, free: 7.914 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.1191, allocations: 31.92 kB / 0.5056 GB, free: 7.883 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.1191, allocations: 7.938 kB / 0.5056 GB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.1193, allocations: 35.75 kB / 0.5056 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.1193, allocations: 8 kB / 0.5057 GB, free: 7.832 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = true ) type: Boolean timer.Q:DISCRETE(flow=false fixed = true ) \"status of the timer\" 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: 23 ($PRE.timer.Sd,timer.Sd,timer.run,$PRE.timer.run,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$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,SetSignal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * 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.0002177/0.1195, allocations: 184.5 kB / 0.5058 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.175e-05/0.1195, allocations: 39.7 kB / 0.5059 GB, free: 7.605 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004939/0.12, allocations: 264.9 kB / 0.5061 GB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.12, allocations: 4 kB / 0.5061 GB, free: 7.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.12, allocations: 0 / 0.5061 GB, free: 7.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.12, allocations: 3.938 kB / 0.5061 GB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002678/0.1203, allocations: 256.5 kB / 0.5064 GB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.1203, allocations: 3.984 kB / 0.5064 GB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.474e-05/0.1204, allocations: 12 kB / 0.5064 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.1204, allocations: 0 / 0.5064 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.1204, allocations: 11.94 kB / 0.5064 GB, free: 7.016 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.1204, allocations: 3.938 kB / 0.5064 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1204, allocations: 0 / 0.5064 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004606/0.1208, allocations: 286.5 kB / 0.5067 GB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.421e-05/0.1209, allocations: 35.77 kB / 0.5067 GB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.977e-05/0.121, allocations: 11.98 kB / 0.5067 GB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.054e-05/0.1211, allocations: 4 kB / 0.5067 GB, free: 6.664 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.526e-05/0.1211, allocations: 19.97 kB / 0.5067 GB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.663e-05/0.1211, allocations: 15.92 kB / 0.5068 GB, free: 6.629 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003682/0.1215, allocations: 339.1 kB / 0.5071 GB, free: 6.301 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1215, allocations: 0 / 0.5071 GB, free: 6.301 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003298/0.1218, allocations: 71.86 kB / 0.5072 GB, free: 6.23 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: 14 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.run,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 (19): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.002279/0.1241, allocations: 1.184 MB / 0.5083 GB, free: 5.207 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003713/0.1245, allocations: 163.8 kB / 0.5085 GB, free: 5.047 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.1245, allocations: 3.938 kB / 0.5085 GB, free: 5.043 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001627/0.1246, allocations: 75.91 kB / 0.5085 GB, free: 4.969 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004355/0.1251, allocations: 87.83 kB / 0.5086 GB, free: 4.891 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004049/0.1291, allocations: 3.128 MB / 0.5117 GB, free: 1.629 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001697/0.1293, allocations: 166.2 kB / 0.5118 GB, free: 1.445 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001413/0.1294, allocations: 58.92 kB / 0.5119 GB, free: 1.387 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.1296, allocations: 99.39 kB / 0.512 GB, free: 1.289 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1296, allocations: 0 / 0.512 GB, free: 1.289 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2188/0.3484, allocations: 8.585 MB / 0.5204 GB, free: 22.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.19, allocations: 10.88 kB / 0.5204 GB, free: 22.04 MB / 382.1 MB " [Timeout remaining time 649] (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge_fmu --startTime=0 --stopTime=50 --stepSize=0.02 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.681431362987496] Failed to read output from testmodel.py, exit status != 0: 11.396399299032055 11.409712025 11.294585118 Calling exit ...