Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.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.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/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.TestLeadLagWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter",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.0007546/0.0007546, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.000861/0.0008612, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.545/1.545, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05788/0.05788, allocations: 14.17 MB / 284.6 MB, free: 7.129 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.0005259/0.000526, allocations: 16 kB / 348.3 MB, free: 17.76 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1018, allocations: 51.12 MB / 399.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter): time 0.002392/0.1042, allocations: 1.739 MB / 401.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001677/0.1059, allocations: 0.8195 MB / 401.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002477/0.1062, allocations: 11.94 kB / 402 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000221/0.1064, allocations: 43.75 kB / 402 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002817/0.1067, allocations: 67.64 kB / 402.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005862/0.1073, allocations: 175.7 kB / 402.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003639/0.1077, allocations: 267.2 kB / 402.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001753/0.1079, allocations: 78.11 kB / 402.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.1081, allocations: 91.56 kB / 402.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001841/0.1083, allocations: 119.4 kB / 402.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.182e-05/0.1083, allocations: 12 kB / 402.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001334/0.1084, allocations: 75.92 kB / 402.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.645e-05/0.1085, allocations: 43.78 kB / 402.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.355e-05/0.1086, allocations: 73.5 kB / 403 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002502/0.1089, allocations: 239.5 kB / 403.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1089, allocations: 0 / 403.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.11e-07/0.1089, allocations: 0 / 403.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.744e-06/0.1089, allocations: 0 / 403.2 MB, free: 10.75 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0007998/0.1097, allocations: 0.5818 MB / 403.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.1097, allocations: 15.95 kB / 403.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.16e-05/0.1098, allocations: 62.47 kB / 403.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.783e-05/0.1099, allocations: 31.62 kB / 403.9 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003696/0.1103, allocations: 306.3 kB / 404.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.1103, allocations: 23.95 kB / 404.2 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.928e-05/0.1104, allocations: 16 kB / 404.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005539/0.1109, allocations: 300 kB / 404.5 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1109, allocations: 0 / 404.5 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.404e-05/0.111, allocations: 8 kB / 404.5 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.111, allocations: 4 kB / 404.6 MB, free: 9.277 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004618/0.1114, allocations: 208.5 kB / 404.8 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001207/0.1127, allocations: 1.002 MB / 405.8 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006442/0.1133, allocations: 285 kB / 406 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002582/0.1136, allocations: 141.7 kB / 406.2 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.1136, allocations: 3.984 kB / 406.2 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003993/0.114, allocations: 215.3 kB / 406.4 MB, free: 7.324 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.423e-06/0.1141, allocations: 0 / 406.4 MB, free: 7.324 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0009088/0.115, allocations: 445.9 kB / 406.8 MB, free: 6.879 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.59e-05/0.1151, allocations: 162.2 kB / 407 MB, free: 6.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002616/0.1153, allocations: 275 kB / 407.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.672e-05/0.1154, allocations: 29.7 kB / 407.3 MB, free: 6.367 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.1155, allocations: 172.2 kB / 407.4 MB, free: 6.195 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.326e-05/0.1156, allocations: 70.89 kB / 407.5 MB, free: 6.125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.373e-05/0.1156, allocations: 7.938 kB / 407.5 MB, free: 6.117 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1157, allocations: 342.8 kB / 407.9 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002214/0.1159, allocations: 99.94 kB / 408 MB, free: 5.676 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002887/0.1162, allocations: 195.2 kB / 408.1 MB, free: 5.449 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002642/0.1165, allocations: 149.7 kB / 408.3 MB, free: 5.297 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1165, allocations: 0 / 408.3 MB, free: 5.297 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001241/0.1178, allocations: 0.5978 MB / 408.9 MB, free: 4.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001207/0.1179, allocations: 163.1 kB / 409.1 MB, free: 4.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1179, allocations: 0 / 409.1 MB, free: 4.492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004605/0.1184, allocations: 149.6 kB / 409.2 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001469/0.1185, allocations: 35.97 kB / 409.2 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004049/0.1226, allocations: 3.601 MB / 412.8 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002065/0.1228, allocations: 43.72 kB / 412.9 MB, free: 400 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.1229, allocations: 8 kB / 412.9 MB, free: 392 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.053e-06/0.1229, allocations: 4 kB / 412.9 MB, free: 388 kB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000579/0.1235, allocations: 359 kB / 413.2 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.1235, allocations: 4.094 kB / 413.2 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001735/0.1237, allocations: 81.81 kB / 413.3 MB, free: 15.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.1238, allocations: 27.92 kB / 413.3 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002067/0.1259, allocations: 2.993 MB / 416.3 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001606/0.1261, allocations: 27.83 kB / 416.4 MB, free: 12.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.836e-05/0.1261, allocations: 8 kB / 416.4 MB, free: 12.6 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,$PRE.inputSignal.nextEvent,inputSignal.nextEvent,inputSignal.nextEventScaled,leadLagNegativeGain.integ_fb.local_reset,leadLagPositiveGain.integ_fb.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002136/0.1263, allocations: 258.8 kB / 416.6 MB, free: 12.33 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.726e-05/0.1264, allocations: 31.62 kB / 416.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.558e-05/0.1264, allocations: 30.17 kB / 416.7 MB, free: 12.28 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.1264, allocations: 8 kB / 416.7 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.1264, allocations: 4 kB / 416.7 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.1264, allocations: 4.078 kB / 416.7 MB, free: 12.26 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000298/0.1267, allocations: 337.3 kB / 417 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.1268, allocations: 7.891 kB / 417 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002116/0.127, allocations: 43.97 kB / 417.1 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.614e-06/0.127, allocations: 0 / 417.1 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/0.127, allocations: 8 kB / 417.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.127, allocations: 0 / 417.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.127, allocations: 4 kB / 417.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008818/0.1279, allocations: 0.5308 MB / 417.6 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.54e-05/0.128, allocations: 104.8 kB / 417.7 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.395e-05/0.1281, allocations: 12.11 kB / 417.7 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001661/0.1282, allocations: 28.05 kB / 417.8 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.559e-05/0.1283, allocations: 15.98 kB / 417.8 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-05/0.1283, allocations: 7.984 kB / 417.8 MB, free: 11.08 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001845/0.1285, allocations: 194 kB / 418 MB, free: 10.89 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1285, allocations: 0 / 418 MB, free: 10.89 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006161/0.1291, allocations: 127.7 kB / 418.1 MB, free: 10.77 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (leadLagPositiveGain.integ_fb.y,leadLagNegativeGain.integ_fb.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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001285/0.1304, allocations: 1.099 MB / 419.2 MB, free: 9.625 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001691/0.1321, allocations: 1.138 MB / 420.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.1322, allocations: 0 / 420.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003224/0.1325, allocations: 215.2 kB / 420.6 MB, free: 8.188 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003424/0.1328, allocations: 56.17 kB / 420.6 MB, free: 8.133 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003748/0.1366, allocations: 2.133 MB / 422.7 MB, free: 5.934 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/0.137, allocations: 0.7716 MB / 423.5 MB, free: 5.137 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001348/0.1371, allocations: 25.94 kB / 423.5 MB, free: 5.109 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.1372, allocations: 83.41 kB / 423.6 MB, free: 5.027 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1372, allocations: 0 / 423.6 MB, free: 5.027 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1787/0.3159, allocations: 7.125 MB / 430.7 MB, free: 35.83 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00015/0.3161, allocations: 228.7 kB / 431 MB, free: 35.59 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.753/2.069, allocations: 1.125 kB / 431 MB, free: 35.59 MB / 318.1 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter.fmu > PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe 2>&1) Environment - environmentSimulation: