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: translateModel(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay") translateModel(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 111.7 kB / 16.42 MB, free: 6.496 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.001641/0.001641, allocations: 185.7 kB / 17.35 MB, free: 5.762 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.343/1.343, allocations: 205.1 MB / 223.2 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.05903/0.05903, allocations: 10.75 MB / 281.3 MB, free: 1.297 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.001435/0.001435, allocations: 63.59 kB / 391.5 MB, free: 46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07757/0.07902, allocations: 49.04 MB / 440.5 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.002299/0.08135, allocations: 1.541 MB / 442.1 MB, free: 2.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006895/0.08206, allocations: 0.5542 MB / 442.6 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.278e-05/0.08215, allocations: 7.938 kB / 442.6 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.35e-05/0.08219, allocations: 11.86 kB / 442.7 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.918e-05/0.08228, allocations: 11.81 kB / 442.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002205/0.08251, allocations: 67.78 kB / 442.7 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001313/0.08265, allocations: 99.75 kB / 442.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.08278, allocations: 21.11 kB / 442.9 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.325e-05/0.08288, allocations: 59.7 kB / 442.9 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.063e-05/0.08296, allocations: 35.78 kB / 442.9 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.258e-05/0.08299, allocations: 4 kB / 443 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.752e-05/0.08301, allocations: 8 kB / 443 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.101e-05/0.08305, allocations: 19.92 kB / 443 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.118e-05/0.0831, allocations: 43.72 kB / 443 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001136/0.08322, allocations: 91.64 kB / 443.1 MB, free: 1.238 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.08323, allocations: 4 kB / 443.1 MB, free: 1.234 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.08324, allocations: 0 / 443.1 MB, free: 1.234 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.08325, allocations: 0 / 443.1 MB, free: 1.234 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.0004898/0.08375, allocations: 492 kB / 443.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.08378, allocations: 11.89 kB / 443.6 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.294e-05/0.08383, allocations: 8.844 kB / 443.6 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002233/0.08406, allocations: 255.8 kB / 443.9 MB, free: 388 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.893e-05/0.08413, allocations: 67.84 kB / 443.9 MB, free: 308 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.433e-05/0.08415, allocations: 4.375 kB / 443.9 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001737/0.08433, allocations: 85.7 kB / 444 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.08434, allocations: 4 kB / 444 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.08436, allocations: 0 / 444 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.08437, allocations: 0 / 444 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001303/0.0845, allocations: 35.97 kB / 444.1 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004461/0.08496, allocations: 320.8 kB / 444.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001996/0.08517, allocations: 70.55 kB / 444.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.414e-05/0.08526, allocations: 24.94 kB / 444.5 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.62e-05/0.08528, allocations: 4 kB / 444.5 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000268/0.08556, allocations: 103.3 kB / 444.6 MB, free: 15.58 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.723e-06/0.08557, allocations: 4 kB / 444.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004005/0.08598, allocations: 133.5 kB / 444.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/0.08602, allocations: 55.41 kB / 444.8 MB, free: 15.37 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.08614, allocations: 146.2 kB / 444.9 MB, free: 15.22 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.08618, allocations: 33.7 kB / 444.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.776e-05/0.08624, allocations: 104 kB / 445 MB, free: 15.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.141e-05/0.08628, allocations: 23.66 kB / 445.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.762e-05/0.08633, allocations: 33.7 kB / 445.1 MB, free: 15.01 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.08645, allocations: 330.8 kB / 445.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.819e-05/0.08653, allocations: 19.98 kB / 445.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.768e-05/0.08662, allocations: 64.81 kB / 445.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/0.08684, allocations: 113 kB / 445.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.08686, allocations: 0 / 445.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002271/0.08709, allocations: 129.3 kB / 445.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.08711, allocations: 8 kB / 445.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.08712, allocations: 0 / 445.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.08714, allocations: 4.375 kB / 445.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.03e-05/0.08723, allocations: 8 kB / 445.8 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.08726, allocations: 7.938 kB / 445.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.886e-05/0.08733, allocations: 11.98 kB / 445.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.08735, allocations: 11.92 kB / 445.8 MB, free: 14.27 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.0001322/0.08749, allocations: 133.8 kB / 445.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.037e-05/0.08751, allocations: 11.89 kB / 445.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.718e-05/0.08756, allocations: 16.7 kB / 445.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.08757, allocations: 0 / 445.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.08757, allocations: 0 / 445.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.814e-05/0.08762, allocations: 92.86 kB / 446 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.772e-05/0.08766, allocations: 7.938 kB / 446 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.082e-05/0.08773, allocations: 16.05 kB / 446.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.48e-05/0.08778, allocations: 7.984 kB / 446.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003004/0.08809, allocations: 197 kB / 446.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003104/0.08841, allocations: 282.6 kB / 446.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001037/0.08852, allocations: 43.91 kB / 446.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.53e-05/0.0886, allocations: 112.1 kB / 446.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of Backend: time 2.21e-07/0.0886, allocations: 0 / 446.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003867/0.089, allocations: 130.2 kB / 446.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of SimCode: time 0.0004921/0.0895, allocations: 0.6567 MB / 447.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of Templates: time 0.003234/0.09274, allocations: 1.05 MB / 448.5 MB, free: 11.43 MB / 334.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.makefile (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 & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe 2>&1)