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.001182/0.001182, allocations: 107.6 kB / 16.41 MB, free: 6.492 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.001155/0.001155, allocations: 192.1 kB / 17.34 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.372/1.372, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05682/0.05682, allocations: 10.74 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.00277/0.00277, allocations: 69.2 kB / 391.5 MB, free: 46.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08577/0.08856, allocations: 49.04 MB / 440.5 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.00224/0.09085, allocations: 1.541 MB / 442.1 MB, free: 2.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007468/0.09162, allocations: 0.5542 MB / 442.6 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.385e-05/0.09173, allocations: 7.938 kB / 442.6 MB, free: 1.699 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.376e-05/0.09179, allocations: 7.875 kB / 442.6 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.779e-05/0.09186, allocations: 11.81 kB / 442.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002342/0.0921, allocations: 63.84 kB / 442.7 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001251/0.09224, allocations: 99.73 kB / 442.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.09235, allocations: 25.06 kB / 442.8 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.09247, allocations: 51.72 kB / 442.9 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.643e-05/0.09255, allocations: 39.77 kB / 442.9 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.398e-05/0.09258, allocations: 8 kB / 442.9 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.481e-05/0.0926, allocations: 4 kB / 442.9 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.383e-05/0.09263, allocations: 19.92 kB / 443 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.331e-05/0.09268, allocations: 47.72 kB / 443 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001134/0.09279, allocations: 87.64 kB / 443.1 MB, free: 1.242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.0928, allocations: 4 kB / 443.1 MB, free: 1.238 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.09281, allocations: 0 / 443.1 MB, free: 1.238 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.09282, allocations: 0 / 443.1 MB, free: 1.238 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.0005198/0.09335, allocations: 488 kB / 443.6 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.09339, allocations: 15.89 kB / 443.6 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.963e-05/0.09345, allocations: 12.83 kB / 443.6 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002507/0.0937, allocations: 259.8 kB / 443.9 MB, free: 384 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.339e-05/0.09377, allocations: 59.91 kB / 443.9 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.503e-05/0.0938, allocations: 8.375 kB / 443.9 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001804/0.09398, allocations: 93.62 kB / 444 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.094, allocations: 0 / 444 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.09402, allocations: 4 kB / 444 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.09403, allocations: 0 / 444 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001296/0.09416, allocations: 35.97 kB / 444.1 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004573/0.09462, allocations: 312.6 kB / 444.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000209/0.09484, allocations: 66.53 kB / 444.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.042e-05/0.09494, allocations: 28.94 kB / 444.5 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.09497, allocations: 4.156 kB / 444.5 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002492/0.09522, allocations: 111.2 kB / 444.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.422e-06/0.09524, allocations: 0 / 444.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003951/0.09564, allocations: 133.5 kB / 444.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.09568, allocations: 55.41 kB / 444.8 MB, free: 15.37 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.0958, allocations: 146.2 kB / 444.9 MB, free: 15.22 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.09583, allocations: 33.7 kB / 444.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.304e-05/0.09589, allocations: 104 kB / 445 MB, free: 15.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.039e-05/0.09592, allocations: 27.64 kB / 445.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.557e-05/0.09598, allocations: 29.72 kB / 445.1 MB, free: 15.01 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.781e-05/0.09608, allocations: 330.8 kB / 445.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.978e-05/0.09615, allocations: 24 kB / 445.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.605e-05/0.09625, allocations: 61.12 kB / 445.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002239/0.09648, allocations: 105 kB / 445.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.09649, allocations: 0 / 445.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002317/0.09673, allocations: 133.5 kB / 445.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.09675, allocations: 13.97 kB / 445.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.09677, allocations: 384 / 445.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.09679, allocations: 4 kB / 445.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.917e-05/0.09688, allocations: 11.98 kB / 445.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.0969, allocations: 7.938 kB / 445.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.33e-05/0.09697, allocations: 7.938 kB / 445.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.301e-05/0.09699, 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.00014/0.09714, allocations: 133.8 kB / 445.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.944e-05/0.09716, allocations: 7.906 kB / 445.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.681e-05/0.0972, allocations: 16.72 kB / 445.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.09721, allocations: 0 / 445.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.09722, allocations: 0 / 445.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.09723, allocations: 0 / 445.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001696/0.0974, allocations: 213.4 kB / 446.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.09741, allocations: 4 kB / 446.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-05/0.09747, allocations: 11.94 kB / 446.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.09748, allocations: 0 / 446.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.0975, allocations: 7.984 kB / 446.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.09751, allocations: 4.062 kB / 446.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.09752, allocations: 0 / 446.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002703/0.09779, allocations: 140.9 kB / 446.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.662e-05/0.09785, allocations: 93.02 kB / 446.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.378e-05/0.09788, allocations: 0 / 446.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.936e-05/0.09794, allocations: 4 kB / 446.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.46e-05/0.098, allocations: 15.97 kB / 446.4 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-06/0.09802, allocations: 4 kB / 446.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.903e-05/0.0981, allocations: 120 kB / 446.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09811, allocations: 0 / 446.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002115/0.09833, allocations: 19.91 kB / 446.6 MB, free: 13.39 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.0001158/0.09845, allocations: 107.2 kB / 446.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002357/0.09869, allocations: 75.83 kB / 446.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.0987, allocations: 4 kB / 446.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.09882, allocations: 36.02 kB / 446.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000169/0.09899, allocations: 11.27 kB / 446.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005689/0.09957, allocations: 261.6 kB / 447 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.09987, allocations: 0.704 MB / 447.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.928e-05/0.09993, allocations: 19.42 kB / 447.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.09994, allocations: 0 / 447.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of Templates: time 0.003149/0.1031, allocations: 1.409 MB / 449.2 MB, free: 10.71 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)