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 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.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.004956/0.004956, allocations: 101.5 kB / 15.73 MB, free: 6.059 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.001381/0.001381, allocations: 195.1 kB / 16.68 MB, free: 5.969 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.536/1.536, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1914/0.1914, allocations: 11.18 MB / 301.7 MB, free: 1.234 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002062/0.002062, allocations: 63.84 kB / 417.4 MB, free: 5.973 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2689, allocations: 51.98 MB / 469.3 MB, free: 16.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestAntiWindupBlocks): time 0.003084/0.272, allocations: 1.907 MB / 471.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001342/0.2734, allocations: 0.7534 MB / 472 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.2735, allocations: 20.16 kB / 472 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002152/0.2738, allocations: 57.98 kB / 472.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.2739, allocations: 50.3 kB / 472.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000639/0.2745, allocations: 196.1 kB / 472.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003198/0.2749, allocations: 277.1 kB / 472.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.275, allocations: 43.97 kB / 472.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001293/0.2751, allocations: 116 kB / 472.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002064/0.2754, allocations: 127 kB / 472.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.764e-05/0.2754, allocations: 15.12 kB / 472.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001518/0.2756, allocations: 92.39 kB / 473 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.614e-05/0.2756, allocations: 60.7 kB / 473 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.487e-05/0.2757, allocations: 110 kB / 473.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003397/0.2761, allocations: 279.8 kB / 473.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2761, allocations: 4.609 kB / 473.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2761, allocations: 0 / 473.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.2761, allocations: 0 / 473.4 MB, free: 14.17 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0007479/0.2769, allocations: 0.6099 MB / 474 MB, free: 13.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.2769, allocations: 12.36 kB / 474 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.805e-05/0.277, allocations: 54.17 kB / 474.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.801e-05/0.2771, allocations: 36.67 kB / 474.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005207/0.2776, allocations: 367.2 kB / 474.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.2777, allocations: 156.1 kB / 474.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.515e-05/0.2778, allocations: 24.12 kB / 474.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003606/0.2781, allocations: 219 kB / 474.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.2782, allocations: 0 / 474.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/0.2782, allocations: 6.469 kB / 474.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.2782, allocations: 4.438 kB / 474.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002109/0.2784, allocations: 117.7 kB / 475 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.2795, allocations: 0.7206 MB / 475.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002165/0.2797, allocations: 113.5 kB / 475.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.931e-05/0.2798, allocations: 73.95 kB / 475.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.054e-05/0.2798, allocations: 1.375 kB / 475.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001858/0.28, allocations: 139.5 kB / 476 MB, free: 12.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.583e-06/0.28, allocations: 0 / 476 MB, free: 12.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004574/0.2805, allocations: 303.4 kB / 476.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.2805, allocations: 83.67 kB / 476.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002193/0.2808, allocations: 275.3 kB / 476.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.54e-05/0.2808, allocations: 34.73 kB / 476.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.415e-05/0.2809, allocations: 180.7 kB / 476.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.284e-05/0.2809, allocations: 54.44 kB / 476.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.714e-05/0.281, allocations: 68.66 kB / 477 MB, free: 11.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.709e-05/0.2811, allocations: 338.4 kB / 477.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.604e-05/0.2812, allocations: 61.73 kB / 477.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.2813, allocations: 151.7 kB / 477.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002465/0.2816, allocations: 289.2 kB / 477.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.2816, allocations: 1.062 kB / 477.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004061/0.282, allocations: 334.7 kB / 478.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.378e-05/0.282, allocations: 42.41 kB / 478.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.282, allocations: 7.625 kB / 478.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.2821, allocations: 8.094 kB / 478.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002252/0.2823, allocations: 51.94 kB / 478.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/0.2823, allocations: 7.688 kB / 478.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.2824, allocations: 28.78 kB / 478.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.2825, allocations: 10.31 kB / 478.3 MB, free: 10.29 MB / 350.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.0001299/0.2826, allocations: 189.9 kB / 478.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.494e-05/0.2826, allocations: 25.05 kB / 478.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.544e-05/0.2827, allocations: 35.17 kB / 478.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.2827, allocations: 0.9062 kB / 478.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.2827, allocations: 5.094 kB / 478.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2827, allocations: 3.938 kB / 478.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005987/0.2833, allocations: 0.6271 MB / 479.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2833, allocations: 0 / 479.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002371/0.2836, allocations: 34.95 kB / 479.2 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.2836, allocations: 9.578 kB / 479.2 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.2836, allocations: 7.344 kB / 479.2 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.2836, allocations: 1.5 kB / 479.2 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.2836, allocations: 3.984 kB / 479.3 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004714/0.2841, allocations: 451.4 kB / 479.7 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.291e-05/0.2842, allocations: 107.5 kB / 479.8 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.779e-05/0.2842, allocations: 7.5 kB / 479.8 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.2843, allocations: 11.48 kB / 479.8 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.931e-05/0.2844, allocations: 8.375 kB / 479.8 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.41e-05/0.2844, allocations: 12.69 kB / 479.8 MB, free: 9.105 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001451/0.2845, allocations: 189.9 kB / 480 MB, free: 8.977 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2845, allocations: 1.188 kB / 480 MB, free: 8.977 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003619/0.2849, allocations: 58.55 kB / 480.1 MB, free: 8.965 MB / 350.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.0006942/0.2856, allocations: 1.018 MB / 481.1 MB, free: 8.125 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003576/0.286, allocations: 268.7 kB / 481.4 MB, free: 7.969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.286, allocations: 1.125 kB / 481.4 MB, free: 7.969 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.2861, allocations: 159.1 kB / 481.5 MB, free: 7.855 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003066/0.2864, allocations: 33.53 kB / 481.5 MB, free: 7.836 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002583/0.289, allocations: 2.846 MB / 484.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001818/0.2892, allocations: 0.7639 MB / 485.2 MB, free: 4.957 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001031/0.2893, allocations: 34.94 kB / 485.2 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.548e-05/0.2894, allocations: 79 kB / 485.3 MB, free: 4.871 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2894, allocations: 1.219 kB / 485.3 MB, free: 4.871 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02721/0.3167, allocations: 4.753 MB / 490 MB, free: 2.594 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.529/8.846, allocations: 5.188 kB / 490 MB, free: 2.594 MB / 350.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)