Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001687/0.001687, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07175/0.07175, allocations: 10.66 MB / 18.73 MB, free: 1.324 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.796/1.796, allocations: 205.3 MB / 226.9 MB, free: 7.918 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008457/0.0008457, allocations: 94.41 kB / 277.3 MB, free: 5.449 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.203e-05/2.231e-05, allocations: 4 kB / 333.6 MB, free: 28.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1204, allocations: 49.99 MB / 383.6 MB, free: 10.3 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4379/0.5583, allocations: 77.34 MB / 461 MB, free: 7.008 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.5587, allocations: 76.02 kB / 461 MB, free: 6.965 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004483/0.5632, allocations: 1.513 MB / 462.5 MB, free: 5.652 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5632, allocations: 0 / 462.5 MB, free: 5.652 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.288e-05/0.5632, allocations: 8 kB / 462.6 MB, free: 5.645 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000587/0.5638, allocations: 470.7 kB / 463 MB, free: 5.129 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.791e-05/0.5639, allocations: 8.031 kB / 463 MB, free: 5.121 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.756e-05/0.5639, allocations: 19.77 kB / 463 MB, free: 5.102 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003999/0.5644, allocations: 239 kB / 463.3 MB, free: 4.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.505e-05/0.5645, allocations: 59.41 kB / 463.3 MB, free: 4.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.744e-05/0.5645, allocations: 4 kB / 463.3 MB, free: 4.766 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.839e-05/0.5646, allocations: 19.38 kB / 463.4 MB, free: 4.754 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/0.5647, allocations: 67.92 kB / 463.4 MB, free: 4.691 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.5647, allocations: 0 / 463.4 MB, free: 4.691 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.41e-05/0.5648, allocations: 7.938 kB / 463.4 MB, free: 4.684 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.5648, allocations: 0 / 463.4 MB, free: 4.684 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004906/0.5653, allocations: 291 kB / 463.7 MB, free: 4.383 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.446e-05/0.5654, allocations: 45.39 kB / 463.8 MB, free: 4.34 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.098e-05/0.5654, allocations: 20.58 kB / 463.8 MB, free: 4.32 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.748e-05/0.5655, allocations: 0 / 463.8 MB, free: 4.32 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002066/0.5657, allocations: 104 kB / 463.9 MB, free: 4.219 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 3.206e-06/0.5657, allocations: 3.984 kB / 463.9 MB, free: 4.215 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002354/0.5659, allocations: 99.73 kB / 464 MB, free: 4.125 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/0.566, allocations: 55.41 kB / 464 MB, free: 4.059 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.5661, allocations: 136.3 kB / 464.2 MB, free: 3.926 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.5662, allocations: 25.7 kB / 464.2 MB, free: 3.895 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.958e-05/0.5663, allocations: 102.6 kB / 464.3 MB, free: 3.805 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.318e-05/0.5663, allocations: 23.44 kB / 464.3 MB, free: 3.785 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.861e-06/0.5663, allocations: 7.938 kB / 464.3 MB, free: 3.777 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.5665, allocations: 325.8 kB / 464.6 MB, free: 3.457 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.361e-05/0.5665, allocations: 19 kB / 464.7 MB, free: 3.445 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.188e-05/0.5666, allocations: 56.14 kB / 464.7 MB, free: 3.379 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.326e-05/0.5667, allocations: 25.81 kB / 464.7 MB, free: 3.363 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.5667, allocations: 0 / 464.7 MB, free: 3.363 MB / 330.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001656/0.5668, allocations: 103.8 kB / 464.8 MB, free: 3.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.5669, allocations: 10.5 kB / 464.9 MB, free: 3.262 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.5669, allocations: 0 / 464.9 MB, free: 3.262 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.5669, allocations: 7.953 kB / 464.9 MB, free: 3.254 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.567, allocations: 20.08 kB / 464.9 MB, free: 3.234 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.567, allocations: 4 kB / 464.9 MB, free: 3.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.401e-05/0.5671, allocations: 4 kB / 464.9 MB, free: 3.227 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.5671, allocations: 4 kB / 464.9 MB, free: 3.223 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: R_DIGITAL.y:DISCRETE(fixed = false ) "output" type: Real Rhyst_DIGITAL.y:DISCRETE(fixed = false ) "output" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.R_DIGITAL.y,R_DIGITAL.y,$PRE.Rhyst_DIGITAL.state,Rhyst_DIGITAL.state,$PRE.Rhyst_DIGITAL.y,Rhyst_DIGITAL.y,$whenCondition2,$whenCondition1,$whenCondition3,$PRE.Rhyst.state,Rhyst.state) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001329/0.5672, allocations: 114.1 kB / 465 MB, free: 3.109 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001492/0.5674, allocations: 99.98 kB / 465.1 MB, free: 3.016 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.756e-05/0.5674, allocations: 11.86 kB / 465.1 MB, free: 3.004 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.735e-05/0.5675, allocations: 16.19 kB / 465.1 MB, free: 2.992 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.5675, allocations: 0 / 465.1 MB, free: 2.992 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.5675, allocations: 0.875 kB / 465.1 MB, free: 2.992 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.5675, allocations: 3.984 kB / 465.1 MB, free: 2.988 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001641/0.5677, allocations: 176.6 kB / 465.3 MB, free: 2.793 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.5677, allocations: 0 / 465.3 MB, free: 2.793 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.364e-05/0.5677, allocations: 7.938 kB / 465.3 MB, free: 2.785 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.269e-06/0.5678, allocations: 4 kB / 465.3 MB, free: 2.781 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.5678, allocations: 8.047 kB / 465.3 MB, free: 2.773 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.5678, allocations: 3.953 kB / 465.3 MB, free: 2.77 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.5678, allocations: 4 kB / 465.3 MB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000168/0.568, allocations: 125.8 kB / 465.5 MB, free: 2.641 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.666e-05/0.568, allocations: 85.11 kB / 465.5 MB, free: 2.539 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.758e-05/0.5681, allocations: 7.922 kB / 465.5 MB, free: 2.531 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.191e-05/0.5681, allocations: 4 kB / 465.5 MB, free: 2.527 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.516e-05/0.5682, allocations: 11.94 kB / 465.6 MB, free: 2.516 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.169e-05/0.5682, allocations: 11.3 kB / 465.6 MB, free: 2.508 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.784e-05/0.5683, allocations: 108.6 kB / 465.7 MB, free: 2.41 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.973e-06/0.5683, allocations: 0 / 465.7 MB, free: 2.41 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001976/0.5685, allocations: 23.88 kB / 465.7 MB, free: 2.387 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,Rhyst_DIGITAL.y,Rhyst_DIGITAL.state,R_DIGITAL.y,Rhyst.state) * Number of discrete states: 3 (Rhyst_DIGITAL.state,R_DIGITAL.u,Rhyst.state) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005254/0.569, allocations: 0.6565 MB / 466.4 MB, free: 1.719 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001537/0.5692, allocations: 60.5 kB / 466.4 MB, free: 1.676 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.5692, allocations: 0 / 466.4 MB, free: 1.676 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.107e-05/0.5693, allocations: 31.67 kB / 466.4 MB, free: 1.648 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001268/0.5694, allocations: 11.58 kB / 466.5 MB, free: 1.641 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000566/0.57, allocations: 163.5 kB / 466.6 MB, free: 1.453 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.5703, allocations: 0.7158 MB / 467.3 MB, free: 0.7109 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.875e-05/0.5704, allocations: 16.55 kB / 467.4 MB, free: 0.6953 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.113e-05/0.5705, allocations: 38.11 kB / 467.4 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5705, allocations: 0 / 467.4 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02259/0.5931, allocations: 1.75 MB / 469.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001939/0.5933, allocations: 164 kB / 469.3 MB, free: 14.74 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.676/2.27, allocations: 5.094 kB / 469.3 MB, free: 14.74 MB / 346.7 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe 2>&1)