Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByInputSignals.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.Tutorial.GridOperation.LoadChange.LoadChangeByInputSignals,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_LoadChange_LoadChangeByInputSignals",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByInputSignals,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_LoadChange_LoadChangeByInputSignals",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.0009573/0.0009576, 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.001232/0.001233, allocations: 180 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.82/1.82, allocations: 205.4 MB / 222.8 MB, free: 5.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05999/0.05999, allocations: 14.16 MB / 285.2 MB, free: 6.992 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.0007805/0.0007806, allocations: 12 kB / 349.6 MB, free: 17.07 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1283, allocations: 51.12 MB / 400.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByInputSignals): time 0.01148/0.1399, allocations: 11.44 MB / 412.2 MB, free: 2.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01009/0.15, allocations: 5.124 MB / 417.3 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002082/0.1521, allocations: 35.81 kB / 417.3 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001735/0.1539, allocations: 481.4 kB / 417.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006069/0.1599, allocations: 1.874 MB / 419.7 MB, free: 10.9 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002042/0.162, allocations: 0.7168 MB / 420.4 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005813/0.1678, allocations: 3.601 MB / 424 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009662/0.1688, allocations: 234.1 kB / 424.2 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002428/0.1713, allocations: 0.9566 MB / 425.2 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002494/0.1738, allocations: 1.078 MB / 426.3 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000576/0.1744, allocations: 79.94 kB / 426.3 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002448/0.1768, allocations: 431.7 kB / 426.8 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006729/0.1775, allocations: 262.5 kB / 427 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001319/0.1788, allocations: 392.7 kB / 427.4 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00349/0.1823, allocations: 1.917 MB / 429.3 MB, free: 1.211 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.1824, allocations: 0 / 429.3 MB, free: 1.211 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1824, allocations: 0 / 429.3 MB, free: 1.211 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001176/0.1825, allocations: 0 / 429.3 MB, free: 1.211 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: 336 * Number of variables: 336 Notification: Performance of Generate backend data structure: time 0.2399/0.4224, allocations: 2.765 MB / 432.1 MB, free: 36.31 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.4224, allocations: 10.19 kB / 432.1 MB, free: 36.31 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004346/0.4229, allocations: 193.3 kB / 432.3 MB, free: 36.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001351/0.4243, allocations: 300.7 kB / 432.6 MB, free: 36.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002208/0.4265, allocations: 1.102 MB / 433.7 MB, free: 35.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001486/0.4266, allocations: 110 kB / 433.8 MB, free: 35.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002727/0.4269, allocations: 154.6 kB / 433.9 MB, free: 35.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002593/0.4295, allocations: 1.338 MB / 435.3 MB, free: 35.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.094e-05/0.4296, allocations: 1.312 kB / 435.3 MB, free: 35.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001086/0.4297, allocations: 55.47 kB / 435.3 MB, free: 35.21 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.199e-05/0.4297, allocations: 32.59 kB / 435.4 MB, free: 35.21 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002523/0.4323, allocations: 1.361 MB / 436.7 MB, free: 34.75 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.01024/0.4425, allocations: 8.49 MB / 445.2 MB, free: 27.88 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00276/0.4453, allocations: 2.199 MB / 447.4 MB, free: 26.26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009104/0.4462, allocations: 0.5946 MB / 448 MB, free: 25.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001072/0.4463, allocations: 21.64 kB / 448 MB, free: 25.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001149/0.4475, allocations: 0.7659 MB / 448.8 MB, free: 25.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=162): time 4.409e-06/0.4475, allocations: 0 / 448.8 MB, free: 25.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=163): time 0.01316/0.4607, allocations: 5.047 MB / 453.8 MB, free: 22.48 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.4608, allocations: 230.5 kB / 454.1 MB, free: 22.23 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001559/0.4624, allocations: 1.027 MB / 455.1 MB, free: 21.63 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001412/0.4625, allocations: 61.58 kB / 455.2 MB, free: 21.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005114/0.4631, allocations: 0.6224 MB / 455.8 MB, free: 21.02 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005047/0.4636, allocations: 0.5558 MB / 456.3 MB, free: 20.54 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.4637, allocations: 43.81 kB / 456.4 MB, free: 20.51 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.4638, allocations: 385.9 kB / 456.8 MB, free: 20.14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009687/0.4648, allocations: 0.5898 MB / 457.3 MB, free: 19.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/0.4659, allocations: 0.9412 MB / 458.3 MB, free: 19.13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00128/0.4672, allocations: 0.7885 MB / 459.1 MB, free: 18.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-06/0.4672, allocations: 2.5 kB / 459.1 MB, free: 18.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.005368/0.4726, allocations: 2.419 MB / 461.5 MB, free: 17.13 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.129e-05/0.4727, allocations: 67.3 kB / 461.6 MB, free: 17.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.553e-05/0.4728, allocations: 12.62 kB / 461.6 MB, free: 17.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005339/0.4781, allocations: 1.182 MB / 462.8 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001704/0.4798, allocations: 471.9 kB / 463.2 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009741/0.4896, allocations: 12.46 MB / 475.7 MB, free: 1.855 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001919/0.4916, allocations: 115.4 kB / 475.8 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00025/0.4918, allocations: 81.16 kB / 475.9 MB, free: 1.664 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition3,$whenCondition4,$PRE.NTHV.fault,NTHV.fault,$whenCondition1,$whenCondition2,$PRE.NTHV.Y.re,NTHV.Y.re,$PRE.NTHV.Y.im,NTHV.Y.im) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (235): * Single equations (assignments): 225 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 0,(2,100.0%) 0,(2,100.0%) 0} * Non-linear torn systems: 5 {23 0,2 0,2 0,2 0,2 0} Notification: Performance of prepare postOptimizeDAE: time 0.0009389/0.4928, allocations: 421.6 kB / 476.3 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004814/0.4933, allocations: 163.2 kB / 476.4 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003503/0.4968, allocations: 1.842 MB / 478.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.85e-05/0.4968, allocations: 16 kB / 478.3 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-05/0.4968, allocations: 8 kB / 478.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-05/0.4969, allocations: 11.91 kB / 478.3 MB, free: 15.17 MB / 334.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.006657/0.5035, allocations: 3.573 MB / 481.9 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.5036, allocations: 0 / 481.9 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001232/0.5048, allocations: 283.6 kB / 482.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0011/0.5059, allocations: 292.5 kB / 482.5 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001201/0.506, allocations: 33.23 kB / 482.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006909/0.513, allocations: 3.999 MB / 486.5 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/0.513, allocations: 4 kB / 486.5 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0323/0.5453, allocations: 15.27 MB / 0.49 GB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/0.5465, allocations: 335.1 kB / 0.4903 GB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004765/0.547, allocations: 35.98 kB / 0.4904 GB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001242/0.5483, allocations: 67.67 kB / 0.4904 GB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000356/0.5486, allocations: 105.5 kB / 0.4905 GB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/0.5488, allocations: 43.98 kB / 0.4906 GB, free: 6.555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001153/0.5499, allocations: 0.6481 MB / 0.4912 GB, free: 5.902 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5499, allocations: 0 / 0.4912 GB, free: 5.902 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00317/0.5531, allocations: 0.7304 MB / 0.4919 GB, free: 5.172 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (GEN.theta,GEN.omegaPu,GEN.lambdaDPu,GEN.lambdafPu,GEN.lambdaQ1Pu,GEN.lambdaQ2Pu) * 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 (123): * Single equations (assignments): 120 * 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.005024/0.5581, allocations: 3.25 MB / 0.4951 GB, free: 1.898 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005484/0.5637, allocations: 2.987 MB / 0.498 GB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.5637, allocations: 0 / 0.498 GB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002775/0.5665, allocations: 1.481 MB / 0.4994 GB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001888/0.5684, allocations: 182.1 kB / 0.4996 GB, free: 13.09 MB / 366.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.02528/0.5937, allocations: 11.34 MB / 0.5107 GB, free: 1.312 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001508/0.5952, allocations: 1.307 MB / 0.512 GB, free: 15.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001344/0.5966, allocations: 199.3 kB / 0.5122 GB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0013/0.5979, allocations: 0.5774 MB / 0.5127 GB, free: 15.2 MB / 382.1 MB Notification: Performance of SimCode: time 1.373e-06/0.5979, allocations: 0 / 0.5127 GB, free: 15.2 MB / 382.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).