Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_PowerGrids_Controls_Test_TestFirstOrderWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter,fileNamePrefix="PowerGrids_symb_jac_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.001012/0.001011, allocations: 88.17 kB / 15.71 MB, free: 452 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.001537/0.001537, allocations: 178.5 kB / 16.59 MB, free: 6.855 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.854/1.854, allocations: 205.4 MB / 222.8 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.06254/0.06254, allocations: 14.17 MB / 285.2 MB, free: 7.133 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.0005646/0.0005647, allocations: 16 kB / 348.9 MB, free: 17.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1278, allocations: 51.12 MB / 400 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter): time 0.002533/0.1304, allocations: 1.681 MB / 401.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001483/0.1319, allocations: 0.8156 MB / 402.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.132, allocations: 11.94 kB / 402.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001935/0.1322, allocations: 47.73 kB / 402.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001875/0.1324, allocations: 63.67 kB / 402.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000483/0.1329, allocations: 167.7 kB / 402.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002716/0.1332, allocations: 251.3 kB / 403.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.1334, allocations: 60.7 kB / 403.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001246/0.1335, allocations: 103.5 kB / 403.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001794/0.1337, allocations: 119.5 kB / 403.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.939e-05/0.1337, allocations: 11.94 kB / 403.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001247/0.1338, allocations: 67.94 kB / 403.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.383e-05/0.1339, allocations: 43.83 kB / 403.5 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.882e-05/0.134, allocations: 69.52 kB / 403.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002542/0.1343, allocations: 227.6 kB / 403.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1343, allocations: 4 kB / 403.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.1343, allocations: 0 / 403.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1343, allocations: 0 / 403.8 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0008679/0.1352, allocations: 0.5896 MB / 404.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.1352, allocations: 12.02 kB / 404.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.266e-05/0.1353, allocations: 46.55 kB / 404.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.836e-05/0.1354, allocations: 35.62 kB / 404.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003565/0.1357, allocations: 294.3 kB / 404.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.1357, allocations: 16 kB / 404.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.248e-05/0.1358, allocations: 19.91 kB / 404.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006271/0.1364, allocations: 317.3 kB / 405.1 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.1364, allocations: 0 / 405.1 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.554e-05/0.1365, allocations: 8 kB / 405.1 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.1365, allocations: 4 kB / 405.1 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006221/0.1371, allocations: 264.3 kB / 405.3 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00122/0.1384, allocations: 0.9866 MB / 406.3 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008046/0.1392, allocations: 347.4 kB / 406.7 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003457/0.1395, allocations: 165.7 kB / 406.8 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.113e-05/0.1396, allocations: 0 / 406.8 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005294/0.1401, allocations: 259.1 kB / 407.1 MB, free: 7.297 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.373e-06/0.1401, allocations: 0 / 407.1 MB, free: 7.297 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001245/0.1414, allocations: 0.5214 MB / 407.6 MB, free: 6.766 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.1415, allocations: 166.2 kB / 407.8 MB, free: 6.566 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003055/0.1418, allocations: 254.6 kB / 408 MB, free: 6.305 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.398e-05/0.1419, allocations: 33.64 kB / 408 MB, free: 6.266 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/0.142, allocations: 168.4 kB / 408.2 MB, free: 6.098 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.217e-05/0.1421, allocations: 70.94 kB / 408.3 MB, free: 6.027 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.755e-05/0.1422, allocations: 8 kB / 408.3 MB, free: 6.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002137/0.1424, allocations: 338.9 kB / 408.6 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003402/0.1427, allocations: 135.9 kB / 408.8 MB, free: 5.547 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003811/0.1431, allocations: 221.4 kB / 409 MB, free: 5.301 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003473/0.1435, allocations: 169.7 kB / 409.1 MB, free: 5.129 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1435, allocations: 0 / 409.1 MB, free: 5.129 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001808/0.1453, allocations: 0.7851 MB / 409.9 MB, free: 4.324 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001193/0.1454, allocations: 159.1 kB / 410.1 MB, free: 4.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.1455, allocations: 0 / 410.1 MB, free: 4.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005572/0.146, allocations: 197.6 kB / 410.3 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000195/0.1462, allocations: 43.89 kB / 410.3 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005029/0.1513, allocations: 3.811 MB / 414.1 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002555/0.1515, allocations: 47.88 kB / 414.2 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.241e-05/0.1516, allocations: 12 kB / 414.2 MB, free: 15.76 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.412e-06/0.1516, allocations: 4 kB / 414.2 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004938/0.1521, allocations: 313.2 kB / 414.5 MB, free: 15.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.956e-06/0.1521, allocations: 0 / 414.5 MB, free: 15.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.058e-06/0.1521, allocations: 4 kB / 414.5 MB, free: 15.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000235/0.1524, allocations: 55.89 kB / 414.6 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.1524, allocations: 4 kB / 414.6 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001417/0.1525, allocations: 27.83 kB / 414.6 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.1525, allocations: 16.16 kB / 414.6 MB, free: 15.34 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.0002629/0.1528, allocations: 258.5 kB / 414.9 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.817e-05/0.1529, allocations: 31.67 kB / 414.9 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.344e-05/0.1529, allocations: 34.17 kB / 414.9 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1529, allocations: 0 / 414.9 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-06/0.153, allocations: 3.938 kB / 414.9 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.153, allocations: 4 kB / 414.9 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003161/0.1533, allocations: 333.2 kB / 415.2 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1533, allocations: 8 kB / 415.3 MB, free: 14.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002932/0.1536, allocations: 67.83 kB / 415.3 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.1536, allocations: 0 / 415.3 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/0.1536, allocations: 8 kB / 415.3 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/0.1537, allocations: 3.984 kB / 415.3 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.1537, allocations: 7.938 kB / 415.3 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005838/0.1595, allocations: 3.588 MB / 418.9 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.421e-05/0.1596, allocations: 104.7 kB / 419 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.599e-05/0.1597, allocations: 15.98 kB / 419 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001957/0.1599, allocations: 31.97 kB / 419.1 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.602e-05/0.16, allocations: 35.94 kB / 419.1 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.872e-05/0.16, allocations: 16.02 kB / 419.1 MB, free: 10.55 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001716/0.1602, allocations: 182 kB / 419.3 MB, free: 10.37 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1602, allocations: 4 kB / 419.3 MB, free: 10.37 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000794/0.161, allocations: 155.8 kB / 419.5 MB, free: 10.21 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.001626/0.1626, allocations: 1.185 MB / 420.6 MB, free: 8.992 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001691/0.1643, allocations: 0.9503 MB / 421.6 MB, free: 7.992 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1643, allocations: 0 / 421.6 MB, free: 7.992 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004403/0.1648, allocations: 259.5 kB / 421.9 MB, free: 7.727 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003844/0.1652, allocations: 57.36 kB / 421.9 MB, free: 7.676 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004543/0.1697, allocations: 2.398 MB / 424.3 MB, free: 5.18 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003721/0.1701, allocations: 0.7678 MB / 425.1 MB, free: 4.387 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001951/0.1703, allocations: 33.94 kB / 425.1 MB, free: 4.355 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/0.1705, allocations: 83.41 kB / 425.2 MB, free: 4.273 MB / 318.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1705, allocations: 0 / 425.2 MB, free: 4.273 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2345/0.4051, allocations: 7.945 MB / 433.1 MB, free: 36.36 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002144/0.4053, allocations: 228 kB / 433.4 MB, free: 36.12 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.93/2.335, allocations: 0 / 433.4 MB, free: 36.12 MB / 318.1 MB (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_symb_jac_PowerGrids_Controls_Test_TestFirstOrderWithNonWindupLimiter_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_symb_jac_PowerGrids_Controls_Test_TestFirstOrderWithNonWindupLimiter.fmu > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe 2>&1) Environment - environmentSimulation: