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.01315/0.01315, allocations: 107.8 kB / 15.74 MB, free: 6.449 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.002442/0.002442, allocations: 196 kB / 16.67 MB, free: 6.355 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.82/1.82, allocations: 205.1 MB / 222.6 MB, free: 4.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05688/0.05688, allocations: 10.73 MB / 280.6 MB, free: 10.46 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.00183/0.00183, allocations: 71.91 kB / 390.8 MB, free: 5.043 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.381/0.3828, allocations: 49.03 MB / 439.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.002768/0.3856, allocations: 1.548 MB / 441.4 MB, free: 4.262 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009975/0.3867, allocations: 0.5475 MB / 442 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.3868, allocations: 8.531 kB / 442 MB, free: 3.875 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.45e-05/0.3868, allocations: 8.578 kB / 442 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.17e-05/0.3869, allocations: 18.48 kB / 442 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000307/0.3872, allocations: 64.73 kB / 442.1 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000179/0.3874, allocations: 101.3 kB / 442.2 MB, free: 3.773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.3876, allocations: 29.78 kB / 442.2 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.3877, allocations: 49.44 kB / 442.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.667e-05/0.3878, allocations: 37.03 kB / 442.3 MB, free: 3.715 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.777e-05/0.3878, allocations: 6.125 kB / 442.3 MB, free: 3.715 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.743e-05/0.3879, allocations: 4.75 kB / 442.3 MB, free: 3.715 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.419e-05/0.3879, allocations: 26.97 kB / 442.3 MB, free: 3.699 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.011e-05/0.388, allocations: 43.88 kB / 442.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000175/0.3882, allocations: 86.44 kB / 442.4 MB, free: 3.633 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3882, allocations: 0 / 442.4 MB, free: 3.633 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3882, allocations: 0 / 442.4 MB, free: 3.633 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.3882, allocations: 0 / 442.4 MB, free: 3.633 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.000611/0.3888, allocations: 493.7 kB / 442.9 MB, free: 3.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.3889, allocations: 14.56 kB / 442.9 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.312e-05/0.3889, allocations: 10.5 kB / 442.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003275/0.3893, allocations: 252.4 kB / 443.2 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.124e-05/0.3893, allocations: 64.89 kB / 443.3 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.234e-05/0.3894, allocations: 8.938 kB / 443.3 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002068/0.3896, allocations: 84.53 kB / 443.3 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.3896, allocations: 4.641 kB / 443.3 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.3896, allocations: 5.188 kB / 443.4 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.3896, allocations: 1.344 kB / 443.4 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001398/0.3898, allocations: 35.8 kB / 443.4 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004536/0.3902, allocations: 314.4 kB / 443.7 MB, free: 2.461 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001947/0.3904, allocations: 73.23 kB / 443.8 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.608e-05/0.3905, allocations: 25.47 kB / 443.8 MB, free: 2.402 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.3906, allocations: 1.375 kB / 443.8 MB, free: 2.402 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002492/0.3908, allocations: 105.5 kB / 443.9 MB, free: 2.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.684e-06/0.3908, allocations: 0 / 443.9 MB, free: 2.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004435/0.3913, allocations: 135.5 kB / 444 MB, free: 2.281 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.3913, allocations: 54.81 kB / 444.1 MB, free: 2.219 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000157/0.3915, allocations: 154.7 kB / 444.2 MB, free: 2.098 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.3915, allocations: 32.8 kB / 444.3 MB, free: 2.062 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.627e-05/0.3916, allocations: 104.1 kB / 444.4 MB, free: 1.965 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.399e-05/0.3916, allocations: 22.48 kB / 444.4 MB, free: 1.949 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.866e-05/0.3917, allocations: 36.94 kB / 444.4 MB, free: 1.918 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.884e-05/0.3918, allocations: 326.3 kB / 444.7 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.3919, allocations: 24.34 kB / 444.8 MB, free: 1.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.3921, allocations: 58.69 kB / 444.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001914/0.3923, allocations: 99.33 kB / 444.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3923, allocations: 1.594 kB / 444.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002095/0.3925, allocations: 132.8 kB / 445.1 MB, free: 1.387 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.3925, allocations: 9.906 kB / 445.1 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.3925, allocations: 1.625 kB / 445.1 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.3926, allocations: 3.266 kB / 445.1 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.202e-05/0.3927, allocations: 13.28 kB / 445.1 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.3927, allocations: 2.344 kB / 445.1 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.297e-05/0.3927, allocations: 10.02 kB / 445.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.3928, allocations: 11.88 kB / 445.1 MB, free: 1.371 MB / 318.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.0001069/0.3929, allocations: 134.5 kB / 445.2 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.957e-05/0.3929, allocations: 13.5 kB / 445.2 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.391e-05/0.3929, allocations: 17.61 kB / 445.3 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3929, allocations: 1.906 kB / 445.3 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.393, allocations: 0 / 445.3 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.393, allocations: 2.203 kB / 445.3 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001454/0.3931, allocations: 207.6 kB / 445.5 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3931, allocations: 64 / 445.5 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.49e-05/0.3932, allocations: 12.8 kB / 445.5 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3932, allocations: 0 / 445.5 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.3932, allocations: 2.75 kB / 445.5 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.3932, allocations: 0.6094 kB / 445.5 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3932, allocations: 1.5 kB / 445.5 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002669/0.3935, allocations: 148.7 kB / 445.6 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.775e-05/0.3935, allocations: 89.05 kB / 445.7 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.457e-05/0.3936, allocations: 3.125 kB / 445.7 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.076e-05/0.3936, allocations: 4.625 kB / 445.7 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.394e-05/0.3937, allocations: 13.73 kB / 445.7 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.978e-05/0.3937, allocations: 5.5 kB / 445.7 MB, free: 0.793 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.929e-05/0.3938, allocations: 125 kB / 445.9 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.52e-07/0.3938, allocations: 0 / 445.9 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002074/0.394, allocations: 18.41 kB / 445.9 MB, free: 0.6914 MB / 318.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 9.506e-05/0.3941, allocations: 107.1 kB / 446 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003087/0.3945, allocations: 74.05 kB / 446.1 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3945, allocations: 1.375 kB / 446.1 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.3946, allocations: 35.28 kB / 446.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001673/0.3948, allocations: 16.7 kB / 446.1 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000564/0.3954, allocations: 233.9 kB / 446.3 MB, free: 400 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002277/0.3956, allocations: 0.7004 MB / 447 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.929e-05/0.3957, allocations: 15.23 kB / 447.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.137e-05/0.3957, allocations: 15.72 kB / 447.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of SimCode: time 2.074e-06/0.3957, allocations: 1.125 kB / 447.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of Templates: time 0.004273/0.4, allocations: 0.947 MB / 448 MB, free: 15.56 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)