Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.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.TestFirstOrderWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestFirstOrderWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestFirstOrderWithNonWindupLimiter",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.0007088/0.0007088, allocations: 90.75 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.0007984/0.0007983, 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.492/1.492, allocations: 205.4 MB / 222.1 MB, free: 5.469 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.0599/0.0599, allocations: 14.16 MB / 284.6 MB, free: 7.008 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.0005082/0.0005083, allocations: 12 kB / 348.3 MB, free: 17.76 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09924/0.09976, allocations: 51.12 MB / 399.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter): time 0.002028/0.1018, allocations: 1.688 MB / 401.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.103, allocations: 0.8118 MB / 401.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.1031, allocations: 7.938 kB / 401.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001628/0.1033, allocations: 35.83 kB / 401.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001664/0.1035, allocations: 71.59 kB / 402 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004276/0.1039, allocations: 175.2 kB / 402.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002518/0.1042, allocations: 255.3 kB / 402.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.1043, allocations: 60.69 kB / 402.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.1044, allocations: 91.62 kB / 402.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001619/0.1046, allocations: 123.4 kB / 402.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.931e-05/0.1046, allocations: 12 kB / 402.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001304/0.1048, allocations: 71.92 kB / 402.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.105e-05/0.1048, allocations: 47.77 kB / 402.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.855e-05/0.1049, allocations: 65.58 kB / 402.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.1052, allocations: 231.5 kB / 403.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1052, allocations: 0 / 403.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.1052, allocations: 0 / 403.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.1052, allocations: 7.875 kB / 403.1 MB, free: 10.84 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0007669/0.106, allocations: 0.578 MB / 403.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.106, allocations: 12.02 kB / 403.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.521e-05/0.1061, allocations: 54.55 kB / 403.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.88e-05/0.1061, allocations: 31.62 kB / 403.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003431/0.1065, allocations: 302.3 kB / 404.1 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.1065, allocations: 19.98 kB / 404.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.874e-05/0.1066, allocations: 19.91 kB / 404.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005767/0.1071, allocations: 313.3 kB / 404.4 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.1072, allocations: 4 kB / 404.4 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.454e-05/0.1072, allocations: 8 kB / 404.4 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.497e-06/0.1072, allocations: 4 kB / 404.4 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005991/0.1078, allocations: 260.3 kB / 404.7 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.1089, allocations: 0.9905 MB / 405.7 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007753/0.1097, allocations: 337 kB / 406 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003277/0.1101, allocations: 169.7 kB / 406.2 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.764e-05/0.1101, allocations: 3.984 kB / 406.2 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000485/0.1106, allocations: 255.1 kB / 406.4 MB, free: 7.266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 7.173e-06/0.1106, allocations: 4 kB / 406.4 MB, free: 7.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001138/0.1118, allocations: 0.5136 MB / 407 MB, free: 6.738 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.557e-05/0.1119, allocations: 174.1 kB / 407.1 MB, free: 6.531 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002333/0.1121, allocations: 254.6 kB / 407.4 MB, free: 6.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.1121, allocations: 33.7 kB / 407.4 MB, free: 6.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.1122, allocations: 164.4 kB / 407.6 MB, free: 6.066 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.626e-05/0.1123, allocations: 67 kB / 407.6 MB, free: 6 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.691e-05/0.1123, allocations: 8 kB / 407.6 MB, free: 5.992 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1125, allocations: 338.9 kB / 408 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003131/0.1128, allocations: 135.9 kB / 408.1 MB, free: 5.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003706/0.1132, allocations: 212.5 kB / 408.3 MB, free: 5.281 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003353/0.1135, allocations: 177.6 kB / 408.5 MB, free: 5.102 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.1135, allocations: 0 / 408.5 MB, free: 5.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001757/0.1153, allocations: 0.7812 MB / 409.3 MB, free: 4.301 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/0.1154, allocations: 163.1 kB / 409.4 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.1154, allocations: 0 / 409.4 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005459/0.116, allocations: 197.6 kB / 409.6 MB, free: 3.914 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001884/0.1162, allocations: 35.91 kB / 409.7 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004841/0.121, allocations: 3.823 MB / 413.5 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.1213, allocations: 51.8 kB / 413.5 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.327e-05/0.1213, allocations: 16.06 kB / 413.5 MB, free: 15.72 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.598e-06/0.1213, allocations: 0 / 413.5 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004738/0.1218, allocations: 305.2 kB / 413.8 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-06/0.1218, allocations: 0 / 413.8 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.318e-06/0.1218, allocations: 4 kB / 413.8 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002357/0.1221, allocations: 60.05 kB / 413.9 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1221, allocations: 7.984 kB / 413.9 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/0.1222, allocations: 23.84 kB / 413.9 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.274e-05/0.1222, allocations: 19.98 kB / 414 MB, free: 15.3 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,firstOrderNegativeGain.I.local_reset,firstOrderPositiveGain.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * 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 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002024/0.1225, allocations: 255.7 kB / 414.2 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.565e-05/0.1225, allocations: 31.67 kB / 414.2 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.982e-05/0.1226, allocations: 34.17 kB / 414.3 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1226, allocations: 4 kB / 414.3 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.1226, allocations: 4 kB / 414.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1226, allocations: 0 / 414.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003035/0.1229, allocations: 337.2 kB / 414.6 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.1229, allocations: 0 / 414.6 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002951/0.1232, allocations: 71.83 kB / 414.7 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.1232, allocations: 0 / 414.7 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.466e-05/0.1233, allocations: 8 kB / 414.7 MB, free: 14.51 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.1233, allocations: 0 / 414.7 MB, free: 14.51 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1233, allocations: 4 kB / 414.7 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.1245, allocations: 0.6128 MB / 415.3 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.413e-05/0.1245, allocations: 104.8 kB / 415.4 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.787e-05/0.1246, allocations: 11.95 kB / 415.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002005/0.1248, allocations: 47.97 kB / 415.5 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.144e-05/0.1249, allocations: 23.95 kB / 415.5 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.852e-05/0.1249, allocations: 11.98 kB / 415.5 MB, free: 13.65 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002043/0.1251, allocations: 186 kB / 415.7 MB, free: 13.47 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1251, allocations: 0 / 415.7 MB, free: 13.47 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005094/0.1257, allocations: 111.8 kB / 415.8 MB, free: 13.36 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (firstOrderPositiveGain.I.y,firstOrderNegativeGain.I.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.001551/0.1272, allocations: 1.196 MB / 417 MB, free: 12.13 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001675/0.1289, allocations: 0.9431 MB / 417.9 MB, free: 11.14 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.1289, allocations: 0 / 417.9 MB, free: 11.14 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004377/0.1294, allocations: 251.6 kB / 418.2 MB, free: 10.88 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.1297, allocations: 48.53 kB / 418.2 MB, free: 10.83 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004036/0.1338, allocations: 2.162 MB / 420.4 MB, free: 8.59 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003732/0.1342, allocations: 0.7636 MB / 421.1 MB, free: 7.801 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001768/0.1343, allocations: 29.95 kB / 421.2 MB, free: 7.773 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000132/0.1345, allocations: 79.34 kB / 421.3 MB, free: 7.695 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1345, allocations: 0 / 421.3 MB, free: 7.695 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01912/0.1536, allocations: 7.238 MB / 428.5 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001537/0.1538, allocations: 222.2 kB / 428.7 MB, free: 312 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.779/1.933, allocations: 0 / 428.7 MB, free: 312 kB / 318.1 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestFirstOrderWithNonWindupLimiter_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestFirstOrderWithNonWindupLimiter.fmu > PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe 2>&1) Environment - environmentSimulation: