Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008336/0.0008336, allocations: 76.5 kB / 19.93 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007968/0.0007968, allocations: 174.3 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8369/0.8369, allocations: 158.6 MB / 185 MB, free: 3.055 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.03737/0.03737, allocations: 10.66 MB / 247.9 MB, free: 4.719 MB / 234.7 MB " [Timeout remaining time 180] Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1500,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1500,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 3.938 kB / 371.8 MB, free: 3.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.83e-05/3.045e-05, allocations: 5.234 kB / 371.8 MB, free: 3.477 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.01422/0.01425, allocations: 13.82 MB / 385.6 MB, free: 5.582 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01322/0.02747, allocations: 6.487 MB / 392.1 MB, free: 15.08 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004348/0.03182, allocations: 95.19 kB / 392.2 MB, free: 14.98 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003506/0.03533, allocations: 0.81 MB / 393 MB, free: 14.17 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009054/0.04438, allocations: 2.604 MB / 395.6 MB, free: 11.57 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004049/0.04843, allocations: 1.556 MB / 397.1 MB, free: 10.02 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006665/0.0551, allocations: 5.405 MB / 402.6 MB, free: 4.598 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.05619, allocations: 479.5 kB / 403 MB, free: 4.098 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003939/0.06013, allocations: 2.592 MB / 405.6 MB, free: 1.5 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002411/0.06254, allocations: 1.464 MB / 407.1 MB, free: 32 kB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000645/0.06318, allocations: 288 kB / 407.4 MB, free: 15.75 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001417/0.0646, allocations: 0.6946 MB / 408.1 MB, free: 15.05 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004085/0.06501, allocations: 0.638 MB / 408.7 MB, free: 14.41 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001063/0.06607, allocations: 1.145 MB / 409.8 MB, free: 13.27 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003814/0.06989, allocations: 4.288 MB / 414.1 MB, free: 8.965 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.06989, allocations: 0 / 414.1 MB, free: 8.965 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.06989, allocations: 0 / 414.1 MB, free: 8.965 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.126e-05/0.06994, allocations: 0 / 414.1 MB, free: 8.965 MB / 346.7 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.007213/0.07716, allocations: 4.184 MB / 418.3 MB, free: 4.73 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.0772, allocations: 8.031 kB / 418.3 MB, free: 4.723 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008641/0.07807, allocations: 418.8 kB / 418.7 MB, free: 4.312 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002472/0.08054, allocations: 1.848 MB / 420.6 MB, free: 2.398 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.08064, allocations: 164.4 kB / 420.7 MB, free: 2.238 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002321/0.08087, allocations: 224.3 kB / 421 MB, free: 2.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002623/0.08349, allocations: 2.198 MB / 423.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.211e-05/0.08353, allocations: 7.938 kB / 423.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001195/0.08365, allocations: 80 kB / 423.2 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.843e-05/0.08367, allocations: 48 kB / 423.3 MB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002192/0.08586, allocations: 1.897 MB / 425.2 MB, free: 13.68 MB / 362.7 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.009453/0.09532, allocations: 7.654 MB / 432.8 MB, free: 5.812 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002311/0.09763, allocations: 1.745 MB / 434.6 MB, free: 4.082 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008644/0.09849, allocations: 0.7368 MB / 435.3 MB, free: 3.344 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.373e-05/0.09858, allocations: 25.98 kB / 435.3 MB, free: 3.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.075e-05/0.09862, allocations: 52.56 kB / 435.4 MB, free: 3.258 MB / 362.7 MB Notification: Performance of pre-optimization done (n=194): time 4.248e-06/0.09862, allocations: 0 / 435.4 MB, free: 3.258 MB / 362.7 MB Notification: Performance of matching and sorting (n=194): time 0.1611/0.2598, allocations: 3.342 MB / 438.7 MB, free: 69.78 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/0.2598, allocations: 177.7 kB / 438.9 MB, free: 69.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002279/0.2621, allocations: 1.854 MB / 440.8 MB, free: 69.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003651/0.2625, allocations: 69.45 kB / 440.8 MB, free: 69.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005748/0.263, allocations: 1.12 MB / 441.9 MB, free: 68.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005448/0.2636, allocations: 0.7083 MB / 442.7 MB, free: 68.45 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004656/0.2641, allocations: 471.1 kB / 443.1 MB, free: 68.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 3.255e-05/0.2641, allocations: 303.1 kB / 443.4 MB, free: 67.92 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00113/0.2652, allocations: 0.8345 MB / 444.2 MB, free: 67.6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/0.2666, allocations: 1.724 MB / 446 MB, free: 66.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002276/0.2689, allocations: 2.187 MB / 448.2 MB, free: 64.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.244e-05/0.2689, allocations: 5 kB / 448.2 MB, free: 64.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=336) (initialization): time 0.005875/0.2748, allocations: 3.73 MB / 451.9 MB, free: 63.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.966e-05/0.2748, allocations: 14.56 kB / 451.9 MB, free: 63.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.79e-05/0.2749, allocations: 19.52 kB / 451.9 MB, free: 63.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004736/0.2796, allocations: 1.791 MB / 453.7 MB, free: 63.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.2808, allocations: 0.5227 MB / 454.2 MB, free: 63.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01246/0.2933, allocations: 19.82 MB / 474.1 MB, free: 47.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001908/0.2952, allocations: 265.7 kB / 474.3 MB, free: 47.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/0.2953, allocations: 105 kB / 474.4 MB, free: 47.06 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001471/0.2967, allocations: 1.073 MB / 475.5 MB, free: 46.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008945/0.2976, allocations: 1.613 MB / 477.1 MB, free: 44.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001533/0.2992, allocations: 2.025 MB / 479.1 MB, free: 43.11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.582e-06/0.2992, allocations: 4 kB / 479.1 MB, free: 43.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=336) (initialization_lambda0): time 0.003199/0.3024, allocations: 2.929 MB / 482.1 MB, free: 40.1 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.3024, allocations: 14.19 kB / 482.1 MB, free: 40.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.3024, allocations: 15.98 kB / 482.1 MB, free: 40.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002809/0.3052, allocations: 1.267 MB / 483.4 MB, free: 38.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/0.3062, allocations: 0.6006 MB / 484 MB, free: 38.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007436/0.3137, allocations: 15.2 MB / 499.2 MB, free: 21.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001868/0.3156, allocations: 203.4 kB / 499.4 MB, free: 21.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.775e-05/0.3156, allocations: 104 kB / 499.5 MB, free: 21.72 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * 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 (279): * Single equations (assignments): 268 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,0,100.0%), (2,0,100.0%), (2,0,100.0%), (3,0,66.7%), (3,0,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(38,0), (2,0), (2,0), (2,0), (2,0), (10,0)} Notification: Performance of prepare postOptimizeDAE: time 0.0004621/0.3161, allocations: 334.5 kB / 499.8 MB, free: 21.4 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002083/0.3163, allocations: 253.5 kB / 0.4883 GB, free: 21.15 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002218/0.3185, allocations: 2.104 MB / 0.4904 GB, free: 19.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.3185, allocations: 7.969 kB / 0.4904 GB, free: 19.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.3185, allocations: 0 / 0.4904 GB, free: 19.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005505/0.3191, allocations: 445.5 kB / 0.4908 GB, free: 18.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.3192, allocations: 36 kB / 0.4908 GB, free: 18.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006354/0.3199, allocations: 71.95 kB / 0.4909 GB, free: 18.51 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/0.32, allocations: 157.7 kB / 0.4911 GB, free: 18.36 MB / 362.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002506/0.3225, allocations: 2.071 MB / 0.4931 GB, free: 16.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002278/0.3248, allocations: 2.665 MB / 0.4957 GB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006299/0.3254, allocations: 0.6559 MB / 0.4963 GB, free: 12.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000921/0.3264, allocations: 1.185 MB / 0.4975 GB, free: 11.78 MB / 362.7 MB Notification: Performance of Backend: time 6.11e-07/0.3264, allocations: 0 / 0.4975 GB, free: 11.78 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006883/0.3333, allocations: 6.705 MB / 0.504 GB, free: 4.855 MB / 362.7 MB Notification: Performance of SimCode: time 0.005552/0.3388, allocations: 5.803 MB / 0.5097 GB, free: 15.04 MB / 378.7 MB [CodegenCpp.tpl:12351:11-12351:11:writable] Error: Template error: Unsupported zero crossing at 0: TGOV.firstOrderLim.G.y >= 0.0 and TGOV.firstOrderLim.I.y > TGOV.firstOrderLim.lim.uMax or TGOV.firstOrderLim.G.y <= 0.0 and TGOV.firstOrderLim.I.y < TGOV.firstOrderLim.lim.uMin. [CodegenCpp.tpl:12351:11-12351:11:writable] Error: Template error: Unsupported zero crossing at 1: AVR.firstOrderLim.G.y >= 0.0 and AVR.firstOrderLim.I.y > AVR.firstOrderLim.lim.uMax or AVR.firstOrderLim.G.y <= 0.0 and AVR.firstOrderLim.I.y < AVR.firstOrderLim.lim.uMin. Error: Internal error SimCode DAEmode: The model PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat could not be translated " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.187484499067068] Failed to read output from testmodel.py, exit status != 0: 0.41268350277096033 0.561041101 0.489306593 Calling exit ...