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.001774/0.001774, allocations: 108 kB / 15.61 MB, free: 152 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.001966/0.001966, allocations: 196.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.233/3.233, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08776/0.08776, allocations: 10.74 MB / 280.5 MB, free: 10.5 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.002826/0.002826, allocations: 63.91 kB / 340.7 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1558, allocations: 49.01 MB / 389.7 MB, free: 6.148 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestAntiWindupBlocks): time 0.006061/0.1619, allocations: 1.912 MB / 391.6 MB, free: 4.211 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002943/0.165, allocations: 0.7879 MB / 392.4 MB, free: 3.418 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005818/0.1657, allocations: 15.88 kB / 392.4 MB, free: 3.402 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005153/0.1663, allocations: 63.55 kB / 392.4 MB, free: 3.34 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004329/0.1667, allocations: 51.64 kB / 392.5 MB, free: 3.289 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001571/0.1683, allocations: 195.6 kB / 392.7 MB, free: 3.098 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009408/0.1693, allocations: 279.3 kB / 393 MB, free: 2.824 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000336/0.1697, allocations: 44.73 kB / 393 MB, free: 2.785 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003853/0.1701, allocations: 119.5 kB / 393.1 MB, free: 2.668 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005466/0.1706, allocations: 123.5 kB / 393.2 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001659/0.1708, allocations: 16 kB / 393.3 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005069/0.1713, allocations: 83.92 kB / 393.3 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002565/0.1716, allocations: 55.77 kB / 393.4 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003685/0.172, allocations: 107.3 kB / 393.5 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001015/0.173, allocations: 279.2 kB / 393.8 MB, free: 2.016 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.541e-05/0.1731, allocations: 0 / 393.8 MB, free: 2.016 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.67e-06/0.1731, allocations: 0 / 393.8 MB, free: 2.016 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.549e-05/0.1732, allocations: 0 / 393.8 MB, free: 2.016 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002295/0.1755, allocations: 0.5977 MB / 394.4 MB, free: 1.363 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001054/0.1756, allocations: 15.89 kB / 394.4 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001359/0.1757, allocations: 50.73 kB / 394.4 MB, free: 1.289 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001723/0.1759, allocations: 36.56 kB / 394.5 MB, free: 1.254 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00089/0.1768, allocations: 323.3 kB / 394.8 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002561/0.1771, allocations: 157.4 kB / 394.9 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.85e-05/0.1772, allocations: 23.94 kB / 395 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007013/0.1779, allocations: 220.5 kB / 395.2 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.948e-05/0.178, allocations: 0 / 395.2 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.732e-05/0.178, allocations: 7.938 kB / 395.2 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.1781, allocations: 4 kB / 395.2 MB, free: 460 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003498/0.1784, allocations: 119.7 kB / 395.3 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002203/0.1806, allocations: 0.7417 MB / 396 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004943/0.1812, allocations: 110.5 kB / 396.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/0.1814, allocations: 68.83 kB / 396.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.319e-05/0.1814, allocations: 0 / 396.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004718/0.1819, allocations: 144.9 kB / 396.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 5.14e-06/0.1819, allocations: 0 / 396.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008174/0.1828, allocations: 302.9 kB / 396.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.1829, allocations: 81.11 kB / 396.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004859/0.1834, allocations: 279.3 kB / 397 MB, free: 14.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.865e-05/0.1835, allocations: 33.69 kB / 397 MB, free: 14.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002557/0.1837, allocations: 180 kB / 397.2 MB, free: 14.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.554e-05/0.1838, allocations: 51.27 kB / 397.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.184, allocations: 61.92 kB / 397.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002816/0.1843, allocations: 342.8 kB / 397.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/0.1845, allocations: 60.48 kB / 397.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003418/0.1848, allocations: 153.3 kB / 397.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005837/0.1854, allocations: 286.3 kB / 398.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1854, allocations: 3.938 kB / 398.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008101/0.1863, allocations: 338.6 kB / 398.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.257e-05/0.1864, allocations: 41.69 kB / 398.5 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.1864, allocations: 4 kB / 398.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.987e-05/0.1864, allocations: 4 kB / 398.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003643/0.1868, allocations: 55.91 kB / 398.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.118e-05/0.1868, allocations: 7.984 kB / 398.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002455/0.1871, allocations: 32.09 kB / 398.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.778e-05/0.1871, allocations: 15.98 kB / 398.6 MB, free: 12.73 MB / 302.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.0003328/0.1875, allocations: 179.5 kB / 398.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.905e-05/0.1876, allocations: 27.62 kB / 398.8 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.524e-05/0.1877, allocations: 34.23 kB / 398.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.1877, allocations: 7.984 kB / 398.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.1877, allocations: 0 / 398.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.1877, allocations: 3.938 kB / 398.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001342/0.1891, allocations: 0.6335 MB / 399.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.1891, allocations: 0 / 399.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003559/0.1894, allocations: 35.92 kB / 399.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.1895, allocations: 0 / 399.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.596e-05/0.1895, allocations: 7.938 kB / 399.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.534e-06/0.1895, allocations: 3.984 kB / 399.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.1895, allocations: 4 kB / 399.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008931/0.1904, allocations: 453.6 kB / 400 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.1906, allocations: 104.8 kB / 400.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.514e-05/0.1906, allocations: 7.984 kB / 400.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.1908, allocations: 4 kB / 400.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.555e-05/0.1909, allocations: 8 kB / 400.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.431e-05/0.1909, allocations: 7.984 kB / 400.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002829/0.1912, allocations: 190 kB / 400.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1912, allocations: 4 kB / 400.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006581/0.1919, allocations: 59.84 kB / 400.4 MB, free: 10.85 MB / 302.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.00155/0.1935, allocations: 1.031 MB / 401.4 MB, free: 9.785 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007514/0.1942, allocations: 271.1 kB / 401.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.1943, allocations: 0 / 401.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002498/0.1945, allocations: 147.4 kB / 401.8 MB, free: 9.352 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006174/0.1951, allocations: 24.66 kB / 401.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006037/0.2012, allocations: 2.838 MB / 404.7 MB, free: 6.328 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005682/0.2018, allocations: 0.7675 MB / 405.5 MB, free: 5.535 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001983/0.2021, allocations: 26.28 kB / 405.5 MB, free: 5.512 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/0.2022, allocations: 79.42 kB / 405.6 MB, free: 5.434 MB / 302.1 MB Notification: Performance of SimCode: time 5.68e-06/0.2022, allocations: 0 / 405.6 MB, free: 5.434 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07873/0.281, allocations: 4.68 MB / 410.2 MB, free: 0.832 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.84/14.12, allocations: 11.95 kB / 410.3 MB, free: 0.8203 MB / 302.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)