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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.00697/0.00697, allocations: 102.6 kB / 15.73 MB, free: 5.992 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.001798/0.001798, allocations: 191.2 kB / 16.67 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 222.9 MB / 240.4 MB, free: 4.125 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1765/0.1765, allocations: 11.17 MB / 301.7 MB, free: 1.297 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 63.91 kB / 417.3 MB, free: 5.996 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.2346, allocations: 51.99 MB / 469.3 MB, free: 16.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.002328/0.237, allocations: 1.569 MB / 470.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007457/0.2378, allocations: 0.5022 MB / 471.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.291e-05/0.2379, allocations: 11.25 kB / 471.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.407e-05/0.2379, allocations: 7.281 kB / 471.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.968e-05/0.238, allocations: 18 kB / 471.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.2382, allocations: 67.19 kB / 471.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001457/0.2384, allocations: 100.2 kB / 471.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.2385, allocations: 25.52 kB / 471.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.86e-05/0.2386, allocations: 45.45 kB / 471.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.178e-05/0.2387, allocations: 40.91 kB / 471.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.122e-05/0.2387, allocations: 9.594 kB / 471.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.629e-05/0.2387, allocations: 5.719 kB / 471.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.402e-05/0.2388, allocations: 21.86 kB / 471.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.2e-05/0.2388, allocations: 40.5 kB / 471.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001422/0.239, allocations: 90.53 kB / 471.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.239, allocations: 0.9375 kB / 471.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.239, allocations: 0 / 471.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.239, allocations: 0 / 471.9 MB, free: 15.05 MB / 350.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.0005121/0.2395, allocations: 0.4899 MB / 472.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.2396, allocations: 13.42 kB / 472.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.661e-05/0.2396, allocations: 38.09 kB / 472.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.926e-05/0.2397, allocations: 15.25 kB / 472.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002687/0.2399, allocations: 251.3 kB / 472.7 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.196e-05/0.24, allocations: 59.06 kB / 472.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.431e-05/0.24, allocations: 7.438 kB / 472.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/0.2402, allocations: 84.84 kB / 472.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.2403, allocations: 0 / 472.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.2403, allocations: 4.562 kB / 472.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.2403, allocations: 1.375 kB / 472.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001364/0.2404, allocations: 31.83 kB / 472.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003894/0.2408, allocations: 324.7 kB / 473.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001852/0.241, allocations: 60.34 kB / 473.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.853e-05/0.2411, allocations: 30.38 kB / 473.3 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.677e-05/0.2411, allocations: 1.875 kB / 473.3 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002098/0.2413, allocations: 102.3 kB / 473.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 2.314e-06/0.2414, allocations: 0 / 473.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.000408/0.2418, allocations: 141.3 kB / 473.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.378e-05/0.2418, allocations: 62.08 kB / 473.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.387e-05/0.2419, allocations: 160 kB / 473.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.2419, allocations: 27.08 kB / 473.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.583e-05/0.242, allocations: 104.5 kB / 473.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.634e-05/0.242, allocations: 22.89 kB / 473.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.362e-05/0.2421, allocations: 28.55 kB / 473.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.369e-05/0.2421, allocations: 325.8 kB / 474.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.86e-05/0.2422, allocations: 24.22 kB / 474.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.386e-05/0.2423, allocations: 64.28 kB / 474.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001678/0.2424, allocations: 110.2 kB / 474.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.2424, allocations: 5.312 kB / 474.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002064/0.2427, allocations: 121.7 kB / 474.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.2427, allocations: 6.531 kB / 474.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.2427, allocations: 1.312 kB / 474.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.2427, allocations: 2.906 kB / 474.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.573e-05/0.2428, allocations: 19.73 kB / 474.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.2428, allocations: 3.531 kB / 474.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.363e-05/0.2429, allocations: 12.86 kB / 474.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.2429, allocations: 4.312 kB / 474.6 MB, free: 12.73 MB / 350.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.0001107/0.243, allocations: 138.3 kB / 474.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.062e-05/0.243, allocations: 10.59 kB / 474.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.654e-05/0.2431, allocations: 16.61 kB / 474.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.2431, allocations: 1.219 kB / 474.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2431, allocations: 2.156 kB / 474.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.2431, allocations: 3.938 kB / 474.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001247/0.2432, allocations: 199.4 kB / 474.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2432, allocations: 0 / 474.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.119e-05/0.2433, allocations: 12.48 kB / 475 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.2433, allocations: 1.594 kB / 475 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.2433, allocations: 3.188 kB / 475 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.2433, allocations: 0 / 475 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2433, allocations: 1.219 kB / 475 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000256/0.2436, allocations: 152.1 kB / 475.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.304e-05/0.2436, allocations: 85.56 kB / 475.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.565e-05/0.2437, allocations: 6.156 kB / 475.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.809e-05/0.2437, allocations: 5.75 kB / 475.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.656e-05/0.2438, allocations: 17.59 kB / 475.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.2438, allocations: 8.25 kB / 475.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.52e-05/0.2439, allocations: 113.8 kB / 475.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2439, allocations: 1.406 kB / 475.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00021/0.2441, allocations: 25.14 kB / 475.4 MB, free: 12.05 MB / 350.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.0004007/0.2445, allocations: 0.6719 MB / 476 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002157/0.2447, allocations: 82.36 kB / 476.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2447, allocations: 0 / 476.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.2448, allocations: 37.73 kB / 476.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001594/0.245, allocations: 12.12 kB / 476.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.2464, allocations: 1.615 MB / 477.8 MB, free: 9.918 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.776e-05/0.2465, allocations: 0.7008 MB / 478.5 MB, free: 9.211 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.678e-05/0.2466, allocations: 17.45 kB / 478.5 MB, free: 9.203 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.69e-05/0.2466, allocations: 34.3 kB / 478.5 MB, free: 9.176 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2466, allocations: 0 / 478.5 MB, free: 9.176 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02252/0.2691, allocations: 2.474 MB / 481 MB, free: 7.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.212/8.481, allocations: 10.28 kB / 481 MB, free: 7.914 MB / 350.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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe 2>&1)