Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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) 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) Running command: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 183.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.193/1.193, allocations: 222.9 MB / 239.7 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009284/0.0009284, allocations: 106.7 kB / 289.9 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4007/0.4007, allocations: 78.52 MB / 418.5 MB, free: 8.508 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 67.91 kB / 497.5 MB, free: 10.25 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2534, allocations: 68.15 MB / 0.5524 GB, free: 19.87 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.004614/0.258, allocations: 6.514 MB / 0.5588 GB, free: 13.33 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002411/0.2605, allocations: 1.896 MB / 0.5606 GB, free: 11.43 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000355/0.2608, allocations: 8 kB / 0.5606 GB, free: 11.42 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003437/0.2612, allocations: 178.9 kB / 0.5608 GB, free: 11.25 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001167/0.2624, allocations: 0.6795 MB / 0.5615 GB, free: 10.57 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.0008426/0.2632, allocations: 0.5403 MB / 0.562 GB, free: 10.04 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007485/0.264, allocations: 1.327 MB / 0.5633 GB, free: 8.703 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002683/0.2643, allocations: 256.6 kB / 0.5635 GB, free: 8.441 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003843/0.2647, allocations: 0.5404 MB / 0.5641 GB, free: 7.898 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004641/0.2651, allocations: 0.7154 MB / 0.5648 GB, free: 7.18 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001038/0.2652, allocations: 64 kB / 0.5648 GB, free: 7.117 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003151/0.2656, allocations: 203.9 kB / 0.565 GB, free: 6.918 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001391/0.2657, allocations: 254.7 kB / 0.5653 GB, free: 6.668 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002899/0.266, allocations: 0.5745 MB / 0.5658 GB, free: 6.09 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007582/0.2668, allocations: 1.434 MB / 0.5672 GB, free: 4.652 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2668, allocations: 4 kB / 0.5672 GB, free: 4.648 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.02e-07/0.2668, allocations: 0 / 0.5672 GB, free: 4.648 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.2668, allocations: 0 / 0.5672 GB, free: 4.648 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.006626/0.2734, allocations: 2.473 MB / 0.5696 GB, free: 2.121 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.2735, allocations: 16.03 kB / 0.5696 GB, free: 2.105 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004249/0.2777, allocations: 0.7633 MB / 0.5704 GB, free: 1.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008594/0.2786, allocations: 0.7967 MB / 0.5712 GB, free: 496 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002009/0.2788, allocations: 256.2 kB / 0.5714 GB, free: 204 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/0.279, allocations: 80 kB / 0.5715 GB, free: 124 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002178/0.2811, allocations: 1.162 MB / 0.5726 GB, free: 14.93 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.2812, allocations: 3.938 kB / 0.5726 GB, free: 14.93 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.936e-05/0.2812, allocations: 32 kB / 0.5727 GB, free: 14.9 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.2813, allocations: 20 kB / 0.5727 GB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001878/0.2832, allocations: 0.9459 MB / 0.5736 GB, free: 13.93 MB / 394.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.005311/0.2885, allocations: 3.558 MB / 0.5771 GB, free: 10.18 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007181/0.2957, allocations: 2.308 MB / 0.5793 GB, free: 7.785 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001263/0.297, allocations: 0.659 MB / 0.58 GB, free: 7.125 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.832e-05/0.2971, allocations: 16.64 kB / 0.58 GB, free: 7.109 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.2971, allocations: 47.22 kB / 0.58 GB, free: 7.055 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 3.647e-06/0.2971, allocations: 3.984 kB / 0.58 GB, free: 7.051 MB / 394.7 MB Notification: Performance of matching and sorting (n=92): time 0.0262/0.3233, allocations: 6.745 MB / 0.5866 GB, free: 256 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.3235, allocations: 97.7 kB / 0.5867 GB, free: 140 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/0.3247, allocations: 0.9695 MB / 0.5877 GB, free: 15.15 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001518/0.3249, allocations: 41.7 kB / 0.5877 GB, free: 15.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002996/0.3252, allocations: 452.8 kB / 0.5881 GB, free: 14.65 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003304/0.3255, allocations: 319.6 kB / 0.5884 GB, free: 14.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004138/0.3259, allocations: 259.5 kB / 0.5887 GB, free: 14.08 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.69e-05/0.326, allocations: 301.1 kB / 0.589 GB, free: 13.78 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001384/0.3274, allocations: 0.7027 MB / 0.5897 GB, free: 13.08 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001595/0.329, allocations: 0.9146 MB / 0.5906 GB, free: 12.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02117/0.3502, allocations: 5.063 MB / 0.5955 GB, free: 6.953 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/0.3503, allocations: 4 kB / 0.5955 GB, free: 6.949 MB / 410.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01287/0.3631, allocations: 4.137 MB / 0.5995 GB, free: 2.797 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.3632, allocations: 8 kB / 0.5996 GB, free: 2.789 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/0.3632, allocations: 4 kB / 0.5996 GB, free: 2.785 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005434/0.3687, allocations: 1.512 MB / 0.601 GB, free: 1.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001199/0.3699, allocations: 267.6 kB / 0.6013 GB, free: 1.008 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01782/0.3877, allocations: 7.625 MB / 0.6087 GB, free: 9.238 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/0.3894, allocations: 178.9 kB / 0.6089 GB, free: 9.062 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002165/0.3896, allocations: 55.97 kB / 0.609 GB, free: 9.008 MB / 426.7 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005939/0.3902, allocations: 254.6 kB / 0.6092 GB, free: 8.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000962/0.3912, allocations: 332.9 kB / 0.6095 GB, free: 8.414 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0118/0.403, allocations: 3.592 MB / 0.613 GB, free: 4.805 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.56e-05/0.403, allocations: 11.94 kB / 0.613 GB, free: 4.793 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.339e-05/0.4031, allocations: 8 kB / 0.613 GB, free: 4.785 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.048e-05/0.4031, allocations: 7.969 kB / 0.6131 GB, free: 4.777 MB / 426.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 postOpt removeSimpleEquations (simulation): time 0.01435/0.4174, allocations: 5.118 MB / 0.6181 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.374e-05/0.4175, allocations: 0 / 0.6181 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006108/0.4181, allocations: 115.8 kB / 0.6182 GB, free: 15.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005492/0.4236, allocations: 1.571 MB / 0.6197 GB, free: 13.86 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001488/0.4238, allocations: 27.92 kB / 0.6197 GB, free: 13.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01882/0.4426, allocations: 9.905 MB / 0.6294 GB, free: 3.594 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4427, allocations: 0 / 0.6294 GB, free: 3.594 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "aVRTypeII.vf = previous(aVRTypeII.vf) + (aVRTypeII.vr - aVRTypeII.vf * (aVRTypeII.Ke + aVRTypeII.Se)) / aVRTypeII.Te" w.r.t. "dummyVarA" is non-existent. Error: Internal error SymbolicJacobian.deriveAll failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2440:7-2440:87:writable] Error: Internal error function generateSymbolicJacobian failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2231:9-2231:79:writable] Error: Internal error function createJacobian failed Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03014/0.4728, allocations: 9.273 MB / 0.6384 GB, free: 10.25 MB / 458.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.