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.00661/0.00661, allocations: 102.6 kB / 15.73 MB, free: 6.004 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.001276/0.001276, allocations: 193 kB / 16.67 MB, free: 5.926 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.499/1.499, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06442/0.06442, allocations: 10.75 MB / 280.7 MB, free: 10.4 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.002155/0.002155, allocations: 71.84 kB / 390.4 MB, free: 5.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2797, allocations: 49.01 MB / 439.4 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.002667/0.2823, allocations: 1.557 MB / 440.9 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001135/0.2835, allocations: 0.5499 MB / 441.5 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.2836, allocations: 8.062 kB / 441.5 MB, free: 3.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.53e-05/0.2837, allocations: 8.969 kB / 441.5 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001079/0.2838, allocations: 14.2 kB / 441.5 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003584/0.2841, allocations: 68.28 kB / 441.6 MB, free: 3.363 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002185/0.2844, allocations: 94.38 kB / 441.7 MB, free: 3.324 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.2845, allocations: 20.55 kB / 441.7 MB, free: 3.312 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.2846, allocations: 55.34 kB / 441.7 MB, free: 3.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.017e-05/0.2847, allocations: 45.06 kB / 441.8 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.182e-05/0.2847, allocations: 5.5 kB / 441.8 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.557e-05/0.2847, allocations: 5.5 kB / 441.8 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.17e-05/0.2848, allocations: 26.3 kB / 441.8 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.101e-05/0.2848, allocations: 40.08 kB / 441.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001583/0.285, allocations: 81.55 kB / 441.9 MB, free: 3.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.285, allocations: 0 / 441.9 MB, free: 3.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.285, allocations: 0 / 441.9 MB, free: 3.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.308e-05/0.285, allocations: 0 / 441.9 MB, free: 3.188 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.0005832/0.2856, allocations: 0.4968 MB / 442.4 MB, free: 2.676 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.2856, allocations: 14.09 kB / 442.5 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.67e-05/0.2857, allocations: 37.39 kB / 442.5 MB, free: 2.629 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.659e-05/0.2857, allocations: 12.56 kB / 442.5 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003314/0.286, allocations: 251.6 kB / 442.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.856e-05/0.2861, allocations: 64.92 kB / 442.8 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.309e-05/0.2861, allocations: 13.61 kB / 442.8 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002293/0.2864, allocations: 75.62 kB / 442.9 MB, free: 2.273 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.2864, allocations: 0.8438 kB / 442.9 MB, free: 2.273 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.2864, allocations: 5.219 kB / 442.9 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.2864, allocations: 0.6562 kB / 442.9 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001462/0.2865, allocations: 31.7 kB / 442.9 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004569/0.287, allocations: 326.6 kB / 443.3 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.2872, allocations: 60.16 kB / 443.3 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.616e-05/0.2873, allocations: 24.64 kB / 443.3 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.2873, allocations: 0 / 443.3 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002467/0.2875, allocations: 109.4 kB / 443.4 MB, free: 1.844 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.703e-06/0.2875, allocations: 112 / 443.4 MB, free: 1.844 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004356/0.288, allocations: 143.1 kB / 443.6 MB, free: 1.777 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/0.288, allocations: 59.31 kB / 443.6 MB, free: 1.711 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/0.2882, allocations: 152 kB / 443.8 MB, free: 1.594 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.2882, allocations: 27.41 kB / 443.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.256e-05/0.2882, allocations: 108.1 kB / 443.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.918e-05/0.2883, allocations: 27 kB / 443.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.426e-05/0.2883, allocations: 25.06 kB / 444 MB, free: 1.422 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.993e-05/0.2884, allocations: 329.2 kB / 444.3 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.044e-05/0.2884, allocations: 20.44 kB / 444.3 MB, free: 1.094 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.855e-05/0.2885, allocations: 67.09 kB / 444.4 MB, free: 1.031 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001992/0.2887, allocations: 104.7 kB / 444.5 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.2887, allocations: 0 / 444.5 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002445/0.289, allocations: 126.2 kB / 444.6 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.289, allocations: 5.5 kB / 444.6 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.289, allocations: 1.984 kB / 444.6 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.383e-05/0.289, allocations: 7.281 kB / 444.6 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.877e-05/0.2891, allocations: 12.39 kB / 444.6 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.884e-06/0.2891, allocations: 6.016 kB / 444.6 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.972e-05/0.2892, allocations: 13.28 kB / 444.6 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.2892, allocations: 8.062 kB / 444.7 MB, free: 0.8672 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.0001198/0.2893, allocations: 131.6 kB / 444.8 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.283e-05/0.2894, allocations: 13.95 kB / 444.8 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.834e-05/0.2894, allocations: 17.88 kB / 444.8 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2894, allocations: 1.219 kB / 444.8 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.2894, allocations: 0.5625 kB / 444.8 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.2894, allocations: 4.594 kB / 444.8 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001598/0.2896, allocations: 199.1 kB / 445 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.2896, allocations: 5.469 kB / 445 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.482e-05/0.2896, allocations: 11.88 kB / 445 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2896, allocations: 0 / 445 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.2897, allocations: 7.297 kB / 445 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.2897, allocations: 1.734 kB / 445 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2897, allocations: 7.938 kB / 445.1 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002922/0.29, allocations: 142 kB / 445.2 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.748e-05/0.29, allocations: 92.53 kB / 445.3 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.984e-05/0.29, allocations: 6.922 kB / 445.3 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.924e-05/0.2901, allocations: 4.75 kB / 445.3 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.803e-05/0.2901, allocations: 14.59 kB / 445.3 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/0.2902, allocations: 11.91 kB / 445.3 MB, free: 280 kB / 318.1 MB Notification: Performance of sorting global known variables: time 6.954e-05/0.2902, allocations: 114 kB / 445.4 MB, free: 192 kB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2902, allocations: 0 / 445.4 MB, free: 192 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002261/0.2904, allocations: 17.86 kB / 445.4 MB, free: 188 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.00075/0.2912, allocations: 0.6886 MB / 446.1 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002808/0.2915, allocations: 76.19 kB / 446.2 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2915, allocations: 1.625 kB / 446.2 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.2916, allocations: 29.12 kB / 446.2 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001958/0.2918, allocations: 12.73 kB / 446.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002623/0.2944, allocations: 1.606 MB / 447.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000385/0.2948, allocations: 0.7004 MB / 448.6 MB, free: 13.47 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.744e-05/0.2949, allocations: 16.73 kB / 448.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.572e-05/0.295, allocations: 37.5 kB / 448.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of SimCode: time 9.11e-07/0.295, allocations: 0 / 448.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02863/0.3236, allocations: 2.467 MB / 451.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.252/8.576, allocations: 5.656 kB / 451.1 MB, free: 12.52 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 & 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)