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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009918/0.009918, allocations: 97.23 kB / 15.73 MB, free: 5.547 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002371/0.002371, allocations: 191.9 kB / 16.67 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.484/1.484, allocations: 205.1 MB / 222.6 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06485/0.06485, allocations: 10.74 MB / 280.7 MB, free: 1.281 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002165/0.002165, allocations: 68.34 kB / 390.3 MB, free: 46.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09327/0.09543, allocations: 49.04 MB / 439.4 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.002799/0.09823, allocations: 1.983 MB / 441.4 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001573/0.0998, allocations: 1.182 MB / 442.5 MB, free: 1.242 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.09993, allocations: 3.938 kB / 442.5 MB, free: 1.238 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007129/0.1006, allocations: 310.4 kB / 442.8 MB, free: 0.9375 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.000369/0.101, allocations: 203.3 kB / 443 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007528/0.1018, allocations: 282.8 kB / 443.3 MB, free: 476 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002821/0.1021, allocations: 347.1 kB / 443.7 MB, free: 128 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.1022, allocations: 32.61 kB / 443.7 MB, free: 92 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000223/0.1024, allocations: 155.6 kB / 443.8 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002753/0.1027, allocations: 147.4 kB / 444 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.889e-05/0.1027, allocations: 20 kB / 444 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002244/0.1029, allocations: 115.7 kB / 444.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001192/0.1031, allocations: 87.69 kB / 444.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000138/0.1032, allocations: 127.2 kB / 444.3 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005234/0.1037, allocations: 382.5 kB / 444.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1037, allocations: 0 / 444.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1037, allocations: 0 / 444.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1037, allocations: 0 / 444.7 MB, free: 15.07 MB / 334.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.001134/0.1049, allocations: 0.6952 MB / 445.4 MB, free: 14.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.1049, allocations: 11.89 kB / 445.4 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.25e-05/0.105, allocations: 46.73 kB / 445.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.367e-05/0.105, allocations: 36.7 kB / 445.5 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005042/0.1056, allocations: 340.4 kB / 445.8 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.49e-05/0.1056, allocations: 11.94 kB / 445.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.112e-05/0.1056, allocations: 11.98 kB / 445.8 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003469/0.106, allocations: 164 kB / 446 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.106, allocations: 0 / 446 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2e-05/0.106, allocations: 4 kB / 446 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.106, allocations: 4 kB / 446 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/0.1062, allocations: 71.84 kB / 446.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008093/0.107, allocations: 496.4 kB / 446.6 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004369/0.1074, allocations: 138.7 kB / 446.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.1076, allocations: 52.84 kB / 446.8 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.158e-05/0.1076, allocations: 3.984 kB / 446.8 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002907/0.1079, allocations: 135.2 kB / 446.9 MB, free: 12.69 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.433e-06/0.1079, allocations: 3.938 kB / 446.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006782/0.1086, allocations: 281.4 kB / 447.2 MB, free: 12.4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.658e-05/0.1087, allocations: 106.8 kB / 447.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005642/0.1092, allocations: 453.6 kB / 447.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.609e-05/0.1093, allocations: 33.7 kB / 447.7 MB, free: 11.78 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002016/0.1095, allocations: 168.4 kB / 447.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.12e-05/0.1096, allocations: 43.64 kB / 448 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.1097, allocations: 49.69 kB / 448 MB, free: 11.51 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002345/0.1099, allocations: 346.8 kB / 448.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.11, allocations: 48.2 kB / 448.4 MB, free: 11.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002345/0.1103, allocations: 156.5 kB / 448.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000358/0.1106, allocations: 196.4 kB / 448.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.1106, allocations: 0 / 448.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004357/0.1111, allocations: 229.2 kB / 449 MB, free: 10.47 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.1111, allocations: 8.938 kB / 449 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.1111, allocations: 0 / 449 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.1111, allocations: 4 kB / 449 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.1112, allocations: 36.17 kB / 449 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.1112, allocations: 4 kB / 449 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001295/0.1114, allocations: 23.88 kB / 449 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.618e-05/0.1114, allocations: 15.94 kB / 449 MB, free: 10.38 MB / 334.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.0002813/0.1117, allocations: 192.4 kB / 449.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.849e-05/0.1117, allocations: 39.77 kB / 449.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.62e-05/0.1118, allocations: 35.28 kB / 449.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.1118, allocations: 0 / 449.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.1118, allocations: 0 / 449.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.1118, allocations: 0 / 449.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003625/0.1122, allocations: 309.3 kB / 449.6 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1122, allocations: 0 / 449.6 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.688e-05/0.1122, allocations: 8 kB / 449.6 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.1122, allocations: 3.984 kB / 449.6 MB, free: 9.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/0.1123, allocations: 4 kB / 449.6 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1123, allocations: 0 / 449.6 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1123, allocations: 4 kB / 449.6 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004933/0.1127, allocations: 272 kB / 449.9 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.753e-05/0.1128, allocations: 108.8 kB / 450 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.728e-05/0.1129, allocations: 8 kB / 450 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.758e-05/0.113, allocations: 7.984 kB / 450 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.723e-05/0.113, allocations: 11.98 kB / 450 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/0.1131, allocations: 15.94 kB / 450 MB, free: 9.293 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003982/0.1135, allocations: 327.1 kB / 450.4 MB, free: 8.973 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1135, allocations: 0 / 450.4 MB, free: 8.973 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003384/0.1138, allocations: 63.92 kB / 450.4 MB, free: 8.91 MB / 334.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,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 (17): * Single equations (assignments): 9 * 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.002336/0.1161, allocations: 1.129 MB / 451.6 MB, free: 7.871 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004044/0.1165, allocations: 151.7 kB / 451.7 MB, free: 7.723 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1165, allocations: 0 / 451.7 MB, free: 7.723 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001631/0.1167, allocations: 67.91 kB / 451.8 MB, free: 7.656 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004655/0.1172, allocations: 78.69 kB / 451.8 MB, free: 7.582 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00443/0.1216, allocations: 3.052 MB / 454.9 MB, free: 4.402 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004735/0.1221, allocations: 0.7714 MB / 455.7 MB, free: 3.605 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001725/0.1222, allocations: 50.94 kB / 455.7 MB, free: 3.551 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001751/0.1224, allocations: 99.39 kB / 455.8 MB, free: 3.453 MB / 334.1 MB Notification: Performance of SimCode: time 9.02e-07/0.1224, allocations: 0 / 455.8 MB, free: 3.453 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0377/0.1601, allocations: 7.785 MB / 463.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.747/8.907, allocations: 16.44 kB / 463.6 MB, free: 11.68 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1)