Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr iPSL_iPSL.Examples.Machines.PSAT.Order4test2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package iPSL with version 1.1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/iPSL 1.1.0/package.mo) Running command: "" <> buildModelFMU(iPSL.Examples.Machines.PSAT.Order4test2,fileNamePrefix="iPSL_iPSL_Examples_Machines_PSAT_Order4test2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(iPSL): time 2.32/2.32, allocations: 222.2 MB / 229.7 MB, free: 3.75 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.779e-05/2.792e-05, allocations: 2.25 kB / 286 MB, free: 7.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1046, allocations: 50.5 MB / 336.5 MB, free: 10.68 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4609/0.5655, allocations: 74.66 MB / 411.2 MB, free: 22.88 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.5659, allocations: 62.73 kB / 411.2 MB, free: 22.88 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06871/0.6346, allocations: 15.27 MB / 426.5 MB, free: 21.54 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.6347, allocations: 4 kB / 426.5 MB, free: 21.54 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.246e-05/0.6348, allocations: 13.72 kB / 426.5 MB, free: 21.54 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.006411/0.6412, allocations: 1.348 MB / 427.9 MB, free: 20.92 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/0.6413, allocations: 14.16 kB / 427.9 MB, free: 20.92 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004513/0.6458, allocations: 470.3 kB / 428.3 MB, free: 20.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001633/0.6475, allocations: 0.5506 MB / 428.9 MB, free: 20.58 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003746/0.6479, allocations: 203.2 kB / 429.1 MB, free: 20.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003686/0.6483, allocations: 38.72 kB / 429.1 MB, free: 20.41 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00223/0.6505, allocations: 0.731 MB / 429.9 MB, free: 20.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001967/0.6526, allocations: 0.6837 MB / 430.5 MB, free: 20.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.67e-05/0.6526, allocations: 7.859 kB / 430.6 MB, free: 20.36 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000124/0.6528, allocations: 3.938 kB / 430.6 MB, free: 20.35 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.719e-05/0.6528, allocations: 15.62 kB / 430.6 MB, free: 20.35 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008657/0.6615, allocations: 3.054 MB / 433.6 MB, free: 19.38 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002001/0.6635, allocations: 0.6298 MB / 434.3 MB, free: 19.34 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001315/0.6649, allocations: 0.4992 MB / 434.8 MB, free: 19.33 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002063/0.6651, allocations: 8.594 kB / 434.8 MB, free: 19.33 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.6652, allocations: 45.91 kB / 434.8 MB, free: 19.29 MB / 346.7 MB Notification: Performance of pre-optimization done (n=77): time 5.059e-06/0.6652, allocations: 0 / 434.8 MB, free: 19.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=77): time 0.02113/0.6863, allocations: 3.899 MB / 438.7 MB, free: 18.99 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/0.6864, allocations: 59.91 kB / 438.8 MB, free: 18.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001068/0.6875, allocations: 474.6 kB / 439.2 MB, free: 18.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002978/0.6879, allocations: 25.7 kB / 439.3 MB, free: 18.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002633/0.6881, allocations: 351.1 kB / 439.6 MB, free: 18.62 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004372/0.6886, allocations: 254.7 kB / 439.8 MB, free: 18.45 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.6887, allocations: 0 / 439.8 MB, free: 18.45 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.6889, allocations: 380.5 kB / 440.2 MB, free: 18.13 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.6899, allocations: 392.3 kB / 440.6 MB, free: 18.13 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001101/0.6911, allocations: 479.5 kB / 441.1 MB, free: 18.05 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00138/0.6925, allocations: 463.7 kB / 441.5 MB, free: 18.04 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.809e-06/0.6925, allocations: 0 / 441.5 MB, free: 18.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.02446/0.717, allocations: 3.971 MB / 445.5 MB, free: 17.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.734e-05/0.7171, allocations: 7.625 kB / 445.5 MB, free: 17.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.924e-05/0.7171, allocations: 3.906 kB / 445.5 MB, free: 17.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01333/0.7305, allocations: 1.713 MB / 447.2 MB, free: 17.63 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.7318, allocations: 89.42 kB / 447.3 MB, free: 17.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03206/0.7639, allocations: 7.02 MB / 454.3 MB, free: 16.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002584/0.7665, allocations: 138 kB / 454.5 MB, free: 16.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003296/0.7669, allocations: 34.19 kB / 454.5 MB, free: 16.1 MB / 346.7 MB Warning: Assuming fixed start value for the following 2 variables: Generator.e1d:VARIABLE(start = Generator.e1d0 ) "d-axis transient voltage (pu)" type: Real Generator.e1q:VARIABLE(start = Generator.e1q0 ) "q-axis transient voltage (pu)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pwLine1.ir.im:VARIABLE() "Imaginary part of complex number" type: Real pwLine3.is.im:VARIABLE() "Imaginary part of complex number" type: Real pwLine1.ir.re:VARIABLE() "Real part of complex number" type: Real pwLine3.is.re:VARIABLE() "Real part of complex number" type: Real pwLinewithOpening1.is.im:VARIABLE() "Imaginary part of complex number" type: Real pwLinewithOpening1.is.re:VARIABLE() "Real part of complex number" type: Real pwLinewithOpening1.ir.re:VARIABLE() "Real part of complex number" type: Real pwLine4.ir.re:VARIABLE() "Real part of complex number" type: Real pwLinewithOpening1.ir.im:VARIABLE() "Imaginary part of complex number" type: Real pwLoadPQ1.p.ii:VARIABLE(flow=true ) type: Real pwLine4.is.re:VARIABLE() "Real part of complex number" type: Real pwLine4.is.im:VARIABLE() "Imaginary part of complex number" type: Real pwLine2.is.re:VARIABLE() "Real part of complex number" type: Real pwLine1.is.im:VARIABLE() "Imaginary part of complex number" type: Real pwLine3.ir.re:VARIABLE() "Real part of complex number" type: Real pwLine3.ir.im:VARIABLE() "Imaginary part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * 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: 0 * Non-linear torn systems: 1 {27 10} Notification: Performance of prepare postOptimizeDAE: time 0.0005884/0.7675, allocations: 139.5 kB / 454.6 MB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0258/0.7933, allocations: 3.898 MB / 458.5 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005189/0.7939, allocations: 70.22 kB / 458.6 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02099/0.8149, allocations: 4.006 MB / 462.6 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.007e-05/0.815, allocations: 7.844 kB / 462.6 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.815, allocations: 0 / 462.6 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.197e-05/0.815, allocations: 3.984 kB / 462.6 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001745/0.8168, allocations: 0.9277 MB / 463.5 MB, free: 13.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.8168, allocations: 7.938 kB / 463.5 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008411/0.8177, allocations: 78.22 kB / 463.6 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008839/0.8266, allocations: 1.644 MB / 465.3 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002669/0.8269, allocations: 3.812 kB / 465.3 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02071/0.8476, allocations: 6.147 MB / 471.4 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/0.8477, allocations: 0 / 471.4 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02294/0.8706, allocations: 4.657 MB / 476.1 MB, free: 23.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000373/0.8711, allocations: 172 kB / 476.2 MB, free: 23.56 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003293/0.8714, allocations: 0 / 476.2 MB, free: 23.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001863/0.8733, allocations: 107.8 kB / 476.3 MB, free: 23.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009724/0.8743, allocations: 184.5 kB / 476.5 MB, free: 23.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/0.8745, allocations: 16 kB / 476.5 MB, free: 23.26 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007722/0.8753, allocations: 366.9 kB / 476.9 MB, free: 22.9 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.72e-07/0.8753, allocations: 0 / 476.9 MB, free: 22.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001856/0.8771, allocations: 315.5 kB / 477.2 MB, free: 22.59 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Generator.delta,Generator.w,Generator.e1q,Generator.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 47 * 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: 0 * Non-linear torn systems: 1 {26 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.02259/0.8998, allocations: 5.227 MB / 482.4 MB, free: 17.33 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008156/0.908, allocations: 1.854 MB / 484.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.908, allocations: 0 / 484.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007302/0.9154, allocations: 1.399 MB / 485.7 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007064/0.9161, allocations: 42.03 kB / 485.7 MB, free: 14.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004562/0.9207, allocations: 1.183 MB / 486.9 MB, free: 12.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007597/0.9215, allocations: 0.9778 MB / 487.9 MB, free: 11.78 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005586/0.9221, allocations: 56.83 kB / 487.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006895/0.9228, allocations: 279.3 kB / 488.2 MB, free: 11.45 MB / 362.7 MB Notification: Performance of SimCode: time 8.81e-07/0.9228, allocations: 0 / 488.2 MB, free: 11.45 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08881/1.012, allocations: 22.6 MB / 0.4988 GB, free: 4.836 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002779/1.012, allocations: 116.2 kB / 0.499 GB, free: 4.641 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.735/4.747, allocations: 0 / 0.499 GB, free: 4.641 MB / 378.7 MB