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.005562/0.005562, allocations: 102 kB / 15.73 MB, free: 6.039 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.001277/0.001277, allocations: 194 kB / 16.67 MB, free: 5.961 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.557/1.557, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05941/0.05941, 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.001687/0.001687, allocations: 71.88 kB / 390.3 MB, free: 5.527 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3363, allocations: 49.02 MB / 439.4 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.003454/0.3398, allocations: 1.987 MB / 441.3 MB, free: 3.551 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001991/0.3418, allocations: 1.181 MB / 442.5 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000124/0.342, allocations: 5.438 kB / 442.5 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008391/0.3429, allocations: 296.7 kB / 442.8 MB, free: 2.648 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.0004419/0.3433, allocations: 196 kB / 443 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000733/0.344, allocations: 289.2 kB / 443.3 MB, free: 2.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003853/0.3444, allocations: 348.3 kB / 443.6 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001498/0.3446, allocations: 59.05 kB / 443.7 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001924/0.3448, allocations: 150.2 kB / 443.8 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001896/0.345, allocations: 143.2 kB / 444 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.816e-05/0.345, allocations: 18.91 kB / 444 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002412/0.3453, allocations: 116.8 kB / 444.1 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001138/0.3454, allocations: 76.25 kB / 444.2 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.3455, allocations: 129.3 kB / 444.3 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005049/0.3461, allocations: 375.9 kB / 444.7 MB, free: 1.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3461, allocations: 0 / 444.7 MB, free: 1.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3461, allocations: 1.375 kB / 444.7 MB, free: 1.801 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.3461, allocations: 0 / 444.7 MB, free: 1.801 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.0009224/0.347, allocations: 0.6702 MB / 445.4 MB, free: 1.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.3471, allocations: 13.89 kB / 445.4 MB, free: 1.199 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.042e-05/0.3471, allocations: 42.7 kB / 445.4 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.313e-05/0.3472, allocations: 31.38 kB / 445.4 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004125/0.3476, allocations: 336.5 kB / 445.8 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.3477, allocations: 15.69 kB / 445.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.654e-05/0.3477, allocations: 12 kB / 445.8 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003284/0.348, allocations: 153.9 kB / 445.9 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/0.348, allocations: 0 / 445.9 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.029e-05/0.3481, allocations: 5.781 kB / 446 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.3481, allocations: 2.531 kB / 446 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001785/0.3483, allocations: 77.16 kB / 446 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006413/0.3489, allocations: 478.3 kB / 446.5 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004155/0.3493, allocations: 152 kB / 446.6 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.3495, allocations: 62.95 kB / 446.7 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.3495, allocations: 6.812 kB / 446.7 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002605/0.3498, allocations: 136.6 kB / 446.8 MB, free: 188 kB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.984e-06/0.3498, allocations: 0 / 446.8 MB, free: 188 kB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006065/0.3504, allocations: 285.8 kB / 447.1 MB, free: 64 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.3505, allocations: 112.6 kB / 447.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005067/0.351, allocations: 416.1 kB / 447.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.873e-05/0.3511, allocations: 32.78 kB / 447.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.3512, allocations: 164.3 kB / 447.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.65e-05/0.3513, allocations: 44.11 kB / 447.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.088e-05/0.3514, allocations: 48.52 kB / 447.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.3516, allocations: 350.5 kB / 448.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.3517, allocations: 45.7 kB / 448.3 MB, free: 15.15 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.3519, allocations: 147.8 kB / 448.5 MB, free: 15.01 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003278/0.3522, allocations: 201.6 kB / 448.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.3522, allocations: 0 / 448.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004045/0.3527, allocations: 233.3 kB / 448.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.3527, allocations: 10.09 kB / 448.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.3527, allocations: 2.969 kB / 448.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.3527, allocations: 2.344 kB / 448.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.3528, allocations: 30.7 kB / 448.9 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.3529, allocations: 3.531 kB / 448.9 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.353, allocations: 25.3 kB / 449 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.295e-05/0.353, allocations: 20.28 kB / 449 MB, free: 14.7 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.0002277/0.3533, allocations: 181 kB / 449.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.231e-05/0.3533, allocations: 30.19 kB / 449.2 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.085e-05/0.3534, allocations: 34.53 kB / 449.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.3534, allocations: 2.312 kB / 449.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.3534, allocations: 3.938 kB / 449.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.3534, allocations: 1.156 kB / 449.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003058/0.3538, allocations: 302.2 kB / 449.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3538, allocations: 4 kB / 449.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.709e-05/0.3538, allocations: 10.88 kB / 449.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.3538, allocations: 1.156 kB / 449.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.3538, allocations: 10.3 kB / 449.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3539, allocations: 1.125 kB / 449.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3539, allocations: 1.156 kB / 449.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004618/0.3543, allocations: 254.5 kB / 449.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.054e-05/0.3544, allocations: 113.9 kB / 449.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.149e-05/0.3545, allocations: 14.36 kB / 449.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.235e-05/0.3546, allocations: 5.219 kB / 449.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.203e-05/0.3547, allocations: 18.58 kB / 449.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.462e-05/0.3547, allocations: 9.391 kB / 449.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003366/0.355, allocations: 308.5 kB / 450.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.355, allocations: 0 / 450.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003855/0.3554, allocations: 67.77 kB / 450.3 MB, free: 13.69 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.001717/0.3571, allocations: 1.126 MB / 451.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003941/0.3576, allocations: 153.4 kB / 451.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3576, allocations: 5.5 kB / 451.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001675/0.3577, allocations: 79.12 kB / 451.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004537/0.3582, allocations: 78.56 kB / 451.8 MB, free: 12.67 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003802/0.362, allocations: 2.963 MB / 454.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004191/0.3625, allocations: 0.7748 MB / 455.5 MB, free: 9.816 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000184/0.3627, allocations: 48.31 kB / 455.5 MB, free: 9.797 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001473/0.3628, allocations: 94.22 kB / 455.6 MB, free: 9.723 MB / 334.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3628, allocations: 0 / 455.6 MB, free: 9.723 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03554/0.3984, allocations: 7.752 MB / 463.4 MB, free: 4.473 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.152/8.55, allocations: 4.375 kB / 463.4 MB, free: 4.469 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1)