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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005031/0.005031, allocations: 100.6 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.001147/0.001147, allocations: 201.7 kB / 16.68 MB, free: 5.965 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.335/1.335, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05853/0.05853, allocations: 10.75 MB / 280.7 MB, free: 1.289 MB / 222.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.001438/0.001438, allocations: 65.78 kB / 390.3 MB, free: 46.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08765/0.08909, allocations: 49.03 MB / 439.4 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.002606/0.09176, allocations: 1.552 MB / 440.9 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007599/0.09253, allocations: 0.5503 MB / 441.5 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.075e-05/0.09263, allocations: 7.938 kB / 441.5 MB, free: 2.203 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.823e-05/0.09268, allocations: 7.875 kB / 441.5 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.972e-05/0.09278, allocations: 15.8 kB / 441.5 MB, free: 2.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002471/0.09303, allocations: 71.84 kB / 441.6 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001638/0.09321, allocations: 103.7 kB / 441.7 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.09335, allocations: 25.33 kB / 441.7 MB, free: 1.984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001018/0.09346, allocations: 47.78 kB / 441.7 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.786e-05/0.09355, allocations: 39.77 kB / 441.8 MB, free: 1.898 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.307e-05/0.09358, allocations: 4 kB / 441.8 MB, free: 1.895 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.45e-05/0.09359, allocations: 8 kB / 441.8 MB, free: 1.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.212e-05/0.09363, allocations: 19.92 kB / 441.8 MB, free: 1.867 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5e-05/0.09369, allocations: 47.72 kB / 441.8 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.09382, allocations: 87.58 kB / 441.9 MB, free: 1.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.09383, allocations: 0 / 441.9 MB, free: 1.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.09384, allocations: 0 / 441.9 MB, free: 1.734 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.403e-06/0.09385, allocations: 3.938 kB / 441.9 MB, free: 1.73 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000545/0.0944, allocations: 495.9 kB / 442.4 MB, free: 1.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.09444, allocations: 11.89 kB / 442.4 MB, free: 1.168 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.857e-05/0.09449, allocations: 38.75 kB / 442.5 MB, free: 1.121 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.852e-05/0.09453, allocations: 16.88 kB / 442.5 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002522/0.09479, allocations: 252 kB / 442.7 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.191e-05/0.09486, allocations: 59.97 kB / 442.8 MB, free: 0.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.676e-05/0.09488, allocations: 8.375 kB / 442.8 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001828/0.09507, allocations: 85.5 kB / 442.9 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.09509, allocations: 0 / 442.9 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.09511, allocations: 7.984 kB / 442.9 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.09511, allocations: 3.938 kB / 442.9 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001307/0.09525, allocations: 35.97 kB / 442.9 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003972/0.09565, allocations: 308.8 kB / 443.2 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001784/0.09584, allocations: 70.48 kB / 443.3 MB, free: 180 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.552e-05/0.09593, allocations: 24.94 kB / 443.3 MB, free: 152 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.15e-05/0.09595, allocations: 0 / 443.3 MB, free: 152 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002038/0.09616, allocations: 111.5 kB / 443.4 MB, free: 28 kB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.09617, allocations: 0 / 443.4 MB, free: 28 kB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004284/0.0966, allocations: 137.5 kB / 443.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.09665, allocations: 55.41 kB / 443.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.09678, allocations: 146.2 kB / 443.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.09681, allocations: 37.64 kB / 443.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.325e-05/0.09687, allocations: 108.1 kB / 443.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.418e-05/0.09691, allocations: 27.78 kB / 443.9 MB, free: 15.49 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.796e-05/0.09697, allocations: 25.72 kB / 444 MB, free: 15.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.09711, allocations: 330.8 kB / 444.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.278e-05/0.09718, allocations: 20 kB / 444.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.0973, allocations: 65.06 kB / 444.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001958/0.0975, allocations: 105.6 kB / 444.5 MB, free: 14.9 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.09751, allocations: 7.938 kB / 444.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002344/0.09776, allocations: 129.4 kB / 444.6 MB, free: 14.76 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.09778, allocations: 4 kB / 444.6 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.09779, allocations: 11.88 kB / 444.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.09781, allocations: 0 / 444.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.221e-05/0.09791, allocations: 15.98 kB / 444.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.09792, allocations: 3.984 kB / 444.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.776e-05/0.098, allocations: 16.09 kB / 444.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.09802, allocations: 4 kB / 444.7 MB, free: 14.71 MB / 334.1 MB Warning: Assuming fixed start value for the following 2 variables: R_DIGITAL.y:DISCRETE(flow=false fixed = true ) "output" type: Real Rhyst_DIGITAL.y:DISCRETE(flow=false 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,Rhyst_DIGITAL.state,$PRE.Rhyst_DIGITAL.state,$PRE.Rhyst_DIGITAL.y,Rhyst_DIGITAL.y,$whenCondition2,$whenCondition1,Rhyst.state,$PRE.Rhyst.state,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001486/0.09817, allocations: 137.5 kB / 444.8 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.285e-05/0.0982, allocations: 19.91 kB / 444.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.977e-05/0.09825, allocations: 12.72 kB / 444.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.09826, allocations: 0 / 444.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.09827, allocations: 0 / 444.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.09828, allocations: 7.938 kB / 444.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.09846, allocations: 201.6 kB / 445 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.09847, allocations: 0 / 445 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.464e-05/0.09853, allocations: 8 kB / 445 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.09854, allocations: 0 / 445 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.09856, allocations: 3.984 kB / 445 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.09856, allocations: 0 / 445 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.09857, allocations: 4 kB / 445 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002948/0.09887, allocations: 148.9 kB / 445.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.481e-05/0.09892, allocations: 85.02 kB / 445.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.44e-05/0.09895, allocations: 4 kB / 445.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.509e-05/0.09902, allocations: 8 kB / 445.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.414e-05/0.09908, allocations: 12.03 kB / 445.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.0991, allocations: 11.94 kB / 445.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.029e-05/0.09918, allocations: 120.1 kB / 445.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09919, allocations: 0 / 445.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002089/0.0994, allocations: 12 kB / 445.4 MB, free: 13.83 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: 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 (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.000556/0.09996, allocations: 0.6904 MB / 446.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002246/0.1002, allocations: 72.08 kB / 446.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.1002, allocations: 8.125 kB / 446.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.1003, allocations: 35.92 kB / 446.2 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001602/0.1005, allocations: 11.94 kB / 446.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001769/0.1023, allocations: 1.611 MB / 447.9 MB, free: 11.26 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002714/0.1026, allocations: 0.7041 MB / 448.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.779e-05/0.1026, allocations: 16.64 kB / 448.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.989e-05/0.1027, allocations: 43.17 kB / 448.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1027, allocations: 0 / 448.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01977/0.1225, allocations: 2.451 MB / 451.1 MB, free: 8.098 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.473/7.596, allocations: 18.64 kB / 451.1 MB, free: 8.086 MB / 334.1 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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe 2>&1)