Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.TestLeadLag,fileNamePrefix="PowerGrids_dev_PowerGrids_Controls_Test_TestLeadLag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestLeadLag,fileNamePrefix="PowerGrids_dev_PowerGrids_Controls_Test_TestLeadLag",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.001152/0.001153, 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.00117/0.00117, 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 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2079/0.2079, allocations: 14.17 MB / 305.1 MB, free: 1.164 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002904/0.0002905, allocations: 15.94 kB / 371.7 MB, free: 4.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3474, allocations: 53.9 MB / 425.6 MB, free: 38.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.001952/0.3494, allocations: 1.464 MB / 427.1 MB, free: 38.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003305/0.3498, allocations: 153.1 kB / 427.2 MB, free: 38.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.335e-05/0.3499, allocations: 6.531 kB / 427.2 MB, free: 38.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.505e-05/0.3499, allocations: 7.219 kB / 427.2 MB, free: 38.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002075/0.3501, allocations: 41.53 kB / 427.3 MB, free: 38.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.07e-05/0.3502, allocations: 28.72 kB / 427.3 MB, free: 38.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000162/0.3504, allocations: 84.5 kB / 427.4 MB, free: 38.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.3505, allocations: 37.09 kB / 427.4 MB, free: 38.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.6e-05/0.3506, allocations: 36.45 kB / 427.4 MB, free: 38.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.873e-05/0.3507, allocations: 41.12 kB / 427.5 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.833e-05/0.3507, allocations: 3.062 kB / 427.5 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.611e-05/0.3507, allocations: 3.844 kB / 427.5 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.976e-05/0.3507, allocations: 13.77 kB / 427.5 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.506e-05/0.3508, allocations: 38.86 kB / 427.5 MB, free: 38.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.486e-05/0.3509, allocations: 81.23 kB / 427.6 MB, free: 38.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.3509, allocations: 0 / 427.6 MB, free: 38.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3509, allocations: 0 / 427.6 MB, free: 38.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.3509, allocations: 0 / 427.6 MB, free: 38.79 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004803/0.3514, allocations: 413.3 kB / 428 MB, free: 38.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.3514, allocations: 12.09 kB / 428 MB, free: 38.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.107e-05/0.3515, allocations: 36.19 kB / 428.1 MB, free: 38.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.567e-05/0.3515, allocations: 16.56 kB / 428.1 MB, free: 38.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002041/0.3517, allocations: 215 kB / 428.3 MB, free: 38.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.3518, allocations: 6.562 kB / 428.3 MB, free: 38.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.393e-05/0.3518, allocations: 13.25 kB / 428.3 MB, free: 38.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002358/0.352, allocations: 127.1 kB / 428.4 MB, free: 38.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.3521, allocations: 1.906 kB / 428.4 MB, free: 38.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.3521, allocations: 0 / 428.4 MB, free: 38.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.3521, allocations: 2.969 kB / 428.4 MB, free: 38.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001754/0.3523, allocations: 64.64 kB / 428.5 MB, free: 38.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005223/0.3528, allocations: 458.4 kB / 429 MB, free: 37.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003218/0.3531, allocations: 123.6 kB / 429.1 MB, free: 37.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.3532, allocations: 6.516 kB / 429.1 MB, free: 37.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.35e-05/0.3532, allocations: 34.5 kB / 429.1 MB, free: 37.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.3532, allocations: 0 / 429.1 MB, free: 37.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003418/0.3535, allocations: 139.5 kB / 429.3 MB, free: 37.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.3536, allocations: 106.8 kB / 429.4 MB, free: 37.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.865e-05/0.3537, allocations: 150.6 kB / 429.5 MB, free: 37.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.3537, allocations: 32.14 kB / 429.5 MB, free: 37.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.925e-05/0.3538, allocations: 111 kB / 429.6 MB, free: 37.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.677e-05/0.3538, allocations: 22.19 kB / 429.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.889e-06/0.3538, allocations: 4.25 kB / 429.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.925e-05/0.3539, allocations: 324.5 kB / 430 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.045e-05/0.354, allocations: 22.3 kB / 430 MB, free: 36.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.696e-05/0.354, allocations: 61.73 kB / 430.1 MB, free: 36.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.583e-05/0.3541, allocations: 36.47 kB / 430.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3542, allocations: 0 / 430.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003099/0.3545, allocations: 142.7 kB / 430.2 MB, free: 36.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.3545, allocations: 10.11 kB / 430.3 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.3545, allocations: 0 / 430.3 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001862/0.3547, allocations: 43.8 kB / 430.3 MB, free: 36.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.443e-05/0.3548, allocations: 18.45 kB / 430.3 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008234/0.3556, allocations: 1.367 MB / 431.7 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.454e-05/0.3557, allocations: 11.95 kB / 431.7 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.3558, allocations: 3.125 kB / 431.7 MB, free: 35.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.012e-05/0.3558, allocations: 126.5 kB / 431.8 MB, free: 35.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.307e-05/0.3559, allocations: 17.14 kB / 431.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.61e-05/0.3559, allocations: 16.86 kB / 431.9 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.3559, allocations: 4.359 kB / 431.9 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.3559, allocations: 0 / 431.9 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3559, allocations: 0 / 431.9 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001712/0.3561, allocations: 208.4 kB / 432.1 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.3561, allocations: 0 / 432.1 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.3562, allocations: 20.77 kB / 432.1 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.3562, allocations: 0 / 432.1 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.3563, allocations: 10.7 kB / 432.1 MB, free: 35.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.3563, allocations: 4.719 kB / 432.1 MB, free: 35.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3563, allocations: 2.781 kB / 432.1 MB, free: 35.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002991/0.3566, allocations: 255 kB / 432.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.096e-05/0.3566, allocations: 97.44 kB / 432.4 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.702e-05/0.3566, allocations: 3.438 kB / 432.4 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.3568, allocations: 5.906 kB / 432.5 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.403e-05/0.3568, allocations: 10.33 kB / 432.5 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.851e-06/0.3568, allocations: 7.219 kB / 432.5 MB, free: 34.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.244e-05/0.3569, allocations: 119.5 kB / 432.6 MB, free: 34.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3569, allocations: 0 / 432.6 MB, free: 34.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002498/0.3571, allocations: 23.91 kB / 432.6 MB, free: 34.79 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (leadLag.firstOrder.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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.0004596/0.3576, allocations: 0.9231 MB / 433.5 MB, free: 33.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004063/0.358, allocations: 203.7 kB / 433.7 MB, free: 33.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.358, allocations: 0 / 433.7 MB, free: 33.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.064e-05/0.3581, allocations: 36.97 kB / 433.8 MB, free: 33.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002623/0.3584, allocations: 19.52 kB / 433.8 MB, free: 33.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.3596, allocations: 1.222 MB / 435 MB, free: 32.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001336/0.3598, allocations: 0.7077 MB / 435.7 MB, free: 32.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.694e-05/0.3598, allocations: 13.84 kB / 435.7 MB, free: 32.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.568e-05/0.3599, allocations: 28.86 kB / 435.8 MB, free: 32.2 MB / 350.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3599, allocations: 3.938 kB / 435.8 MB, free: 32.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01255/0.3725, allocations: 2.429 MB / 438.2 MB, free: 31.94 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001302/0.3726, allocations: 190.6 kB / 438.4 MB, free: 31.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.614/1.987, allocations: 0 / 438.4 MB, free: 31.7 MB / 350.1 MB (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_dev_PowerGrids_Controls_Test_TestLeadLag_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerGrids_dev_PowerGrids_Controls_Test_TestLeadLag.fmu > PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1)