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.007167/0.007167, allocations: 98.97 kB / 15.73 MB, free: 6.016 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.001636/0.001636, allocations: 201.3 kB / 16.68 MB, free: 5.93 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.46/1.46, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06218/0.06218, allocations: 10.74 MB / 280.7 MB, free: 10.41 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.00142/0.00142, allocations: 74.7 kB / 390.4 MB, free: 5.516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.2951, 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.003332/0.2985, allocations: 1.987 MB / 441.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002189/0.3007, allocations: 1.182 MB / 442.5 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001432/0.3008, allocations: 5.312 kB / 442.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009279/0.3018, allocations: 292.7 kB / 442.8 MB, free: 2.77 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.0004543/0.3022, allocations: 204.4 kB / 443 MB, free: 2.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007197/0.303, allocations: 285.2 kB / 443.3 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004115/0.3034, allocations: 353.8 kB / 443.6 MB, free: 2.379 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.3036, allocations: 50.67 kB / 443.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001845/0.3037, allocations: 151.4 kB / 443.8 MB, free: 2.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.3039, allocations: 143.7 kB / 444 MB, free: 2.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.277e-05/0.304, allocations: 22.16 kB / 444 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002499/0.3042, allocations: 112.1 kB / 444.1 MB, free: 2.199 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.3044, allocations: 80.47 kB / 444.2 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001178/0.3045, allocations: 130.1 kB / 444.3 MB, free: 2.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005245/0.305, allocations: 375.8 kB / 444.7 MB, free: 1.922 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.305, allocations: 0 / 444.7 MB, free: 1.922 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.305, allocations: 7.938 kB / 444.7 MB, free: 1.914 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.455e-06/0.3051, allocations: 1.438 kB / 444.7 MB, free: 1.914 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.0009739/0.306, allocations: 0.6725 MB / 445.4 MB, free: 1.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.3061, allocations: 13.2 kB / 445.4 MB, free: 1.309 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.07e-05/0.3061, allocations: 42.62 kB / 445.4 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.806e-05/0.3062, allocations: 31.5 kB / 445.5 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000425/0.3067, allocations: 338.7 kB / 445.8 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.3067, allocations: 18.3 kB / 445.8 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.045e-05/0.3067, allocations: 8.938 kB / 445.8 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003532/0.3071, allocations: 153 kB / 446 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.3071, allocations: 0 / 446 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.27e-05/0.3071, allocations: 6.344 kB / 446 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.3071, allocations: 2.5 kB / 446 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001962/0.3073, allocations: 77.17 kB / 446 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007408/0.3081, allocations: 483.2 kB / 446.5 MB, free: 484 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004384/0.3085, allocations: 154.3 kB / 446.7 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001447/0.3087, allocations: 63.64 kB / 446.7 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.3087, allocations: 3.125 kB / 446.7 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003016/0.3091, allocations: 140.6 kB / 446.9 MB, free: 292 kB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.753e-06/0.3091, allocations: 0 / 446.9 MB, free: 292 kB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.000647/0.3097, allocations: 283.7 kB / 447.1 MB, free: 172 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.606e-05/0.3098, allocations: 115.4 kB / 447.3 MB, free: 36 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005752/0.3104, allocations: 416.1 kB / 447.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/0.3104, allocations: 34.3 kB / 447.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.3106, allocations: 163.7 kB / 447.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.245e-05/0.3106, allocations: 47.09 kB / 447.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.169e-05/0.3107, allocations: 49.28 kB / 448 MB, free: 15.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.3109, allocations: 346.5 kB / 448.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001416/0.311, allocations: 51.95 kB / 448.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002101/0.3113, allocations: 152.8 kB / 448.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003521/0.3116, allocations: 196.8 kB / 448.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.3116, allocations: 1.312 kB / 448.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004405/0.3121, allocations: 229.7 kB / 448.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.3121, allocations: 10.38 kB / 448.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.3121, allocations: 6.25 kB / 448.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.3121, allocations: 3.281 kB / 448.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.3123, allocations: 30.83 kB / 449 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.3123, allocations: 3.781 kB / 449 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.3124, allocations: 25.53 kB / 449 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.3125, allocations: 15.25 kB / 449 MB, free: 14.77 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.0002466/0.3127, allocations: 181.6 kB / 449.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.729e-05/0.3128, allocations: 33.77 kB / 449.2 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.777e-05/0.3129, allocations: 35.06 kB / 449.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.3129, allocations: 2.594 kB / 449.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.3129, allocations: 0 / 449.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.3129, allocations: 0 / 449.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003224/0.3132, allocations: 302.5 kB / 449.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.3132, allocations: 1.531 kB / 449.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.56e-05/0.3133, allocations: 9.688 kB / 449.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3133, allocations: 5.219 kB / 449.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.134e-05/0.3133, allocations: 10.36 kB / 449.6 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3133, allocations: 1.469 kB / 449.6 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3133, allocations: 3.938 kB / 449.6 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000455/0.3138, allocations: 264.2 kB / 449.8 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.648e-05/0.3139, allocations: 110.4 kB / 449.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.577e-05/0.3139, allocations: 7.75 kB / 450 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.992e-05/0.314, allocations: 11.48 kB / 450 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.189e-05/0.3141, allocations: 15.08 kB / 450 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.252e-05/0.3141, allocations: 11.05 kB / 450 MB, free: 13.96 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00033/0.3145, allocations: 304.5 kB / 450.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3145, allocations: 0 / 450.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003631/0.3149, allocations: 68.41 kB / 450.4 MB, free: 13.76 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.001673/0.3165, allocations: 1.135 MB / 451.5 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003726/0.3169, allocations: 157.8 kB / 451.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3169, allocations: 0 / 451.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001639/0.3171, allocations: 76.91 kB / 451.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000423/0.3175, allocations: 73 kB / 451.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00396/0.3215, allocations: 2.975 MB / 454.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.322, allocations: 0.7738 MB / 455.5 MB, free: 9.863 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001593/0.3221, allocations: 43.84 kB / 455.6 MB, free: 9.848 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.3223, allocations: 94.41 kB / 455.7 MB, free: 9.773 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3223, allocations: 4 kB / 455.7 MB, free: 9.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02627/0.3486, allocations: 7.644 MB / 463.3 MB, free: 4.621 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.941/8.29, allocations: 4.375 kB / 463.3 MB, free: 4.617 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)