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.005054/0.005053, allocations: 104.4 kB / 15.73 MB, free: 6.035 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.001245/0.001245, allocations: 196 kB / 16.67 MB, free: 5.969 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.43/1.43, allocations: 205.1 MB / 222.6 MB, free: 4.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05879/0.05879, allocations: 10.75 MB / 280.7 MB, free: 10.42 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.001587/0.001587, allocations: 72.64 kB / 390.3 MB, free: 5.551 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2879, allocations: 49.03 MB / 439.4 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.002355/0.2903, allocations: 1.542 MB / 440.9 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000854/0.2912, allocations: 0.5551 MB / 441.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.056e-05/0.2913, allocations: 8.5 kB / 441.5 MB, free: 3.621 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.477e-05/0.2913, allocations: 9.141 kB / 441.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.168e-05/0.2914, allocations: 14.64 kB / 441.5 MB, free: 3.602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002411/0.2916, allocations: 67.27 kB / 441.6 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001759/0.2918, allocations: 101.1 kB / 441.7 MB, free: 3.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.292, allocations: 28.66 kB / 441.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001166/0.2921, allocations: 51.19 kB / 441.7 MB, free: 3.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.238e-05/0.2922, allocations: 37.64 kB / 441.8 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.056e-05/0.2922, allocations: 5.5 kB / 441.8 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.418e-05/0.2922, allocations: 9.438 kB / 441.8 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.068e-05/0.2923, allocations: 20.8 kB / 441.8 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.094e-05/0.2923, allocations: 46.06 kB / 441.9 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001261/0.2925, allocations: 91.45 kB / 441.9 MB, free: 3.371 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2925, allocations: 1.375 kB / 441.9 MB, free: 3.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2925, allocations: 0 / 441.9 MB, free: 3.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.718e-06/0.2925, allocations: 0 / 441.9 MB, free: 3.371 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.0005386/0.293, allocations: 482.8 kB / 442.4 MB, free: 2.883 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.2931, allocations: 14.52 kB / 442.4 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.871e-05/0.2931, allocations: 38.02 kB / 442.5 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.623e-05/0.2931, allocations: 15.98 kB / 442.5 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000262/0.2934, allocations: 250.5 kB / 442.7 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.047e-05/0.2935, allocations: 66.22 kB / 442.8 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.2935, allocations: 9.406 kB / 442.8 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001827/0.2937, allocations: 82.91 kB / 442.9 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.2937, allocations: 1.938 kB / 442.9 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.2937, allocations: 0 / 442.9 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.2937, allocations: 1.156 kB / 442.9 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001353/0.2939, allocations: 36.08 kB / 442.9 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003976/0.2943, allocations: 315.1 kB / 443.2 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001818/0.2945, allocations: 66.02 kB / 443.3 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.035e-05/0.2946, allocations: 29.34 kB / 443.3 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.091e-05/0.2946, allocations: 0.5156 kB / 443.3 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002328/0.2948, allocations: 112.1 kB / 443.4 MB, free: 2.043 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.2948, allocations: 1.188 kB / 443.4 MB, free: 2.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003736/0.2952, allocations: 139.6 kB / 443.6 MB, free: 1.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.635e-05/0.2952, allocations: 58.5 kB / 443.6 MB, free: 1.914 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.34e-05/0.2953, allocations: 147.5 kB / 443.8 MB, free: 1.801 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.2954, allocations: 32.45 kB / 443.8 MB, free: 1.766 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.546e-05/0.2954, allocations: 103.8 kB / 443.9 MB, free: 1.668 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.2954, allocations: 25.75 kB / 443.9 MB, free: 1.648 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.186e-05/0.2955, allocations: 34.36 kB / 444 MB, free: 1.621 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.376e-05/0.2955, allocations: 325.6 kB / 444.3 MB, free: 1.301 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.691e-05/0.2956, allocations: 24.27 kB / 444.3 MB, free: 1.293 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.187e-05/0.2957, allocations: 59.14 kB / 444.4 MB, free: 1.238 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.2958, allocations: 103.6 kB / 444.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2959, allocations: 5.375 kB / 444.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002/0.2961, allocations: 129.1 kB / 444.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.2961, allocations: 6.062 kB / 444.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-06/0.2961, allocations: 1.375 kB / 444.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.2961, allocations: 3.266 kB / 444.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-05/0.2962, allocations: 11.88 kB / 444.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/0.2962, allocations: 11.06 kB / 444.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.451e-05/0.2963, allocations: 13.06 kB / 444.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.2963, allocations: 13.22 kB / 444.7 MB, free: 1.062 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.0001089/0.2964, allocations: 126.2 kB / 444.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.158e-05/0.2964, allocations: 14.23 kB / 444.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.672e-05/0.2965, allocations: 18.09 kB / 444.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2965, allocations: 1.562 kB / 444.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.2965, allocations: 0 / 444.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2965, allocations: 12.67 kB / 444.8 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001255/0.2966, allocations: 199.7 kB / 445 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.2967, allocations: 0 / 445 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.79e-05/0.2967, allocations: 9.188 kB / 445 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.2967, allocations: 3.938 kB / 445 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.2967, allocations: 7.422 kB / 445 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.2968, allocations: 1.875 kB / 445 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2968, allocations: 0 / 445 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002626/0.297, allocations: 152.8 kB / 445.2 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.561e-05/0.2971, allocations: 88.44 kB / 445.3 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/0.2971, allocations: 3.438 kB / 445.3 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.257e-05/0.2972, allocations: 8.656 kB / 445.3 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.152e-05/0.2972, allocations: 11.06 kB / 445.3 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.357e-05/0.2972, allocations: 8.391 kB / 445.3 MB, free: 488 kB / 318.1 MB Notification: Performance of sorting global known variables: time 6.352e-05/0.2973, allocations: 121.8 kB / 445.4 MB, free: 392 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2973, allocations: 0 / 445.4 MB, free: 392 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002101/0.2975, allocations: 14.17 kB / 445.4 MB, free: 392 kB / 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 0.000508/0.298, allocations: 0.6796 MB / 446.1 MB, free: 15.76 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002286/0.2983, allocations: 75.36 kB / 446.2 MB, free: 15.74 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.2983, allocations: 4.062 kB / 446.2 MB, free: 15.74 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.2984, allocations: 40.97 kB / 446.2 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000171/0.2986, allocations: 11.88 kB / 446.2 MB, free: 15.72 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001969/0.3006, allocations: 1.606 MB / 447.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.3009, allocations: 0.7048 MB / 448.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.131e-05/0.301, allocations: 15.83 kB / 448.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.293e-05/0.3011, allocations: 38.48 kB / 448.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3011, allocations: 0 / 448.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01761/0.3187, allocations: 2.5 MB / 451.1 MB, free: 12.69 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.926/8.245, allocations: 12.38 kB / 451.1 MB, free: 12.68 MB / 334.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/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)