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.001323/0.001322, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001827/0.001826, allocations: 192 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.355/2.355, allocations: 205.1 MB / 222.4 MB, free: 4.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.09854/0.09854, allocations: 10.75 MB / 280.5 MB, free: 10.51 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.003048/0.003048, allocations: 67.89 kB / 340.6 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.2099, allocations: 49.01 MB / 389.7 MB, free: 6.148 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.00833/0.2184, allocations: 1.562 MB / 391.2 MB, free: 4.566 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002399/0.2208, allocations: 0.5386 MB / 391.8 MB, free: 4.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002897/0.2212, allocations: 7.938 kB / 391.8 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.541e-05/0.2214, allocations: 15.86 kB / 391.8 MB, free: 3.996 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002208/0.2216, allocations: 23.8 kB / 391.8 MB, free: 3.973 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005602/0.2222, allocations: 67.84 kB / 391.9 MB, free: 3.906 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003472/0.2225, allocations: 95.7 kB / 392 MB, free: 3.812 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002236/0.2228, allocations: 13.12 kB / 392 MB, free: 3.801 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002454/0.223, allocations: 55.77 kB / 392 MB, free: 3.746 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001882/0.2232, allocations: 39.78 kB / 392.1 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.182e-05/0.2233, allocations: 4 kB / 392.1 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.43e-05/0.2234, allocations: 4 kB / 392.1 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.902e-05/0.2234, allocations: 27.91 kB / 392.1 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001081/0.2235, allocations: 39.73 kB / 392.1 MB, free: 3.633 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.2238, allocations: 87.91 kB / 392.2 MB, free: 3.547 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.2239, allocations: 3.938 kB / 392.2 MB, free: 3.543 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.2239, allocations: 0 / 392.2 MB, free: 3.543 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.2239, allocations: 0 / 392.2 MB, free: 3.543 MB / 286.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.001311/0.2252, allocations: 496 kB / 392.7 MB, free: 2.992 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.168e-05/0.2253, allocations: 15.89 kB / 392.7 MB, free: 2.977 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.144e-05/0.2254, allocations: 38.73 kB / 392.8 MB, free: 2.93 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.2255, allocations: 16.75 kB / 392.8 MB, free: 2.914 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005972/0.2261, allocations: 232.6 kB / 393 MB, free: 2.648 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001698/0.2263, allocations: 63.91 kB / 393.1 MB, free: 2.574 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.768e-05/0.2264, allocations: 4.375 kB / 393.1 MB, free: 2.57 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004159/0.2268, allocations: 77.58 kB / 393.2 MB, free: 2.488 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.2268, allocations: 4 kB / 393.2 MB, free: 2.484 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.708e-05/0.2269, allocations: 0 / 393.2 MB, free: 2.484 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.264e-05/0.2269, allocations: 7.984 kB / 393.2 MB, free: 2.477 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002354/0.2272, allocations: 35.92 kB / 393.2 MB, free: 2.441 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.2282, allocations: 320.6 kB / 393.5 MB, free: 2.078 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000339/0.2286, allocations: 66.55 kB / 393.6 MB, free: 2.004 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001406/0.2288, allocations: 28.92 kB / 393.6 MB, free: 1.973 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/0.2288, allocations: 0 / 393.6 MB, free: 1.973 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004141/0.2292, allocations: 107.3 kB / 393.7 MB, free: 1.855 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 2.545e-06/0.2292, allocations: 4 kB / 393.7 MB, free: 1.852 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006295/0.2299, allocations: 137.4 kB / 393.9 MB, free: 1.711 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.819e-05/0.2299, allocations: 51.41 kB / 393.9 MB, free: 1.648 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002428/0.2302, allocations: 158.1 kB / 394.1 MB, free: 1.484 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.591e-05/0.2303, allocations: 29.7 kB / 394.1 MB, free: 1.449 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.2304, allocations: 104.1 kB / 394.2 MB, free: 1.344 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.666e-05/0.2305, allocations: 31.78 kB / 394.2 MB, free: 1.312 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.608e-05/0.2306, allocations: 33.77 kB / 394.3 MB, free: 1.273 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002882/0.2309, allocations: 327.1 kB / 394.6 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.231, allocations: 23.98 kB / 394.6 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/0.2312, allocations: 65.06 kB / 394.7 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000302/0.2315, allocations: 101.1 kB / 394.8 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.2315, allocations: 3.938 kB / 394.8 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003788/0.2319, allocations: 133.3 kB / 394.9 MB, free: 0.582 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.2319, allocations: 4 kB / 394.9 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.232, allocations: 4 kB / 394.9 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.232, allocations: 0 / 394.9 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.2321, allocations: 16 kB / 394.9 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.714e-05/0.2322, allocations: 11.97 kB / 394.9 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.2323, allocations: 11.94 kB / 394.9 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/0.2323, allocations: 4.156 kB / 394.9 MB, free: 0.5312 MB / 286.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.0002724/0.2326, allocations: 135 kB / 395.1 MB, free: 400 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.964e-05/0.2327, allocations: 15.81 kB / 395.1 MB, free: 384 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.797e-05/0.2327, allocations: 12.7 kB / 395.1 MB, free: 372 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/0.2328, allocations: 4 kB / 395.1 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.2328, allocations: 3.938 kB / 395.1 MB, free: 364 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.2328, allocations: 3.938 kB / 395.1 MB, free: 360 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003507/0.2332, allocations: 201.6 kB / 395.3 MB, free: 108 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2332, allocations: 0 / 395.3 MB, free: 108 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.933e-05/0.2333, allocations: 4 kB / 395.3 MB, free: 104 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.2333, allocations: 4 kB / 395.3 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.391e-05/0.2333, allocations: 3.984 kB / 395.3 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.2333, allocations: 0 / 395.3 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2333, allocations: 0 / 395.3 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005485/0.2339, allocations: 144.9 kB / 395.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.64e-05/0.234, allocations: 96.84 kB / 395.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.75e-05/0.2341, allocations: 4 kB / 395.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.683e-05/0.2342, allocations: 8 kB / 395.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.603e-05/0.2343, allocations: 7.984 kB / 395.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.828e-05/0.2343, allocations: 11.92 kB / 395.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001766/0.2345, allocations: 116.1 kB / 395.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2345, allocations: 0 / 395.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004456/0.235, allocations: 16 kB / 395.7 MB, free: 15.66 MB / 302.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.001266/0.2363, allocations: 0.6826 MB / 396.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004857/0.2368, allocations: 79.83 kB / 396.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.2368, allocations: 320 / 396.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001839/0.237, allocations: 43.92 kB / 396.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003491/0.2373, allocations: 11.94 kB / 396.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004249/0.2416, allocations: 1.591 MB / 398.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006304/0.2423, allocations: 0.7002 MB / 398.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001343/0.2425, allocations: 20.42 kB / 398.8 MB, free: 12.37 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.2426, allocations: 39.42 kB / 398.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of SimCode: time 1.883e-06/0.2426, allocations: 0 / 398.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06672/0.3094, allocations: 2.42 MB / 401.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.7/16.01, allocations: 15.11 kB / 401.3 MB, free: 9.93 MB / 302.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)