Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.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_Fedge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge",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.006151/0.006151, allocations: 100.1 kB / 15.73 MB, free: 6.445 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.001513/0.001513, allocations: 194.3 kB / 16.67 MB, free: 6.352 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.542/1.542, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06594/0.06594, allocations: 10.76 MB / 280.7 MB, free: 10.38 MB / 238.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.002221/0.002221, allocations: 74.69 kB / 390.4 MB, free: 5.512 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3259, allocations: 49.01 MB / 439.4 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.00373/0.3297, allocations: 1.991 MB / 441.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002175/0.3319, allocations: 1.181 MB / 442.5 MB, free: 2.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001884/0.332, allocations: 9.312 kB / 442.6 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000869/0.3329, allocations: 290.1 kB / 442.8 MB, free: 2.773 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.0005603/0.3335, allocations: 208.3 kB / 443 MB, free: 2.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009827/0.3345, allocations: 276.1 kB / 443.3 MB, free: 2.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005718/0.335, allocations: 345.3 kB / 443.6 MB, free: 2.387 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.3352, allocations: 37.61 kB / 443.7 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002515/0.3354, allocations: 149.8 kB / 443.8 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002287/0.3357, allocations: 146.2 kB / 444 MB, free: 2.238 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.43e-05/0.3357, allocations: 18.38 kB / 444 MB, free: 2.238 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003228/0.336, allocations: 108.8 kB / 444.1 MB, free: 2.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.3362, allocations: 87.81 kB / 444.2 MB, free: 2.172 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001359/0.3363, allocations: 121.1 kB / 444.3 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005924/0.3369, allocations: 379.7 kB / 444.7 MB, free: 1.934 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.3369, allocations: 0 / 444.7 MB, free: 1.934 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3369, allocations: 1.281 kB / 444.7 MB, free: 1.934 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.116e-06/0.3369, allocations: 4.609 kB / 444.7 MB, free: 1.93 MB / 318.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.001109/0.338, allocations: 0.6766 MB / 445.4 MB, free: 1.324 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.338, allocations: 13.95 kB / 445.4 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.026e-05/0.3381, allocations: 45.41 kB / 445.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.316e-05/0.3382, allocations: 32.92 kB / 445.4 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004428/0.3386, allocations: 338 kB / 445.8 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.3387, allocations: 14.75 kB / 445.8 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.912e-05/0.3387, allocations: 15.98 kB / 445.8 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003495/0.339, allocations: 152.7 kB / 446 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.339, allocations: 0 / 446 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.071e-05/0.3391, allocations: 3.516 kB / 446 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.3391, allocations: 9.828 kB / 446 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002062/0.3393, allocations: 73.75 kB / 446 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008471/0.3401, allocations: 482.3 kB / 446.5 MB, free: 488 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004406/0.3406, allocations: 134.1 kB / 446.6 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001334/0.3407, allocations: 56.41 kB / 446.7 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.3407, allocations: 7.406 kB / 446.7 MB, free: 396 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003258/0.3411, allocations: 135 kB / 446.8 MB, free: 316 kB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 2.605e-06/0.3411, allocations: 0 / 446.8 MB, free: 316 kB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007617/0.3418, allocations: 288.7 kB / 447.1 MB, free: 192 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.3419, allocations: 116 kB / 447.2 MB, free: 56 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006493/0.3425, allocations: 414.6 kB / 447.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.614e-05/0.3426, allocations: 33.69 kB / 447.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.3427, allocations: 165.1 kB / 447.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.496e-05/0.3428, allocations: 47.56 kB / 447.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.3429, allocations: 44.83 kB / 447.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002018/0.3431, allocations: 353.5 kB / 448.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.3433, allocations: 47.84 kB / 448.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002462/0.3435, allocations: 152.8 kB / 448.5 MB, free: 15.1 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003813/0.3439, allocations: 197.3 kB / 448.7 MB, free: 14.94 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3439, allocations: 0 / 448.7 MB, free: 14.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005107/0.3444, allocations: 235.6 kB / 448.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.3444, allocations: 9.281 kB / 448.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.3444, allocations: 2.656 kB / 448.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.3445, allocations: 7.531 kB / 448.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.3446, allocations: 30.3 kB / 448.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.3446, allocations: 3.5 kB / 448.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.3448, allocations: 25.19 kB / 449 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.225e-05/0.3448, allocations: 12.03 kB / 449 MB, free: 14.78 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.0003506/0.3451, allocations: 185 kB / 449.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.942e-05/0.3452, allocations: 34.59 kB / 449.2 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.42e-05/0.3453, allocations: 34.78 kB / 449.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.3453, allocations: 2.125 kB / 449.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.3453, allocations: 0 / 449.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.3453, allocations: 0.8438 kB / 449.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004176/0.3457, allocations: 302.2 kB / 449.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3457, allocations: 0 / 449.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.138e-05/0.3458, allocations: 7.719 kB / 449.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.3458, allocations: 1.5 kB / 449.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.945e-05/0.3458, allocations: 18.39 kB / 449.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3458, allocations: 0 / 449.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3458, allocations: 1.719 kB / 449.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005503/0.3464, allocations: 262.8 kB / 449.8 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.3465, allocations: 109.8 kB / 449.9 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.473e-05/0.3465, allocations: 6.453 kB / 449.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.576e-05/0.3466, allocations: 8.875 kB / 449.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.684e-05/0.3467, allocations: 14.52 kB / 449.9 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.994e-05/0.3467, allocations: 15.05 kB / 450 MB, free: 13.96 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003555/0.3471, allocations: 307.1 kB / 450.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3471, allocations: 0 / 450.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004238/0.3475, allocations: 68.22 kB / 450.3 MB, free: 13.77 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.002494/0.35, allocations: 1.134 MB / 451.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000501/0.3505, allocations: 148.8 kB / 451.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3505, allocations: 1.188 kB / 451.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001784/0.3507, allocations: 66.12 kB / 451.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005261/0.3512, allocations: 77.78 kB / 451.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004593/0.3558, allocations: 2.974 MB / 454.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004923/0.3563, allocations: 0.7702 MB / 455.5 MB, free: 9.895 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002147/0.3565, allocations: 44.28 kB / 455.5 MB, free: 9.879 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001714/0.3567, allocations: 90.03 kB / 455.6 MB, free: 9.809 MB / 334.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3567, allocations: 0 / 455.6 MB, free: 9.809 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04131/0.398, allocations: 7.668 MB / 463.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.771/9.169, allocations: 11.28 kB / 463.3 MB, free: 4.652 MB / 334.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1)