Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.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.Controlled.ControlledGridWithReferenceCalculationSat,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithReferenceCalculationSat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithReferenceCalculationSat",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.001127/0.001127, 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.001806/0.001806, allocations: 176 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.735/1.735, allocations: 205.4 MB / 222.8 MB, free: 5.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06749/0.06749, allocations: 14.17 MB / 285.2 MB, free: 7.094 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.0005504/0.0005505, allocations: 12 kB / 349.6 MB, free: 17.07 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.112, allocations: 51.13 MB / 400.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.01474/0.1268, allocations: 14.58 MB / 415.3 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.014/0.1408, allocations: 6.464 MB / 421.8 MB, free: 8.789 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003906/0.1448, allocations: 71.56 kB / 421.9 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003124/0.1479, allocations: 0.6015 MB / 422.5 MB, free: 8.113 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007973/0.1559, allocations: 2.035 MB / 424.5 MB, free: 6.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003669/0.1596, allocations: 1.122 MB / 425.6 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008625/0.1683, allocations: 4.712 MB / 430.3 MB, free: 248 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2294/0.3977, allocations: 0.5784 MB / 430.9 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004074/0.4018, allocations: 1.263 MB / 432.2 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003289/0.4051, allocations: 1.39 MB / 433.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004322/0.4056, allocations: 93.34 kB / 433.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001876/0.4075, allocations: 466.1 kB / 434.1 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004588/0.4079, allocations: 395.1 kB / 434.5 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009887/0.4089, allocations: 0.5354 MB / 435 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004938/0.4139, allocations: 2.918 MB / 437.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.197e-06/0.4139, allocations: 0 / 437.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.817e-06/0.4139, allocations: 1.375 kB / 437.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001149/0.414, allocations: 0 / 437.9 MB, free: 14.63 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: 507 * Number of variables: 507 Notification: Performance of Generate backend data structure: time 0.01205/0.4261, allocations: 3.633 MB / 441.6 MB, free: 13.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.985e-05/0.4262, allocations: 13.02 kB / 441.6 MB, free: 13.26 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007026/0.4269, allocations: 279.3 kB / 441.9 MB, free: 13.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001606/0.4285, allocations: 404.4 kB / 442.3 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004118/0.4326, allocations: 1.733 MB / 444 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002001/0.4328, allocations: 164.5 kB / 444.1 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004179/0.4333, allocations: 219.8 kB / 444.4 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004327/0.4376, allocations: 2.092 MB / 446.5 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.259e-05/0.4377, allocations: 11.17 kB / 446.5 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001704/0.4378, allocations: 83.12 kB / 446.5 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.642e-05/0.4379, allocations: 55.62 kB / 446.6 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00386/0.4418, allocations: 1.964 MB / 448.6 MB, free: 12.14 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.01441/0.4562, allocations: 11.67 MB / 460.2 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003642/0.4599, allocations: 2.68 MB / 462.9 MB, free: 2.688 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001153/0.461, allocations: 0.8328 MB / 463.8 MB, free: 2.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001117/0.4611, allocations: 29.55 kB / 463.8 MB, free: 2.586 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.731e-05/0.4612, allocations: 60.77 kB / 463.8 MB, free: 2.543 MB / 318.1 MB Notification: Performance of pre-optimization done (n=194): time 3.757e-06/0.4612, allocations: 4 kB / 463.8 MB, free: 2.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=195): time 0.01302/0.4742, allocations: 5.717 MB / 469.6 MB, free: 56 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001595/0.4744, allocations: 184.2 kB / 469.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002823/0.4773, allocations: 1.758 MB / 471.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001861/0.4775, allocations: 69.7 kB / 471.6 MB, free: 13.97 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001072/0.4785, allocations: 1.098 MB / 472.7 MB, free: 12.87 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007528/0.4793, allocations: 0.6851 MB / 473.4 MB, free: 12.19 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.4794, allocations: 52 kB / 473.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002117/0.4797, allocations: 411.5 kB / 473.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001623/0.4813, allocations: 0.8506 MB / 474.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002141/0.4834, allocations: 1.496 MB / 476.2 MB, free: 9.141 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001906/0.4854, allocations: 1.036 MB / 477.2 MB, free: 8.102 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.039e-05/0.4854, allocations: 8 kB / 477.2 MB, free: 8.094 MB / 334.1 MB Notification: Performance of matching and sorting (n=344) (initialization): time 0.009262/0.4946, allocations: 4.02 MB / 481.2 MB, free: 4.117 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006241/0.4953, allocations: 0.555 MB / 481.8 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-05/0.4953, allocations: 16 kB / 481.8 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007828/0.5032, allocations: 1.699 MB / 483.5 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002059/0.5052, allocations: 0.5426 MB / 484 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02732/0.5326, allocations: 20.31 MB / 0.4925 GB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003568/0.5362, allocations: 195.3 kB / 0.4927 GB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005791/0.5368, allocations: 109.9 kB / 0.4928 GB, free: 11.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.5368, allocations: 4 kB / 0.4928 GB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006981/0.5438, allocations: 2.707 MB / 0.4955 GB, free: 8.449 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.197e-05/0.5439, allocations: 19.98 kB / 0.4955 GB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006076/0.55, allocations: 1.283 MB / 0.4967 GB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002611/0.5526, allocations: 0.614 MB / 0.4973 GB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01641/0.5691, allocations: 15.26 MB / 0.5122 GB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003257/0.5724, allocations: 119.6 kB / 0.5123 GB, free: 5.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005456/0.5729, allocations: 104 kB / 0.5124 GB, free: 5.809 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * Number of states: 0 () * Number of discrete variables: 5 (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 (287): * Single equations (assignments): 276 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 0,(2,100.0%) 0,(2,100.0%) 0,(3,66.7%) 0,(3,66.7%) 0} * Non-linear torn systems: 6 {38 0,2 0,2 0,2 0,2 0,10 0} Notification: Performance of prepare postOptimizeDAE: time 0.002267/0.5752, allocations: 0.56 MB / 0.513 GB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001136/0.5764, allocations: 253 kB / 0.5132 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005542/0.5819, allocations: 2.176 MB / 0.5154 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.198e-05/0.582, allocations: 16 kB / 0.5154 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-05/0.582, allocations: 8 kB / 0.5154 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.162e-05/0.582, allocations: 7.969 kB / 0.5154 GB, free: 2.816 MB / 382.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.01095/0.593, allocations: 4.51 MB / 0.5198 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.185e-05/0.593, allocations: 8 kB / 0.5198 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001743/0.5948, allocations: 356.6 kB / 0.5201 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001112/0.5959, allocations: 284.5 kB / 0.5204 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001718/0.5961, allocations: 43.98 kB / 0.5205 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007192/0.6033, allocations: 3.821 MB / 0.5242 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.6034, allocations: 3.984 kB / 0.5242 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04696/0.6504, allocations: 19.34 MB / 0.5431 GB, free: 6.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002001/0.6524, allocations: 457.9 kB / 0.5435 GB, free: 5.621 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009839/0.6534, allocations: 36 kB / 0.5435 GB, free: 5.586 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002239/0.6557, allocations: 107.8 kB / 0.5436 GB, free: 5.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004931/0.6562, allocations: 137.8 kB / 0.5438 GB, free: 5.344 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001828/0.6564, allocations: 51.98 kB / 0.5438 GB, free: 5.293 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00282/0.6593, allocations: 1.128 MB / 0.5449 GB, free: 4.148 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.6593, allocations: 2.734 kB / 0.5449 GB, free: 4.148 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.008323/0.6676, allocations: 1.641 MB / 0.5465 GB, free: 2.508 MB / 414.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (162): * Single equations (assignments): 161 * 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 {(36,8.0%) 0} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006764/0.6744, allocations: 3.822 MB / 0.5503 GB, free: 14.67 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01707/0.6915, allocations: 7.362 MB / 0.5575 GB, free: 7.043 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.298e-05/0.6915, allocations: 0 / 0.5575 GB, free: 7.043 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00416/0.6957, allocations: 1.53 MB / 0.559 GB, free: 5.504 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004543/0.7003, allocations: 382 kB / 0.5593 GB, free: 5.129 MB / 430.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.05023/0.7506, allocations: 18.48 MB / 0.5774 GB, free: 1.383 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002582/0.7532, allocations: 1.668 MB / 0.579 GB, free: 15.67 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002874/0.7561, allocations: 373.3 kB / 0.5794 GB, free: 15.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002107/0.7582, allocations: 0.9718 MB / 0.5803 GB, free: 14.33 MB / 462.1 MB Notification: Performance of SimCode: time 1.803e-06/0.7582, allocations: 0 / 0.5803 GB, free: 14.33 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).