Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestAntiWindupBlocks.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.Blocks.Examples.TestAntiWindupBlocks,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestAntiWindupBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestAntiWindupBlocks,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestAntiWindupBlocks",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.001533/0.001533, allocations: 112.5 kB / 15.73 MB, free: 76 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.001825/0.001825, allocations: 188.8 kB / 16.67 MB, free: 6.539 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.616/1.616, allocations: 205.1 MB / 222.5 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05954/0.05954, allocations: 10.75 MB / 280.6 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.001675/0.001675, allocations: 72.11 kB / 390.3 MB, free: 5.523 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.32, allocations: 49.02 MB / 439.4 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestAntiWindupBlocks): time 0.0031/0.3232, allocations: 1.897 MB / 441.3 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001587/0.3248, allocations: 0.7943 MB / 442.1 MB, free: 3.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.3249, allocations: 14.75 kB / 442.1 MB, free: 3.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002029/0.3252, allocations: 63.41 kB / 442.1 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001151/0.3253, allocations: 53.19 kB / 442.2 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005952/0.3259, allocations: 200.3 kB / 442.4 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003164/0.3262, allocations: 277.8 kB / 442.6 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/0.3264, allocations: 47.73 kB / 442.7 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.3265, allocations: 121.6 kB / 442.8 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002347/0.3268, allocations: 122.5 kB / 442.9 MB, free: 2.766 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.671e-05/0.3268, allocations: 17.25 kB / 443 MB, free: 2.766 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000188/0.327, allocations: 89.08 kB / 443 MB, free: 2.746 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.3271, allocations: 53.83 kB / 443.1 MB, free: 2.715 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.3273, allocations: 113.3 kB / 443.2 MB, free: 2.633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005538/0.3278, allocations: 276.8 kB / 443.5 MB, free: 2.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3279, allocations: 0 / 443.5 MB, free: 2.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3279, allocations: 0 / 443.5 MB, free: 2.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.523e-05/0.3279, allocations: 0 / 443.5 MB, free: 2.52 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.00096/0.3289, allocations: 0.6108 MB / 444.1 MB, free: 1.977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.906e-05/0.3289, allocations: 13.7 kB / 444.1 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.756e-05/0.329, allocations: 56.28 kB / 444.2 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.54e-05/0.3291, allocations: 40.62 kB / 444.2 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006159/0.3297, allocations: 354.3 kB / 444.5 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/0.3298, allocations: 158.4 kB / 444.7 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.087e-05/0.3299, allocations: 28.52 kB / 444.7 MB, free: 1.441 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003868/0.3303, allocations: 227 kB / 444.9 MB, free: 1.328 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.3303, allocations: 0 / 444.9 MB, free: 1.328 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.159e-05/0.3303, allocations: 6.156 kB / 444.9 MB, free: 1.324 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.3303, allocations: 4.688 kB / 445 MB, free: 1.324 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002329/0.3306, allocations: 109.9 kB / 445.1 MB, free: 1.293 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.3317, allocations: 0.7314 MB / 445.8 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002653/0.332, allocations: 106.7 kB / 445.9 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001142/0.3321, allocations: 76.48 kB / 446 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.762e-05/0.3322, allocations: 1.25 kB / 446 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002272/0.3324, allocations: 151.3 kB / 446.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.453e-06/0.3324, allocations: 0 / 446.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005162/0.3329, allocations: 285 kB / 446.4 MB, free: 456 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.411e-05/0.333, allocations: 82.5 kB / 446.5 MB, free: 360 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002774/0.3333, allocations: 281 kB / 446.8 MB, free: 200 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.3333, allocations: 30.73 kB / 446.8 MB, free: 164 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.3334, allocations: 186.6 kB / 447 MB, free: 0 / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.747e-05/0.3335, allocations: 56.28 kB / 447 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.961e-05/0.3336, allocations: 61.97 kB / 447.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.3338, allocations: 340 kB / 447.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.3339, allocations: 65.73 kB / 447.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/0.3341, allocations: 145.9 kB / 447.6 MB, free: 15.45 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003319/0.3344, allocations: 282.9 kB / 447.9 MB, free: 15.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/0.3344, allocations: 1.031 kB / 447.9 MB, free: 15.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005109/0.335, allocations: 347 kB / 448.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.408e-05/0.335, allocations: 37.17 kB / 448.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.335, allocations: 3.656 kB / 448.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.335, allocations: 4.547 kB / 448.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002526/0.3353, allocations: 55.69 kB / 448.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.568e-05/0.3353, allocations: 12.3 kB / 448.3 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001344/0.3355, allocations: 29.52 kB / 448.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.765e-05/0.3355, allocations: 15.14 kB / 448.4 MB, free: 14.98 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 12 (signal.nextEventScaled,signal.nextEvent,$PRE.signal.nextEvent,signal.last,signal.b,signal.a,$whenCondition1,complexPoles.TS_in,LeadLAG.TS_in,FirstOrder.TS_in,Integrator.TS_in,Gain.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 1 * 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.0001899/0.3357, allocations: 184.1 kB / 448.6 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.281e-05/0.3358, allocations: 33.59 kB / 448.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.546e-05/0.3358, allocations: 30.05 kB / 448.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.3358, allocations: 1.281 kB / 448.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.3358, allocations: 2.062 kB / 448.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3359, allocations: 8.453 kB / 448.6 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008608/0.3367, allocations: 0.6291 MB / 449.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.3367, allocations: 0 / 449.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002471/0.337, allocations: 32.41 kB / 449.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.337, allocations: 1.344 kB / 449.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.337, allocations: 17.41 kB / 449.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.3371, allocations: 1.156 kB / 449.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3371, allocations: 4.031 kB / 449.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005781/0.3376, allocations: 460.2 kB / 449.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.571e-05/0.3377, allocations: 104.7 kB / 449.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.233e-05/0.3378, allocations: 7.844 kB / 449.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.3379, allocations: 9.062 kB / 449.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.787e-05/0.338, allocations: 7.516 kB / 449.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.696e-05/0.338, allocations: 9.109 kB / 449.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002049/0.3382, allocations: 196 kB / 450.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3382, allocations: 0.9062 kB / 450.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004165/0.3386, allocations: 54.31 kB / 450.2 MB, free: 13.77 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (Integrator.y,FirstOrder.Y,LeadLAG.uF,complexPoles.Y,complexPoles.dY) * Number of discrete variables: 6 ($whenCondition1,signal.a,signal.b,signal.last,signal.nextEvent,signal.nextEventScaled) * Number of discrete states: 6 (signal.nextEvent,signal.last,signal.nextEventScaled,signal.b,signal.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0009519/0.3396, allocations: 1.026 MB / 451.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003953/0.34, allocations: 266.2 kB / 451.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.34, allocations: 0 / 451.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000168/0.3402, allocations: 154.6 kB / 451.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.3405, allocations: 21.5 kB / 451.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003548/0.3441, allocations: 2.858 MB / 454.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004039/0.3445, allocations: 0.7636 MB / 455.2 MB, free: 9.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001056/0.3446, allocations: 30.31 kB / 455.3 MB, free: 9.734 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001637/0.3448, allocations: 88.31 kB / 455.4 MB, free: 9.66 MB / 334.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3448, allocations: 0 / 455.4 MB, free: 9.66 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02794/0.3727, allocations: 4.759 MB / 460.1 MB, free: 7.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.188/8.561, allocations: 1.281 kB / 460.1 MB, free: 7.27 MB / 334.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestAntiWindupBlocks.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestAntiWindupBlocks.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestAntiWindupBlocks.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestAntiWindupBlocks.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestAntiWindupBlocks_res.csv --start-time 0 --stop-time 80 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.032 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestAntiWindupBlocks.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestAntiWindupBlocks.pipe 2>&1)