Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Controls.Test.TestIntegratorWithNonWindupLimiter.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.TestIntegratorWithNonWindupLimiter,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Controls_Test_TestIntegratorWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestIntegratorWithNonWindupLimiter,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Controls_Test_TestIntegratorWithNonWindupLimiter",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.001092/0.001092, allocations: 93.41 kB / 15.71 MB, free: 464 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.001261/0.001262, allocations: 170.3 kB / 16.58 MB, free: 6.398 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.911/1.911, allocations: 205.4 MB / 222.8 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06174/0.06174, allocations: 14.15 MB / 285.2 MB, free: 7.145 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.000566/0.0005662, allocations: 16 kB / 348.9 MB, free: 17.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1273, allocations: 51.11 MB / 400 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestIntegratorWithNonWindupLimiter): time 0.002362/0.1297, allocations: 1.541 MB / 401.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.1311, allocations: 0.7729 MB / 402.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.1312, allocations: 7.938 kB / 402.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001913/0.1314, allocations: 39.77 kB / 402.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.944e-05/0.1315, allocations: 47.8 kB / 402.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005494/0.1321, allocations: 171.2 kB / 402.6 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002599/0.1324, allocations: 203.4 kB / 402.8 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.1325, allocations: 44.28 kB / 402.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.1326, allocations: 87.61 kB / 402.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001672/0.1328, allocations: 103.5 kB / 403 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.807e-05/0.1328, allocations: 8 kB / 403 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001294/0.133, allocations: 71.92 kB / 403.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.557e-05/0.1331, allocations: 35.84 kB / 403.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.143e-05/0.1331, allocations: 61.58 kB / 403.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002324/0.1334, allocations: 183.6 kB / 403.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1334, allocations: 0 / 403.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.679e-06/0.1334, allocations: 0 / 403.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.405e-06/0.1334, allocations: 3.938 kB / 403.4 MB, free: 11.24 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0008949/0.1343, allocations: 0.5431 MB / 403.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.1344, allocations: 16.02 kB / 403.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.127e-05/0.1344, allocations: 42.55 kB / 404 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.337e-05/0.1345, allocations: 27.62 kB / 404 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003523/0.1348, allocations: 285.6 kB / 404.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.1349, allocations: 12 kB / 404.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.6e-05/0.1349, allocations: 12 kB / 404.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000591/0.1355, allocations: 286 kB / 404.6 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.1355, allocations: 4 kB / 404.6 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.1356, allocations: 0 / 404.6 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.1356, allocations: 4 kB / 404.6 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006693/0.1362, allocations: 255.7 kB / 404.8 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.1373, allocations: 0.9 MB / 405.7 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008174/0.1382, allocations: 325 kB / 406.1 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003621/0.1385, allocations: 153.7 kB / 406.2 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.054e-05/0.1386, allocations: 8 kB / 406.2 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005298/0.1391, allocations: 246.6 kB / 406.5 MB, free: 7.902 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.232e-06/0.1391, allocations: 0 / 406.5 MB, free: 7.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.001273/0.1404, allocations: 0.5106 MB / 407 MB, free: 7.379 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.781e-05/0.1405, allocations: 166.2 kB / 407.1 MB, free: 7.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002291/0.1407, allocations: 241 kB / 407.4 MB, free: 6.934 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.535e-05/0.1408, allocations: 25.7 kB / 407.4 MB, free: 6.902 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.1409, allocations: 148.2 kB / 407.5 MB, free: 6.754 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.886e-05/0.1409, allocations: 51.34 kB / 407.6 MB, free: 6.703 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.302e-05/0.141, allocations: 4 kB / 407.6 MB, free: 6.699 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.1411, allocations: 334.8 kB / 407.9 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000363/0.1415, allocations: 144.1 kB / 408.1 MB, free: 6.223 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003907/0.1419, allocations: 202.5 kB / 408.3 MB, free: 6 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003745/0.1422, allocations: 180 kB / 408.4 MB, free: 5.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1423, allocations: 0 / 408.4 MB, free: 5.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008903/0.1432, allocations: 438.7 kB / 408.9 MB, free: 5.379 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001028/0.1433, allocations: 159.2 kB / 409 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.1433, allocations: 11.88 kB / 409 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.1433, allocations: 0 / 409 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002818/0.1436, allocations: 71.89 kB / 409.1 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.1436, allocations: 0 / 409.1 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002284/0.1438, allocations: 63.8 kB / 409.2 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.1439, allocations: 4 kB / 409.2 MB, free: 5.047 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.019e-06/0.1439, allocations: 4 kB / 409.2 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004245/0.1443, allocations: 263.3 kB / 409.4 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-06/0.1443, allocations: 0 / 409.4 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.148e-06/0.1443, allocations: 7.984 kB / 409.4 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.1445, allocations: 36.08 kB / 409.5 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.1445, allocations: 4 kB / 409.5 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001136/0.1446, allocations: 23.83 kB / 409.5 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.1446, allocations: 8 kB / 409.5 MB, free: 4.703 MB / 302.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,integrator2.I.local_reset,integrator1.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): 17 * 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 prepare postOptimizeDAE: time 0.0001957/0.1449, allocations: 250.8 kB / 409.8 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.04e-05/0.1449, allocations: 27.67 kB / 409.8 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.612e-05/0.145, allocations: 33.83 kB / 409.8 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.145, allocations: 0 / 409.8 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.145, allocations: 0 / 409.8 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.145, allocations: 7.938 kB / 409.8 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002822/0.1453, allocations: 285.4 kB / 410.1 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1453, allocations: 0 / 410.1 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002734/0.1456, allocations: 55.95 kB / 410.2 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.1456, allocations: 4 kB / 410.2 MB, free: 3.984 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.864e-05/0.1456, allocations: 19.94 kB / 410.2 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.1456, allocations: 3.984 kB / 410.2 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1456, allocations: 0 / 410.2 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005363/0.151, allocations: 3.105 MB / 413.3 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-05/0.1511, allocations: 101 kB / 413.4 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/0.1511, allocations: 4 kB / 413.4 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.1514, allocations: 51.91 kB / 413.4 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.633e-05/0.1515, allocations: 35.89 kB / 413.5 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-05/0.1515, allocations: 4 kB / 413.5 MB, free: 488 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001697/0.1517, allocations: 176.5 kB / 413.7 MB, free: 312 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1517, allocations: 0 / 413.7 MB, free: 312 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.000622/0.1523, allocations: 132 kB / 413.8 MB, free: 180 kB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (integrator1.I.y,integrator2.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 (11): * Single equations (assignments): 10 * 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.001637/0.1539, allocations: 1.161 MB / 414.9 MB, free: 14.98 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001125/0.1551, allocations: 0.569 MB / 415.5 MB, free: 14.38 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.1551, allocations: 384 / 415.5 MB, free: 14.38 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004439/0.1556, allocations: 255.2 kB / 415.8 MB, free: 14.12 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003711/0.1559, allocations: 48.36 kB / 415.8 MB, free: 14.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003417/0.1594, allocations: 1.92 MB / 417.7 MB, free: 12.06 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003872/0.1598, allocations: 0.7365 MB / 418.5 MB, free: 11.3 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001674/0.1599, allocations: 37.53 kB / 418.5 MB, free: 11.26 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001409/0.1601, allocations: 67.41 kB / 418.6 MB, free: 11.2 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1601, allocations: 0 / 418.6 MB, free: 11.2 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01916/0.1793, allocations: 6.205 MB / 424.8 MB, free: 5.09 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002577/0.1796, allocations: 204.1 kB / 425 MB, free: 4.848 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.815/1.995, allocations: 4 kB / 425 MB, free: 4.844 MB / 318.1 MB (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestIntegratorWithNonWindupLimiter.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestIntegratorWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestIntegratorWithNonWindupLimiter.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestIntegratorWithNonWindupLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_symb_jac_PowerGrids_Controls_Test_TestIntegratorWithNonWindupLimiter_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 PowerGrids_symb_jac_PowerGrids_Controls_Test_TestIntegratorWithNonWindupLimiter.fmu > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestIntegratorWithNonWindupLimiter.pipe 2>&1) Environment - environmentSimulation: