Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.ENTSOE.TestCase3.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) Ignoring simflag -noemit -homotopyOnFirstTry=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PowerGrids.Examples.ENTSOE.TestCase3,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_ENTSOE_TestCase3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.ENTSOE.TestCase3,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_ENTSOE_TestCase3",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.0009847/0.0009851, 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.001166/0.001166, allocations: 175.1 kB / 16.59 MB, free: 6.859 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.584/1.584, allocations: 205.4 MB / 222.8 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.07792/0.07792, 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.0005673/0.0005674, allocations: 12 kB / 349.6 MB, free: 17.12 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1242, allocations: 51.12 MB / 400.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.ENTSOE.TestCase3): time 0.01623/0.1405, allocations: 14.68 MB / 415.4 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01479/0.1553, allocations: 6.456 MB / 421.9 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004397/0.1598, allocations: 71.56 kB / 421.9 MB, free: 8.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003226/0.163, allocations: 0.6015 MB / 422.5 MB, free: 8.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008384/0.1714, allocations: 2.018 MB / 424.5 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003865/0.1753, allocations: 1.114 MB / 425.7 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008469/0.1838, allocations: 4.708 MB / 430.4 MB, free: 224 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.279/0.4628, allocations: 0.61 MB / 431 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00373/0.4666, allocations: 1.262 MB / 432.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004717/0.4713, allocations: 1.389 MB / 433.6 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006847/0.472, allocations: 92.62 kB / 433.7 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002903/0.4749, allocations: 465.3 kB / 434.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005924/0.4756, allocations: 391.9 kB / 434.6 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00153/0.4771, allocations: 0.5456 MB / 435.1 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005656/0.4828, allocations: 2.911 MB / 438 MB, free: 14.05 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.427e-06/0.4828, allocations: 0 / 438 MB, free: 14.05 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.756e-06/0.4828, allocations: 0 / 438 MB, free: 14.05 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001345/0.4829, allocations: 0 / 438 MB, free: 14.05 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 517 * Number of variables: 517 Notification: Performance of Generate backend data structure: time 0.01359/0.4965, allocations: 3.686 MB / 441.7 MB, free: 12.61 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.552e-05/0.4966, allocations: 12.89 kB / 441.7 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001107/0.4978, allocations: 280.8 kB / 442 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002387/0.5001, allocations: 435.8 kB / 442.4 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004736/0.5049, allocations: 1.713 MB / 444.1 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001652/0.5051, allocations: 167.9 kB / 444.3 MB, free: 11.9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003848/0.5055, allocations: 236.7 kB / 444.5 MB, free: 11.9 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004483/0.51, allocations: 2.133 MB / 446.7 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.041e-05/0.51, allocations: 5.281 kB / 446.7 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001926/0.5102, allocations: 88.84 kB / 446.7 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-05/0.5103, allocations: 51 kB / 446.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00426/0.5146, allocations: 2.003 MB / 448.8 MB, free: 11.51 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01686/0.5314, allocations: 11.62 MB / 460.4 MB, free: 3.328 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003702/0.5352, allocations: 2.819 MB / 463.2 MB, free: 2.098 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001313/0.5365, allocations: 0.8895 MB / 464.1 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001353/0.5367, allocations: 32.97 kB / 464.2 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00165/0.5383, allocations: 1.123 MB / 465.3 MB, free: 1.574 MB / 318.1 MB Notification: Performance of pre-optimization done (n=213): time 3.707e-06/0.5383, allocations: 4 kB / 465.3 MB, free: 1.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=214): time 0.01655/0.5549, allocations: 6.396 MB / 471.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002327/0.5552, allocations: 368.1 kB / 472 MB, free: 13.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003355/0.5585, allocations: 1.676 MB / 473.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003164/0.5589, allocations: 73.7 kB / 473.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001269/0.5602, allocations: 1.062 MB / 474.9 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001056/0.5612, allocations: 0.7498 MB / 475.6 MB, free: 9.695 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001377/0.5614, allocations: 54.06 kB / 475.7 MB, free: 9.645 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002476/0.5616, allocations: 403.5 kB / 476 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001989/0.5636, allocations: 0.8408 MB / 476.9 MB, free: 8.402 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002304/0.5659, allocations: 1.389 MB / 478.3 MB, free: 6.805 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00211/0.5681, allocations: 1.07 MB / 479.3 MB, free: 5.719 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-05/0.5681, allocations: 6.438 kB / 479.4 MB, free: 5.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=343) (initialization): time 0.009198/0.5773, allocations: 3.762 MB / 483.1 MB, free: 1.957 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005488/0.5779, allocations: 0.5126 MB / 483.6 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.153e-05/0.5779, allocations: 15.98 kB / 483.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008064/0.586, allocations: 1.624 MB / 485.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002667/0.5887, allocations: 0.5257 MB / 485.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0291/0.6178, allocations: 20.81 MB / 0.4947 GB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00382/0.6217, allocations: 167.5 kB / 0.4949 GB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007477/0.6225, allocations: 99.98 kB / 0.495 GB, free: 8.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.6226, allocations: 4 kB / 0.495 GB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008195/0.6308, allocations: 2.879 MB / 0.4978 GB, free: 5.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.407e-05/0.6309, allocations: 12 kB / 0.4978 GB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007194/0.6381, allocations: 1.446 MB / 0.4992 GB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002599/0.6407, allocations: 0.5382 MB / 0.4998 GB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02139/0.6621, allocations: 17.55 MB / 0.5169 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003181/0.6653, allocations: 118.4 kB / 0.517 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005358/0.6659, allocations: 95.98 kB / 0.5171 GB, free: 0.5273 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition3,$whenCondition4,$PRE.NTHV.fault,NTHV.fault,$whenCondition1,$whenCondition2,$PRE.NTHV.Y.re,NTHV.Y.re,$PRE.NTHV.Y.im,NTHV.Y.im,PSS.firstWashoutVsi2.integrator.local_reset,PSS.secondWashoutVsi1.integrator.local_reset,PSS.firstWashoutVsi1.integrator.local_reset,AVR.firstOrderLim.I.local_reset,TGOV.firstOrderLim.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (288): * Single equations (assignments): 274 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(3,66.7%) 0,(2,100.0%) 0,(2,100.0%) 0,(3,66.7%) 0,(3,66.7%) 0,(2,100.0%) 0} * Non-linear torn systems: 6 {38 0,2 0,2 0,2 0,2 0,4 0} Notification: Performance of prepare postOptimizeDAE: time 0.002351/0.6682, allocations: 0.6292 MB / 0.5177 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001105/0.6694, allocations: 241.1 kB / 0.5179 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006306/0.6757, allocations: 2.422 MB / 0.5203 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-05/0.6757, allocations: 24 kB / 0.5203 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.409e-05/0.6758, allocations: 4 kB / 0.5203 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.253e-05/0.6758, allocations: 11.95 kB / 0.5203 GB, free: 13.2 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0105/0.6863, allocations: 4.856 MB / 0.5251 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.689e-06/0.6864, allocations: 3.75 kB / 0.5251 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001772/0.6881, allocations: 369.8 kB / 0.5254 GB, free: 7.914 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001178/0.6893, allocations: 308.3 kB / 0.5257 GB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000213/0.6896, allocations: 40 kB / 0.5258 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007705/0.6973, allocations: 4.007 MB / 0.5297 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.6973, allocations: 0 / 0.5297 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05234/0.7497, allocations: 20.67 MB / 0.5499 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002315/0.752, allocations: 470 kB / 0.5503 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001028/0.7531, allocations: 40 kB / 0.5504 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002783/0.7559, allocations: 119.8 kB / 0.5505 GB, free: 13.92 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004784/0.7564, allocations: 141.8 kB / 0.5506 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/0.7565, allocations: 52 kB / 0.5507 GB, free: 13.73 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002136/0.7587, allocations: 1.079 MB / 0.5517 GB, free: 12.63 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.7587, allocations: 0 / 0.5517 GB, free: 12.63 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.007258/0.766, allocations: 1.684 MB / 0.5534 GB, free: 10.95 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 16 (GEN.theta,GEN.omegaPu,GEN.lambdaDPu,GEN.lambdafPu,GEN.lambdaQ1Pu,GEN.lambdaQ2Pu,TGOV.firstOrderLim.I.y,TGOV.leadLag.firstOrder.y,AVR.leadLag.firstOrder.y,AVR.firstOrderLim.I.y,PSS.firstWashoutVsi1.integrator.y,PSS.secondWashoutVsi1.integrator.y,PSS.firstWashoutVsi2.integrator.y,PSS.leadLag1.firstOrder.y,PSS.leadLag2.firstOrder.y,PSS.firstOrderVsi2.firstOrder1.y) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,NTHV.Y.re,NTHV.Y.im,NTHV.fault) * Number of discrete states: 7 ($whenCondition4,NTHV.Y.im,NTHV.Y.re,$whenCondition3,NTHV.fault,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (174): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 2 * 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 {(38,7.8%) 0} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007448/0.7734, allocations: 4.117 MB / 0.5574 GB, free: 6.824 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01555/0.789, allocations: 7.957 MB / 0.5652 GB, free: 14.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.898e-06/0.7891, allocations: 1.812 kB / 0.5652 GB, free: 14.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003892/0.793, allocations: 1.766 MB / 0.5669 GB, free: 12.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003699/0.7967, allocations: 395.4 kB / 0.5673 GB, free: 12.33 MB / 446.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is set to 'isProtected' (=false) by default. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0482/0.8449, allocations: 18.34 MB / 0.5852 GB, free: 8.785 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003094/0.8481, allocations: 1.707 MB / 0.5868 GB, free: 7.039 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003053/0.8511, allocations: 357 kB / 0.5872 GB, free: 6.688 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002273/0.8534, allocations: 0.9796 MB / 0.5881 GB, free: 5.707 MB / 462.1 MB Notification: Performance of SimCode: time 2.204e-06/0.8535, allocations: 4 kB / 0.5881 GB, free: 5.703 MB / 462.1 MB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 0.0, 0.0).