Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.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/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter",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.0009782/0.0009782, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0009355/0.0009359, allocations: 194 kB / 16.14 MB, free: 6.703 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.136/1.136, allocations: 205.1 MB / 222 MB, free: 4.773 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05632/0.05632, allocations: 14.17 MB / 283.5 MB, free: 7.309 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.001242/0.001242, allocations: 63.91 kB / 346.5 MB, free: 17.71 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06753/0.06878, allocations: 50.13 MB / 396.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter): time 0.00294/0.07176, allocations: 2.225 MB / 398.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00137/0.07315, allocations: 0.9321 MB / 399.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001468/0.07331, allocations: 11.88 kB / 399.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000207/0.07354, allocations: 51.69 kB / 399.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001322/0.07368, allocations: 71.66 kB / 400 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005715/0.07426, allocations: 239.2 kB / 400.2 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003155/0.07459, allocations: 331.1 kB / 400.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001818/0.07477, allocations: 107.4 kB / 400.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001398/0.07492, allocations: 119.5 kB / 400.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001795/0.07511, allocations: 143.2 kB / 400.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.127e-05/0.07516, allocations: 16 kB / 400.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.0753, allocations: 87.91 kB / 401 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.835e-05/0.07538, allocations: 55.77 kB / 401 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.07551, allocations: 131.1 kB / 401.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003198/0.07583, allocations: 338.9 kB / 401.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.07584, allocations: 4 kB / 401.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.07585, allocations: 0 / 401.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.07586, allocations: 0 / 401.5 MB, free: 10.7 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0008225/0.07669, allocations: 0.6441 MB / 402.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.07673, allocations: 8.031 kB / 402.1 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.24e-05/0.07678, allocations: 54.73 kB / 402.2 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.382e-05/0.07685, allocations: 36.47 kB / 402.2 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003443/0.0772, allocations: 335.2 kB / 402.6 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.07723, allocations: 12.38 kB / 402.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.816e-05/0.07727, allocations: 20.38 kB / 402.6 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005563/0.07783, allocations: 304.5 kB / 402.9 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.07785, allocations: 0 / 402.9 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.434e-05/0.07788, allocations: 8 kB / 402.9 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.07789, allocations: 4 kB / 402.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005637/0.07846, allocations: 216.4 kB / 403.1 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.07961, allocations: 0.8406 MB / 404 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009182/0.08054, allocations: 327.7 kB / 404.3 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003075/0.08086, allocations: 150.5 kB / 404.4 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.0809, allocations: 4 kB / 404.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004334/0.08134, allocations: 227.5 kB / 404.6 MB, free: 7.285 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.222e-06/0.08135, allocations: 0 / 404.6 MB, free: 7.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001051/0.08241, allocations: 474.8 kB / 405.1 MB, free: 6.809 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.232e-05/0.08252, allocations: 217.6 kB / 405.3 MB, free: 6.547 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002477/0.08277, allocations: 279 kB / 405.6 MB, free: 6.258 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.08281, allocations: 33.7 kB / 405.6 MB, free: 6.219 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.08292, allocations: 172.4 kB / 405.8 MB, free: 6.047 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.252e-05/0.08298, allocations: 63.02 kB / 405.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.385e-05/0.08307, allocations: 49.69 kB / 405.9 MB, free: 5.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.08319, allocations: 342.8 kB / 406.2 MB, free: 5.586 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002903/0.08348, allocations: 120.8 kB / 406.4 MB, free: 5.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003292/0.08382, allocations: 188.7 kB / 406.5 MB, free: 5.254 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000581/0.08441, allocations: 302.7 kB / 406.8 MB, free: 4.934 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.08442, allocations: 0 / 406.8 MB, free: 4.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007308/0.08516, allocations: 386.8 kB / 407.2 MB, free: 4.543 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.652e-05/0.0852, allocations: 41.69 kB / 407.3 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.08521, allocations: 0 / 407.3 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.08523, allocations: 0 / 407.3 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002244/0.08546, allocations: 47.91 kB / 407.3 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.545e-06/0.08547, allocations: 4 kB / 407.3 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002115/0.08569, allocations: 39.88 kB / 407.3 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.08572, allocations: 15.92 kB / 407.4 MB, free: 4.391 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002627/0.08599, allocations: 184.1 kB / 407.5 MB, free: 4.207 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002165/0.08621, allocations: 139.8 kB / 407.7 MB, free: 4.043 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003597/0.08658, allocations: 250.7 kB / 407.9 MB, free: 3.773 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.815e-06/0.08659, allocations: 4 kB / 407.9 MB, free: 3.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0005151/0.08711, allocations: 314.7 kB / 408.2 MB, free: 3.449 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.809e-05/0.08715, allocations: 40.2 kB / 408.3 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.08716, allocations: 0 / 408.3 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.62e-06/0.08717, allocations: 7.938 kB / 408.3 MB, free: 3.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.08731, allocations: 35.97 kB / 408.3 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.845e-06/0.08732, allocations: 0 / 408.3 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002032/0.08753, allocations: 31.83 kB / 408.3 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.353e-05/0.08755, allocations: 8.094 kB / 408.4 MB, free: 3.324 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 (inputSignal.nextEventScaled,inputSignal.nextEvent,$PRE.inputSignal.nextEvent,inputSignal.last,inputSignal.b,inputSignal.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * 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.0001417/0.0877, allocations: 245.7 kB / 408.6 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.544e-05/0.08775, allocations: 27.72 kB / 408.6 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.125e-05/0.08782, allocations: 30.3 kB / 408.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.08783, allocations: 4 kB / 408.7 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.08784, allocations: 0 / 408.7 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.08784, allocations: 4 kB / 408.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003084/0.08816, allocations: 349.2 kB / 409 MB, free: 2.613 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.08817, allocations: 0 / 409 MB, free: 2.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002171/0.08839, allocations: 43.91 kB / 409 MB, free: 2.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.0884, allocations: 7.938 kB / 409.1 MB, free: 2.562 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.08843, allocations: 11.98 kB / 409.1 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.08844, allocations: 0 / 409.1 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.08845, allocations: 7.984 kB / 409.1 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.08953, allocations: 0.547 MB / 409.6 MB, free: 1.969 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.478e-05/0.0896, allocations: 108.8 kB / 409.7 MB, free: 1.844 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.905e-05/0.08966, allocations: 12 kB / 409.7 MB, free: 1.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001974/0.08986, allocations: 31.97 kB / 409.8 MB, free: 1.801 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.699e-05/0.08993, allocations: 19.91 kB / 409.8 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.272e-05/0.08995, allocations: 8 kB / 409.8 MB, free: 1.773 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001862/0.09015, allocations: 202 kB / 410 MB, free: 1.578 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09016, allocations: 0 / 410 MB, free: 1.578 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000396/0.09056, allocations: 111.7 kB / 410.1 MB, free: 1.469 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (PIController.firstOrder.y,PIControllerNegativeKp.firstOrder.y) * Number of discrete variables: 6 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,inputSignal.nextEvent,inputSignal.nextEventScaled) * Number of discrete states: 6 (inputSignal.nextEvent,inputSignal.last,inputSignal.nextEventScaled,inputSignal.b,inputSignal.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * 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.001374/0.09194, allocations: 1.123 MB / 411.2 MB, free: 308 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000966/0.09292, allocations: 0.5415 MB / 411.8 MB, free: 15.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.09293, allocations: 0 / 411.8 MB, free: 15.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003557/0.0933, allocations: 219.7 kB / 412 MB, free: 15.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003791/0.09368, allocations: 64.47 kB / 412 MB, free: 15.44 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004239/0.09793, allocations: 3.213 MB / 415.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.09824, allocations: 0.7713 MB / 416 MB, free: 11.32 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001654/0.09842, allocations: 33.92 kB / 416.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.09856, allocations: 95.41 kB / 416.2 MB, free: 11.2 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.09857, allocations: 4 kB / 416.2 MB, free: 11.19 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0164/0.115, allocations: 6.654 MB / 422.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001929/0.1152, allocations: 194.8 kB / 423 MB, free: 4.324 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.645/1.76, allocations: 2.953 kB / 423 MB, free: 4.324 MB / 318.1 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter_res.mat --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter.fmu > PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe 2>&1)