Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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_dev_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_dev_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.001355/0.001355, 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.255/1.255, allocations: 222.9 MB / 239.6 MB, free: 10.99 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.001015/0.001015, allocations: 111.5 kB / 289.9 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4261/0.4261, allocations: 78.48 MB / 418.5 MB, free: 8.746 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.91 kB / 497.4 MB, free: 10.63 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2589/0.2602, allocations: 68.13 MB / 0.5523 GB, free: 20.18 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.004822/0.2651, allocations: 6.5 MB / 0.5587 GB, free: 13.65 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002789/0.2679, allocations: 1.9 MB / 0.5605 GB, free: 11.75 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004401/0.2683, allocations: 12 kB / 0.5605 GB, free: 11.73 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003597/0.2687, allocations: 170.9 kB / 0.5607 GB, free: 11.57 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001259/0.27, allocations: 0.6789 MB / 0.5613 GB, free: 10.89 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009055/0.2709, allocations: 0.5411 MB / 0.5619 GB, free: 10.35 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008055/0.2717, allocations: 1.331 MB / 0.5632 GB, free: 9.016 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002818/0.272, allocations: 252.6 kB / 0.5634 GB, free: 8.758 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004189/0.2724, allocations: 0.5365 MB / 0.5639 GB, free: 8.219 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005139/0.273, allocations: 0.731 MB / 0.5647 GB, free: 7.484 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.2731, allocations: 64 kB / 0.5647 GB, free: 7.422 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003315/0.2734, allocations: 203.9 kB / 0.5649 GB, free: 7.223 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001447/0.2736, allocations: 246.8 kB / 0.5651 GB, free: 6.98 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003185/0.2739, allocations: 0.5783 MB / 0.5657 GB, free: 6.398 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008033/0.2747, allocations: 1.426 MB / 0.5671 GB, free: 4.969 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2747, allocations: 4 kB / 0.5671 GB, free: 4.965 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2747, allocations: 0 / 0.5671 GB, free: 4.965 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.2748, allocations: 0 / 0.5671 GB, free: 4.965 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.007276/0.282, allocations: 2.485 MB / 0.5695 GB, free: 2.426 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.2821, allocations: 12.03 kB / 0.5695 GB, free: 2.414 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004566/0.2867, allocations: 0.7633 MB / 0.5703 GB, free: 1.648 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/0.2878, allocations: 0.789 MB / 0.5711 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002298/0.288, allocations: 264.1 kB / 0.5713 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.2882, allocations: 76 kB / 0.5714 GB, free: 444 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002216/0.2904, allocations: 1.178 MB / 0.5725 GB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.2904, allocations: 3.938 kB / 0.5725 GB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.967e-05/0.2905, allocations: 24 kB / 0.5726 GB, free: 15.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.949e-05/0.2905, allocations: 20 kB / 0.5726 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001947/0.2925, allocations: 0.9537 MB / 0.5735 GB, free: 14.23 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.005562/0.2981, allocations: 3.55 MB / 0.577 GB, free: 10.49 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007461/0.3055, allocations: 2.301 MB / 0.5792 GB, free: 8.098 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001389/0.3069, allocations: 0.6556 MB / 0.5799 GB, free: 7.438 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001129/0.3071, allocations: 28.62 kB / 0.5799 GB, free: 7.41 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.742e-05/0.3071, allocations: 43.16 kB / 0.5799 GB, free: 7.359 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 2.695e-06/0.3071, allocations: 0 / 0.5799 GB, free: 7.359 MB / 394.7 MB Notification: Performance of matching and sorting (n=92): time 0.02753/0.3346, allocations: 6.741 MB / 0.5865 GB, free: 0.5625 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.032e-05/0.3348, allocations: 97.7 kB / 0.5866 GB, free: 460 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001229/0.336, allocations: 0.9695 MB / 0.5876 GB, free: 15.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002023/0.3362, allocations: 41.7 kB / 0.5876 GB, free: 15.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003225/0.3366, allocations: 456.8 kB / 0.588 GB, free: 14.96 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002953/0.3369, allocations: 323.6 kB / 0.5883 GB, free: 14.64 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004206/0.3373, allocations: 255.5 kB / 0.5886 GB, free: 14.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.959e-05/0.3374, allocations: 301.1 kB / 0.5889 GB, free: 14.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001419/0.3388, allocations: 0.6949 MB / 0.5896 GB, free: 13.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001546/0.3404, allocations: 0.9147 MB / 0.5904 GB, free: 12.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02238/0.3627, allocations: 5.063 MB / 0.5954 GB, free: 7.27 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.405e-05/0.3628, allocations: 4 kB / 0.5954 GB, free: 7.266 MB / 410.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01306/0.3759, allocations: 4.145 MB / 0.5994 GB, free: 3.105 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.3759, allocations: 8 kB / 0.5994 GB, free: 3.098 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.3759, allocations: 4 kB / 0.5995 GB, free: 3.094 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005481/0.3814, allocations: 1.516 MB / 0.6009 GB, free: 1.574 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/0.3827, allocations: 263.6 kB / 0.6012 GB, free: 1.316 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01864/0.4013, allocations: 7.621 MB / 0.6086 GB, free: 9.551 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001623/0.403, allocations: 182.9 kB / 0.6088 GB, free: 9.371 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001166/0.4031, allocations: 47.98 kB / 0.6088 GB, free: 9.324 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.0005268/0.4036, allocations: 271 kB / 0.6091 GB, free: 9.051 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000966/0.4046, allocations: 336.8 kB / 0.6094 GB, free: 8.711 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01228/0.4169, allocations: 3.592 MB / 0.6129 GB, free: 5.102 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.369e-05/0.4169, allocations: 11.94 kB / 0.6129 GB, free: 5.09 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.417, allocations: 8 kB / 0.613 GB, free: 5.082 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.918e-05/0.417, allocations: 3.984 kB / 0.613 GB, free: 5.078 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.0144/0.4314, allocations: 5.122 MB / 0.618 GB, free: 15.85 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.4314, allocations: 0 / 0.618 GB, free: 15.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005896/0.432, allocations: 111.8 kB / 0.6181 GB, free: 15.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005578/0.4376, allocations: 1.578 MB / 0.6196 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001106/0.4377, allocations: 19.94 kB / 0.6196 GB, free: 14.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01818/0.4559, allocations: 9.893 MB / 0.6293 GB, free: 3.906 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.456, allocations: 4 kB / 0.6293 GB, free: 3.902 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.0313/0.4873, allocations: 9.277 MB / 0.6383 GB, free: 10.55 MB / 458.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.