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.006585/0.006585, allocations: 96.8 kB / 15.73 MB, free: 6.484 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.001349/0.001349, allocations: 192.3 kB / 16.67 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 1.564/1.564, 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.06413/0.06413, allocations: 10.74 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.002168/0.002168, allocations: 63.91 kB / 390.3 MB, free: 5.535 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3077, allocations: 49.02 MB / 439.4 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestAntiWindupBlocks): time 0.00527/0.3129, allocations: 1.908 MB / 441.3 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002606/0.3155, allocations: 0.8003 MB / 442.1 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003019/0.3158, allocations: 15.28 kB / 442.1 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002954/0.3161, allocations: 55.14 kB / 442.1 MB, free: 3.152 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002477/0.3164, allocations: 60.19 kB / 442.2 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001114/0.3175, allocations: 197 kB / 442.4 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006439/0.3181, allocations: 284 kB / 442.7 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.3183, allocations: 26.56 kB / 442.7 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002634/0.3186, allocations: 117.9 kB / 442.8 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003425/0.3189, allocations: 122.8 kB / 442.9 MB, free: 2.781 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.394e-05/0.319, allocations: 16.03 kB / 443 MB, free: 2.781 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002527/0.3192, allocations: 93.06 kB / 443 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.3193, allocations: 55.55 kB / 443.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001629/0.3195, allocations: 104.9 kB / 443.2 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006181/0.3201, allocations: 274.7 kB / 443.5 MB, free: 2.539 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.3201, allocations: 6.234 kB / 443.5 MB, free: 2.535 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3201, allocations: 0 / 443.5 MB, free: 2.535 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.38e-05/0.3202, allocations: 0 / 443.5 MB, free: 2.535 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.001436/0.3216, allocations: 0.6082 MB / 444.1 MB, free: 1.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.413e-05/0.3217, allocations: 14.11 kB / 444.1 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.914e-05/0.3218, allocations: 53.98 kB / 444.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.3219, allocations: 43.28 kB / 444.2 MB, free: 1.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.3229, allocations: 363.7 kB / 444.5 MB, free: 1.637 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001789/0.3231, allocations: 153.3 kB / 444.7 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.2e-05/0.3232, allocations: 26.09 kB / 444.7 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006761/0.3239, allocations: 222.8 kB / 444.9 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.3239, allocations: 4 kB / 444.9 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.675e-05/0.3239, allocations: 6.469 kB / 444.9 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.324, allocations: 3.875 kB / 445 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003849/0.3243, allocations: 117.1 kB / 445.1 MB, free: 1.301 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.3262, allocations: 0.7242 MB / 445.8 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003747/0.3266, allocations: 107.2 kB / 445.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001788/0.3268, allocations: 61.62 kB / 446 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.3268, allocations: 0 / 446 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003385/0.3271, allocations: 147 kB / 446.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 2.174e-06/0.3271, allocations: 0 / 446.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008502/0.328, allocations: 298.3 kB / 446.4 MB, free: 476 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.971e-05/0.328, allocations: 82.58 kB / 446.5 MB, free: 380 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004811/0.3285, allocations: 275.3 kB / 446.7 MB, free: 224 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.3285, allocations: 31.11 kB / 446.8 MB, free: 188 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.3287, allocations: 183.6 kB / 446.9 MB, free: 28 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.3288, allocations: 59.92 kB / 447 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.329, allocations: 62.52 kB / 447.1 MB, free: 15.94 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002608/0.3292, allocations: 338.9 kB / 447.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001974/0.3294, allocations: 62.27 kB / 447.5 MB, free: 15.6 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003231/0.3298, allocations: 153.5 kB / 447.6 MB, free: 15.47 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006382/0.3304, allocations: 275.1 kB / 447.9 MB, free: 15.24 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/0.3304, allocations: 5 kB / 447.9 MB, free: 15.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009946/0.3314, allocations: 344.8 kB / 448.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.319e-05/0.3315, allocations: 40.62 kB / 448.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/0.3315, allocations: 2.531 kB / 448.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.975e-05/0.3315, allocations: 4.625 kB / 448.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004768/0.332, allocations: 51.2 kB / 448.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.902e-05/0.332, allocations: 5.781 kB / 448.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003121/0.3324, allocations: 37.47 kB / 448.4 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.458e-05/0.3324, allocations: 11.12 kB / 448.4 MB, free: 15 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.0004259/0.3328, allocations: 183.5 kB / 448.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.3329, allocations: 30.06 kB / 448.6 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001211/0.3331, allocations: 30.61 kB / 448.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.3331, allocations: 5.297 kB / 448.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.3331, allocations: 0 / 448.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.3331, allocations: 6.516 kB / 448.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001821/0.3349, allocations: 0.6367 MB / 449.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3349, allocations: 0 / 449.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004932/0.3354, allocations: 37.31 kB / 449.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.119e-05/0.3354, allocations: 1.219 kB / 449.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.938e-05/0.3355, allocations: 8.859 kB / 449.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.775e-06/0.3355, allocations: 5.125 kB / 449.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.3355, allocations: 1.281 kB / 449.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/0.3368, allocations: 464.4 kB / 449.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001802/0.3369, allocations: 104.1 kB / 449.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.056e-05/0.337, allocations: 4.062 kB / 449.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.3372, allocations: 11.73 kB / 449.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.887e-05/0.3373, allocations: 13.92 kB / 449.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.245e-05/0.3374, allocations: 4.188 kB / 449.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003907/0.3378, allocations: 197.9 kB / 450.1 MB, free: 13.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3378, allocations: 0 / 450.1 MB, free: 13.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007086/0.3385, allocations: 58.72 kB / 450.1 MB, free: 13.79 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.001792/0.3403, allocations: 1.019 MB / 451.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007591/0.341, allocations: 224.8 kB / 451.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.341, allocations: 0 / 451.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003089/0.3414, allocations: 132.4 kB / 451.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005872/0.3419, allocations: 22.41 kB / 451.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006358/0.3483, allocations: 2.862 MB / 454.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006284/0.3489, allocations: 0.7677 MB / 455.2 MB, free: 9.805 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001977/0.3491, allocations: 26.88 kB / 455.2 MB, free: 9.793 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001865/0.3493, allocations: 83.06 kB / 455.3 MB, free: 9.723 MB / 334.1 MB Notification: Performance of SimCode: time 1.123e-06/0.3493, allocations: 4 kB / 455.3 MB, free: 9.719 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04272/0.392, allocations: 4.773 MB / 460.1 MB, free: 7.312 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.371/8.763, allocations: 4.969 kB / 460.1 MB, free: 7.309 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)