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.001234/0.001234, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001257/0.001257, allocations: 177.3 kB / 15.94 MB, free: 228 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.662/1.662, allocations: 205.4 MB / 222.1 MB, free: 5.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.0598/0.0598, allocations: 14.16 MB / 284.5 MB, free: 7.027 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.0005251/0.0005252, allocations: 12 kB / 348.2 MB, free: 17.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.113, allocations: 51.11 MB / 399.3 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter): time 0.002301/0.1153, allocations: 1.741 MB / 401.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.1166, allocations: 0.8118 MB / 401.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.1168, allocations: 7.938 kB / 401.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.1169, allocations: 43.75 kB / 401.9 MB, free: 12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002124/0.1171, allocations: 75.75 kB / 402 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004563/0.1176, allocations: 166.5 kB / 402.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002714/0.1179, allocations: 183.6 kB / 402.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001608/0.118, allocations: 82.11 kB / 402.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000116/0.1182, allocations: 95.61 kB / 402.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001697/0.1183, allocations: 115.4 kB / 402.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.507e-05/0.1184, allocations: 8 kB / 402.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001344/0.1185, allocations: 67.94 kB / 402.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.049e-05/0.1186, allocations: 47.77 kB / 402.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.95e-05/0.1187, allocations: 65.58 kB / 402.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000253/0.1189, allocations: 243.4 kB / 403.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1189, allocations: 0 / 403.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1189, allocations: 0 / 403.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.119, allocations: 4 kB / 403.1 MB, free: 10.87 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.0008494/0.1198, allocations: 0.5818 MB / 403.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.1199, allocations: 15.95 kB / 403.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.712e-05/0.1199, allocations: 54.55 kB / 403.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.794e-05/0.12, allocations: 31.62 kB / 403.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003842/0.1204, allocations: 314.3 kB / 404.1 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.1204, allocations: 15.95 kB / 404.1 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.801e-05/0.1205, allocations: 24 kB / 404.1 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005242/0.121, allocations: 296 kB / 404.4 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.121, allocations: 0 / 404.4 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.54e-05/0.121, allocations: 12 kB / 404.4 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.1211, allocations: 4 kB / 404.4 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004751/0.1215, allocations: 204.5 kB / 404.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.1228, allocations: 1.002 MB / 405.6 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006686/0.1234, allocations: 289.1 kB / 405.9 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.1235, allocations: 0 / 405.9 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004168/0.1239, allocations: 219.2 kB / 406.1 MB, free: 7.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.262e-06/0.1239, allocations: 0 / 406.1 MB, free: 7.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001048/0.125, allocations: 0.5107 MB / 406.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.1251, allocations: 162.2 kB / 406.8 MB, free: 6.855 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003024/0.1254, allocations: 274.7 kB / 407 MB, free: 6.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.299e-05/0.1254, allocations: 33.7 kB / 407.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/0.1256, allocations: 164.4 kB / 407.2 MB, free: 6.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.852e-05/0.1257, allocations: 74.92 kB / 407.3 MB, free: 6.297 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.298e-05/0.1257, allocations: 4 kB / 407.3 MB, free: 6.293 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1258, allocations: 342.9 kB / 407.6 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002707/0.1261, allocations: 103.9 kB / 407.7 MB, free: 5.848 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003143/0.1264, allocations: 194.2 kB / 407.9 MB, free: 5.621 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002815/0.1267, allocations: 141.7 kB / 408.1 MB, free: 5.477 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.1268, allocations: 7.938 kB / 408.1 MB, free: 5.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001373/0.1281, allocations: 0.5861 MB / 408.7 MB, free: 4.863 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003126/0.1285, allocations: 0.5623 MB / 409.2 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.1285, allocations: 3.938 kB / 409.2 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004977/0.129, allocations: 153.6 kB / 409.4 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001509/0.1291, allocations: 23.98 kB / 409.4 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004579/0.1337, allocations: 3.656 MB / 413.1 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002333/0.134, allocations: 47.69 kB / 413.1 MB, free: 100 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.161e-05/0.134, allocations: 16 kB / 413.1 MB, free: 84 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.057e-06/0.134, allocations: 4 kB / 413.1 MB, free: 80 kB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006387/0.1347, allocations: 354.9 kB / 413.5 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.1347, allocations: 4 kB / 413.5 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001588/0.1349, allocations: 77.83 kB / 413.6 MB, free: 15.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/0.135, allocations: 31.91 kB / 413.6 MB, free: 15.6 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00247/0.1375, allocations: 3.009 MB / 416.6 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001727/0.1377, allocations: 27.83 kB / 416.6 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.1377, allocations: 12 kB / 416.6 MB, free: 12.29 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.0003069/0.138, allocations: 259.2 kB / 416.9 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.563e-05/0.1381, allocations: 39.58 kB / 416.9 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.39e-05/0.1381, allocations: 30.17 kB / 417 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.1381, allocations: 7.984 kB / 417 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-06/0.1382, allocations: 0 / 417 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.1382, allocations: 0 / 417 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003136/0.1385, allocations: 329.3 kB / 417.3 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1385, allocations: 0 / 417.3 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002355/0.1387, allocations: 47.95 kB / 417.3 MB, free: 11.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.1388, allocations: 4 kB / 417.3 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.232e-05/0.1388, allocations: 11.95 kB / 417.3 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1388, allocations: 0 / 417.3 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.1388, allocations: 0 / 417.3 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009536/0.1398, allocations: 0.548 MB / 417.9 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.387e-05/0.1398, allocations: 100.8 kB / 418 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.288e-05/0.1399, allocations: 11.95 kB / 418 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.1401, allocations: 27.97 kB / 418 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.009e-05/0.1401, allocations: 11.98 kB / 418 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.271e-05/0.1402, allocations: 8 kB / 418.1 MB, free: 10.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001872/0.1404, allocations: 202 kB / 418.3 MB, free: 10.56 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1404, allocations: 0 / 418.3 MB, free: 10.56 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006254/0.141, allocations: 127.7 kB / 418.4 MB, free: 10.43 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.001412/0.1424, allocations: 1.181 MB / 419.6 MB, free: 9.211 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.1442, allocations: 1.138 MB / 420.7 MB, free: 7.996 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1442, allocations: 0 / 420.7 MB, free: 7.996 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003305/0.1445, allocations: 219.6 kB / 420.9 MB, free: 7.77 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003024/0.1449, allocations: 45.62 kB / 421 MB, free: 7.723 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004217/0.1491, allocations: 2.872 MB / 423.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003921/0.1495, allocations: 0.7794 MB / 424.6 MB, free: 3.977 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001359/0.1496, allocations: 25.94 kB / 424.6 MB, free: 3.949 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.1498, allocations: 87.41 kB / 424.7 MB, free: 3.863 MB / 318.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1498, allocations: 0 / 424.7 MB, free: 3.863 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.194/0.3438, allocations: 7.094 MB / 431.8 MB, free: 36.15 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001722/0.344, allocations: 216 kB / 432 MB, free: 35.91 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.769/2.113, allocations: 0 / 432 MB, free: 35.91 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: