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.001117/0.001117, allocations: 112 kB / 16.42 MB, free: 6.457 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.001176/0.001176, allocations: 190.7 kB / 17.35 MB, free: 5.703 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.276/1.276, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05956/0.05956, allocations: 10.73 MB / 281.3 MB, free: 1.281 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.00146/0.00146, allocations: 73.78 kB / 391.5 MB, free: 45.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.065/0.06647, allocations: 49.02 MB / 440.5 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.001967/0.06846, allocations: 1.545 MB / 442.1 MB, free: 2.258 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006312/0.06911, allocations: 0.5581 MB / 442.6 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.65e-05/0.06919, allocations: 7.938 kB / 442.6 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.986e-05/0.06923, allocations: 7.875 kB / 442.7 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.955e-05/0.06931, allocations: 19.8 kB / 442.7 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001968/0.06951, allocations: 67.84 kB / 442.7 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001189/0.06964, allocations: 95.69 kB / 442.8 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.06975, allocations: 33.05 kB / 442.9 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.097e-05/0.06984, allocations: 51.77 kB / 442.9 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.073e-05/0.0699, allocations: 35.78 kB / 443 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.974e-05/0.06993, allocations: 4 kB / 443 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.647e-05/0.06995, allocations: 8 kB / 443 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.631e-05/0.06998, allocations: 15.92 kB / 443 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.386e-05/0.07003, allocations: 43.72 kB / 443 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.07014, allocations: 87.58 kB / 443.1 MB, free: 1.223 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.07015, allocations: 4 kB / 443.1 MB, free: 1.219 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.07016, allocations: 3.938 kB / 443.1 MB, free: 1.215 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.07017, allocations: 0 / 443.1 MB, free: 1.215 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.0004548/0.07063, allocations: 500 kB / 443.6 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.031e-05/0.07067, allocations: 11.89 kB / 443.6 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.805e-05/0.07071, allocations: 12.89 kB / 443.6 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002144/0.07093, allocations: 251.9 kB / 443.9 MB, free: 360 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.626e-05/0.07099, allocations: 59.95 kB / 443.9 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.686e-05/0.07102, allocations: 8.375 kB / 443.9 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001703/0.07119, allocations: 81.7 kB / 444 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.07121, allocations: 0 / 444 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.07123, allocations: 8 kB / 444 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.07124, allocations: 4 kB / 444 MB, free: 180 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001281/0.07137, allocations: 35.91 kB / 444.1 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004365/0.07181, allocations: 316.7 kB / 444.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002037/0.07203, allocations: 66.55 kB / 444.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.957e-05/0.07213, allocations: 32.94 kB / 444.5 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.612e-05/0.07215, allocations: 0 / 444.5 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002179/0.07238, allocations: 99.28 kB / 444.6 MB, free: 15.56 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.412e-06/0.07239, allocations: 0 / 444.6 MB, free: 15.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.000417/0.07281, allocations: 145.5 kB / 444.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/0.07285, allocations: 55.41 kB / 444.8 MB, free: 15.35 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/0.07298, allocations: 150.2 kB / 444.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.073, allocations: 25.7 kB / 444.9 MB, free: 15.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.313e-05/0.07306, allocations: 108.1 kB / 445 MB, free: 15.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.07309, allocations: 23.8 kB / 445.1 MB, free: 15.03 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.59e-05/0.07315, allocations: 29.7 kB / 445.1 MB, free: 14.99 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.07327, allocations: 330.8 kB / 445.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.83e-05/0.07334, allocations: 19.98 kB / 445.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.807e-05/0.07344, allocations: 69.45 kB / 445.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001848/0.07363, allocations: 101.1 kB / 445.6 MB, free: 14.44 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.07364, allocations: 0 / 445.6 MB, free: 14.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002223/0.07387, allocations: 125.7 kB / 445.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.07389, allocations: 15.88 kB / 445.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.0739, allocations: 3.984 kB / 445.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.07392, allocations: 7.984 kB / 445.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.392e-05/0.07402, allocations: 15.94 kB / 445.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.07403, allocations: 7.984 kB / 445.8 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.51e-05/0.0741, allocations: 7.984 kB / 445.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/0.07412, allocations: 4 kB / 445.8 MB, free: 14.25 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.0001245/0.07425, allocations: 140.9 kB / 445.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.941e-05/0.07427, allocations: 15.84 kB / 445.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.717e-05/0.07432, allocations: 16.7 kB / 446 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.07433, allocations: 0 / 446 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.07433, allocations: 64 / 446 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.548e-05/0.07438, allocations: 89.06 kB / 446 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.856e-05/0.07441, allocations: 11.94 kB / 446.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.505e-05/0.07448, allocations: 3.984 kB / 446.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.954e-05/0.07454, allocations: 19.98 kB / 446.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003104/0.07486, allocations: 189 kB / 446.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003099/0.07518, allocations: 290.6 kB / 446.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.97e-05/0.07529, allocations: 35.91 kB / 446.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.275e-05/0.07537, allocations: 116.1 kB / 446.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of Backend: time 2.41e-07/0.07538, allocations: 192 / 446.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003755/0.07576, allocations: 132.3 kB / 446.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of SimCode: time 0.0004776/0.07625, allocations: 0.6602 MB / 447.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of Templates: time 0.003147/0.07941, allocations: 1.054 MB / 448.5 MB, free: 11.4 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)