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.0007909/0.0007909, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.0008854/0.0008856, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.181/1.181, allocations: 205.4 MB / 222.1 MB, free: 5.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05285/0.05285, allocations: 10.75 MB / 281.1 MB, free: 10.51 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.0004421/0.0004421, allocations: 12 kB / 341.7 MB, free: 23.7 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06775/0.06821, allocations: 49.99 MB / 391.7 MB, free: 5.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.001396/0.06964, allocations: 1.253 MB / 393 MB, free: 4.367 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006604/0.07031, allocations: 0.5156 MB / 393.5 MB, free: 3.844 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.643e-05/0.07039, allocations: 7.938 kB / 393.5 MB, free: 3.836 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.863e-05/0.07041, allocations: 7.922 kB / 393.5 MB, free: 3.828 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.363e-05/0.07048, allocations: 11.86 kB / 393.5 MB, free: 3.816 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001854/0.07068, allocations: 55.92 kB / 393.6 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001229/0.07081, allocations: 91.64 kB / 393.7 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.317e-05/0.0709, allocations: 25.09 kB / 393.7 MB, free: 3.648 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.4e-05/0.07099, allocations: 43.72 kB / 393.7 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.952e-05/0.07106, allocations: 31.84 kB / 393.8 MB, free: 3.574 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.424e-05/0.07108, allocations: 0 / 393.8 MB, free: 3.574 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.295e-05/0.0711, allocations: 4 kB / 393.8 MB, free: 3.57 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.253e-05/0.07114, allocations: 19.91 kB / 393.8 MB, free: 3.551 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.383e-05/0.07118, allocations: 41.64 kB / 393.8 MB, free: 3.504 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.189e-05/0.07126, allocations: 56.11 kB / 393.9 MB, free: 3.449 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.07127, allocations: 8 kB / 393.9 MB, free: 3.441 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.07128, allocations: 0 / 393.9 MB, free: 3.441 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.915e-06/0.07128, allocations: 3.938 kB / 393.9 MB, free: 3.438 MB / 286.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.000469/0.07176, allocations: 475.4 kB / 394.4 MB, free: 2.91 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.0718, allocations: 8.031 kB / 394.4 MB, free: 2.902 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.183e-05/0.07183, allocations: 30.56 kB / 394.4 MB, free: 2.863 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.312e-05/0.07189, allocations: 19.77 kB / 394.4 MB, free: 2.844 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002195/0.07211, allocations: 231.4 kB / 394.7 MB, free: 2.578 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.411e-05/0.07219, allocations: 67.39 kB / 394.7 MB, free: 2.5 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.492e-05/0.07221, allocations: 4 kB / 394.7 MB, free: 2.496 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001714/0.07239, allocations: 77.64 kB / 394.8 MB, free: 2.414 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.483e-06/0.0724, allocations: 0 / 394.8 MB, free: 2.414 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-06/0.07242, allocations: 0 / 394.8 MB, free: 2.414 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.07243, allocations: 3.953 kB / 394.8 MB, free: 2.41 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.07257, allocations: 47.91 kB / 394.9 MB, free: 2.363 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004007/0.07298, allocations: 312.7 kB / 395.2 MB, free: 2.008 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.07316, allocations: 62.55 kB / 395.2 MB, free: 1.938 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.779e-05/0.07326, allocations: 40.89 kB / 395.3 MB, free: 1.895 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.211e-05/0.07328, allocations: 0 / 395.3 MB, free: 1.895 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000222/0.07351, allocations: 107.3 kB / 395.4 MB, free: 1.777 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.07352, allocations: 4 kB / 395.4 MB, free: 1.773 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003592/0.07389, allocations: 145.4 kB / 395.5 MB, free: 1.625 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.417e-05/0.07393, allocations: 59.41 kB / 395.6 MB, free: 1.555 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.07404, allocations: 150.1 kB / 395.7 MB, free: 1.398 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.07407, allocations: 33.7 kB / 395.7 MB, free: 1.359 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.751e-05/0.07412, allocations: 104.1 kB / 395.8 MB, free: 1.254 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.791e-05/0.07416, allocations: 31.8 kB / 395.9 MB, free: 1.223 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-06/0.07417, allocations: 0 / 395.9 MB, free: 1.223 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.933e-05/0.07427, allocations: 322.8 kB / 396.2 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.313e-05/0.07434, allocations: 23.98 kB / 396.2 MB, free: 0.875 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.878e-05/0.07443, allocations: 61.52 kB / 396.3 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.56e-05/0.07451, allocations: 39.92 kB / 396.3 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.07452, allocations: 0 / 396.3 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002175/0.07474, allocations: 137.4 kB / 396.5 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.07477, allocations: 11.94 kB / 396.5 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.07477, allocations: 0 / 396.5 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.07479, allocations: 4 kB / 396.5 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.947e-05/0.07488, allocations: 16 kB / 396.5 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.07489, allocations: 7.922 kB / 396.5 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.996e-05/0.07496, allocations: 4.109 kB / 396.5 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.07498, allocations: 11.92 kB / 396.5 MB, free: 0.5625 MB / 286.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,$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.0001156/0.0751, allocations: 125.9 kB / 396.6 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.972e-05/0.07512, allocations: 19.77 kB / 396.6 MB, free: 420 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.941e-05/0.07516, allocations: 12.7 kB / 396.7 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.07517, allocations: 4 kB / 396.7 MB, free: 404 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.07517, allocations: 0 / 396.7 MB, free: 404 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.07518, allocations: 0 / 396.7 MB, free: 404 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.07533, allocations: 201.6 kB / 396.9 MB, free: 152 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.07534, allocations: 4 kB / 396.9 MB, free: 148 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.243e-05/0.0754, allocations: 11.94 kB / 396.9 MB, free: 136 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.07541, allocations: 0 / 396.9 MB, free: 136 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.07543, allocations: 11.92 kB / 396.9 MB, free: 124 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.07544, allocations: 4 kB / 396.9 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.07544, allocations: 0 / 396.9 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002602/0.07571, allocations: 140.9 kB / 397 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.863e-05/0.07576, allocations: 92.84 kB / 397.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.467e-05/0.07579, allocations: 8 kB / 397.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.195e-05/0.07585, allocations: 7.953 kB / 397.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.468e-05/0.07591, allocations: 15.97 kB / 397.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-06/0.07592, allocations: 4.062 kB / 397.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.828e-05/0.076, allocations: 112.1 kB / 397.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.076, allocations: 0 / 397.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000197/0.0762, allocations: 16 kB / 397.3 MB, free: 15.69 MB / 302.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 (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.0004809/0.07669, allocations: 0.6866 MB / 398 MB, free: 14.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001954/0.0769, allocations: 87.83 kB / 398.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.07691, allocations: 0 / 398.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.07702, allocations: 35.98 kB / 398.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001424/0.07717, allocations: 11.95 kB / 398.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.07822, allocations: 0.7415 MB / 398.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000216/0.07845, allocations: 0.7043 MB / 399.5 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.34e-05/0.07852, allocations: 16.42 kB / 399.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.507e-05/0.07858, allocations: 39.42 kB / 399.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.07858, allocations: 0 / 399.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01176/0.09035, allocations: 2.105 MB / 401.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002068/0.09057, allocations: 217.4 kB / 401.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.588/1.678, allocations: 4 kB / 401.9 MB, free: 10.99 MB / 302.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 & /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) Environment - environmentSimulation: