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.006588/0.006588, allocations: 171.9 kB / 15.12 MB, free: 5.992 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05651/0.05651, allocations: 10.73 MB / 26.59 MB, free: 2.207 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.572/1.572, allocations: 205.4 MB / 235.2 MB, free: 180 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008518/0.0008518, allocations: 85.55 kB / 285.9 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003873/0.0003873, allocations: 12 kB / 346.5 MB, free: 5.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1335, allocations: 49.99 MB / 396.5 MB, free: 2.988 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4344/0.568, allocations: 77.76 MB / 474.3 MB, free: 17.69 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003489/0.5685, allocations: 79.03 kB / 474.3 MB, free: 17.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004404/0.5729, allocations: 1.538 MB / 475.9 MB, free: 16.67 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.5729, allocations: 4 kB / 475.9 MB, free: 16.66 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.361e-05/0.5729, allocations: 0 / 475.9 MB, free: 16.66 MB / 346.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.0005638/0.5735, allocations: 487.4 kB / 476.4 MB, free: 16.14 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.508e-05/0.5736, allocations: 12.03 kB / 476.4 MB, free: 16.13 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.905e-05/0.5736, allocations: 35.72 kB / 476.4 MB, free: 16.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.474e-05/0.5737, allocations: 15.81 kB / 476.4 MB, free: 16.08 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000386/0.5741, allocations: 232.5 kB / 476.6 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.767e-05/0.5742, allocations: 64.88 kB / 476.7 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.295e-05/0.5742, allocations: 11.97 kB / 476.7 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002066/0.5744, allocations: 72.8 kB / 476.8 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.5745, allocations: 0 / 476.8 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.5745, allocations: 8.797 kB / 476.8 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.988e-06/0.5745, allocations: 4.609 kB / 476.8 MB, free: 15.7 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001482/0.5746, allocations: 40.89 kB / 476.8 MB, free: 15.68 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004741/0.5751, allocations: 312.8 kB / 477.1 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/0.5753, allocations: 73.58 kB / 477.2 MB, free: 15.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.5754, allocations: 0 / 477.2 MB, free: 15.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002862/0.5757, allocations: 113.5 kB / 477.3 MB, free: 15.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.643e-06/0.5757, allocations: 0 / 477.3 MB, free: 15.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004029/0.5761, allocations: 147 kB / 477.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.5761, allocations: 58.03 kB / 477.5 MB, free: 15.05 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.5762, allocations: 137.2 kB / 477.7 MB, free: 14.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.5763, allocations: 29.8 kB / 477.7 MB, free: 14.9 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.094e-05/0.5763, allocations: 113.6 kB / 477.8 MB, free: 14.81 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.048e-05/0.5764, allocations: 24.2 kB / 477.8 MB, free: 14.79 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.502e-06/0.5764, allocations: 3.125 kB / 477.8 MB, free: 14.79 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.77e-05/0.5765, allocations: 322.8 kB / 478.1 MB, free: 14.47 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.452e-05/0.5765, allocations: 22.8 kB / 478.2 MB, free: 14.46 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.961e-05/0.5766, allocations: 69.39 kB / 478.2 MB, free: 14.39 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.133e-05/0.5767, allocations: 36.36 kB / 478.3 MB, free: 14.37 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.5767, allocations: 3.938 kB / 478.3 MB, free: 14.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002137/0.5769, allocations: 134 kB / 478.4 MB, free: 14.26 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.577, allocations: 8 kB / 478.4 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.577, allocations: 0 / 478.4 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.577, allocations: 4 kB / 478.4 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.32e-05/0.5771, allocations: 11.23 kB / 478.4 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.5771, allocations: 4 kB / 478.4 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.369e-05/0.5772, allocations: 9.562 kB / 478.4 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.5772, allocations: 8 kB / 478.5 MB, free: 14.22 MB / 346.7 MB Warning: Assuming fixed start value for the following 2 variables: R_DIGITAL.y:DISCRETE(fixed = true ) "output" type: Real Rhyst_DIGITAL.y:DISCRETE(fixed = true ) "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 () * Number of clocked 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.0001668/0.5774, allocations: 136.9 kB / 478.6 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.912e-05/0.5774, allocations: 15.86 kB / 478.6 MB, free: 14.08 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.235e-05/0.5775, allocations: 10.12 kB / 478.6 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.5775, allocations: 4 kB / 478.6 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.5775, allocations: 0 / 478.6 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.5775, allocations: 5.453 kB / 478.6 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001599/0.5777, allocations: 196.3 kB / 478.8 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.5777, allocations: 1.688 kB / 478.8 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.26e-05/0.5777, allocations: 9.875 kB / 478.8 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.5777, allocations: 0 / 478.8 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.5778, allocations: 5.219 kB / 478.8 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.5778, allocations: 1 kB / 478.8 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5778, allocations: 4.375 kB / 478.8 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000279/0.5781, allocations: 151.3 kB / 479 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.166e-05/0.5781, allocations: 85.02 kB / 479.1 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.439e-05/0.5781, allocations: 7.609 kB / 479.1 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.077e-05/0.5782, allocations: 13.44 kB / 479.1 MB, free: 13.6 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.42e-05/0.5783, allocations: 10.8 kB / 479.1 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.5783, allocations: 5.359 kB / 479.1 MB, free: 13.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.64e-05/0.5784, allocations: 112.4 kB / 479.2 MB, free: 13.5 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5784, allocations: 4 kB / 479.2 MB, free: 13.49 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001982/0.5786, allocations: 22.75 kB / 479.2 MB, free: 13.47 MB / 346.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) * Number of clocked states: 0 () * 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.0004471/0.579, allocations: 0.6818 MB / 479.9 MB, free: 12.8 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002077/0.5793, allocations: 80.64 kB / 480 MB, free: 12.75 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.5793, allocations: 0 / 480 MB, free: 12.75 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001113/0.5794, allocations: 40.69 kB / 480 MB, free: 12.72 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000142/0.5795, allocations: 7.891 kB / 480 MB, free: 12.71 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001272/0.5808, allocations: 1.483 MB / 481.5 MB, free: 11.3 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001435/0.581, allocations: 0.7036 MB / 482.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.734e-05/0.581, allocations: 18.11 kB / 482.2 MB, free: 10.58 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.181e-05/0.5811, allocations: 41.72 kB / 482.3 MB, free: 10.56 MB / 346.7 MB Notification: Performance of SimCode: time 5.31e-07/0.5811, allocations: 0 / 482.3 MB, free: 10.56 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01409/0.5952, allocations: 2.101 MB / 484.4 MB, free: 8.867 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001858/0.5954, allocations: 209 kB / 484.6 MB, free: 8.621 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.686/2.282, allocations: 0 / 484.6 MB, free: 8.621 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)