Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr iPSL_iPSL.Examples.Machines.PSAT.Order4test2_perturbation.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_perturbation,fileNamePrefix="iPSL_iPSL_Examples_Machines_PSAT_Order4test2_perturbation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(iPSL): time 2.246/2.246, allocations: 222.2 MB / 229.7 MB, free: 3.746 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.779e-05/2.815e-05, allocations: 2.344 kB / 286 MB, free: 7.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1155, allocations: 50.5 MB / 336.5 MB, free: 10.69 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4227/0.5383, allocations: 75.84 MB / 412.3 MB, free: 23.48 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002231/0.5386, allocations: 65.45 kB / 412.4 MB, free: 23.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0756/0.6142, allocations: 17.66 MB / 430.1 MB, free: 21.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.6143, allocations: 0 / 430.1 MB, free: 21.93 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.848e-05/0.6143, allocations: 19.62 kB / 430.1 MB, free: 21.93 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: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.006314/0.6207, allocations: 1.544 MB / 431.6 MB, free: 21.25 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.6207, allocations: 7.812 kB / 431.6 MB, free: 21.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004184/0.6249, allocations: 494.9 kB / 432.1 MB, free: 21.19 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001307/0.6262, allocations: 0.6108 MB / 432.7 MB, free: 20.87 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002785/0.6265, allocations: 201.8 kB / 432.9 MB, free: 20.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002007/0.6268, allocations: 50.92 kB / 433 MB, free: 20.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002168/0.6289, allocations: 0.8106 MB / 433.8 MB, free: 20.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001992/0.6309, allocations: 0.7522 MB / 434.5 MB, free: 20.64 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.636e-05/0.631, allocations: 0 / 434.5 MB, free: 20.64 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001338/0.6311, allocations: 0 / 434.5 MB, free: 20.64 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.894e-05/0.6312, allocations: 19.53 kB / 434.6 MB, free: 20.64 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008714/0.6399, allocations: 3.375 MB / 437.9 MB, free: 19.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.6415, allocations: 0.7026 MB / 438.6 MB, free: 19.61 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001111/0.6426, allocations: 0.5371 MB / 439.2 MB, free: 19.6 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002038/0.6429, allocations: 20.2 kB / 439.2 MB, free: 19.6 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.6429, allocations: 42.5 kB / 439.2 MB, free: 19.56 MB / 346.7 MB Notification: Performance of pre-optimization done (n=91): time 3.467e-06/0.6429, allocations: 0 / 439.2 MB, free: 19.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=91): time 0.02082/0.6637, allocations: 3.99 MB / 443.2 MB, free: 19.26 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.6638, allocations: 63.91 kB / 443.3 MB, free: 19.19 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001023/0.6649, allocations: 0.5428 MB / 443.8 MB, free: 19.07 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002847/0.6652, allocations: 25.7 kB / 443.9 MB, free: 19.04 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003093/0.6655, allocations: 419.9 kB / 444.3 MB, free: 18.85 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003851/0.6659, allocations: 300.5 kB / 444.6 MB, free: 18.65 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.666, allocations: 0 / 444.6 MB, free: 18.65 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.499e-05/0.6661, allocations: 340.8 kB / 444.9 MB, free: 18.34 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001043/0.6672, allocations: 425.1 kB / 445.3 MB, free: 18.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001076/0.6683, allocations: 0.5139 MB / 445.8 MB, free: 18.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001374/0.6697, allocations: 495.9 kB / 446.3 MB, free: 18.24 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.6697, allocations: 0 / 446.3 MB, free: 18.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.02132/0.691, allocations: 4.091 MB / 450.4 MB, free: 17.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.968e-05/0.6911, allocations: 7.719 kB / 450.4 MB, free: 17.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.6911, allocations: 0 / 450.4 MB, free: 17.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009664/0.7008, allocations: 1.714 MB / 452.1 MB, free: 17.81 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/0.7022, allocations: 138.5 kB / 452.3 MB, free: 17.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02282/0.725, allocations: 7.027 MB / 459.3 MB, free: 15.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002209/0.7273, allocations: 169.1 kB / 459.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001769/0.7275, allocations: 31.08 kB / 459.5 MB, free: 15.61 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 pwLinewithOpening1.is.im:VARIABLE() "Imaginary part of complex number" type: Real pwLine1.ir.re:VARIABLE() "Real 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 pwLine4.is.im:VARIABLE() "Imaginary part of complex number" type: Real pwLine4.is.re:VARIABLE() "Real part of complex number" type: Real pwLinewithOpening1.ir.im:VARIABLE() "Imaginary part of complex number" type: Real pwLine4.ir.im:VARIABLE() "Imaginary part of complex number" type: Real pwLine3.is.im:VARIABLE() "Imaginary part of complex number" type: Real pwLine3.is.re:VARIABLE() "Real part of complex number" type: Real pwLine1.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 (71): * Single equations (assignments): 70 * 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.0004575/0.7279, allocations: 143.8 kB / 459.6 MB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02255/0.7505, allocations: 3.992 MB / 463.6 MB, free: 14.31 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006814/0.7512, allocations: 85.75 kB / 463.7 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02102/0.7723, allocations: 4.11 MB / 467.8 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-05/0.7724, allocations: 11.22 kB / 467.8 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.7724, allocations: 0 / 467.8 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.608e-05/0.7724, allocations: 3.984 kB / 467.8 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001984/0.7744, allocations: 1.033 MB / 468.9 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.7745, allocations: 0 / 468.9 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001202/0.7757, allocations: 126.2 kB / 469 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00865/0.7843, allocations: 1.652 MB / 470.6 MB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002092/0.7846, allocations: 4 kB / 470.6 MB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01962/0.8042, allocations: 6.153 MB / 476.8 MB, free: 7.422 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.124e-06/0.8043, allocations: 3.984 kB / 476.8 MB, free: 7.418 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02266/0.8269, allocations: 4.822 MB / 481.6 MB, free: 2.57 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007555/0.8278, allocations: 307.6 kB / 481.9 MB, free: 2.25 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001922/0.828, allocations: 4 kB / 481.9 MB, free: 2.246 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001903/0.8299, allocations: 119.9 kB / 482 MB, free: 2.129 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001031/0.8309, allocations: 204.4 kB / 482.2 MB, free: 1.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001194/0.8311, allocations: 27.92 kB / 482.3 MB, free: 1.902 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007512/0.8318, allocations: 435.2 kB / 482.7 MB, free: 1.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.8318, allocations: 0 / 482.7 MB, free: 1.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001588/0.8334, allocations: 335.4 kB / 483 MB, free: 1.152 MB / 346.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 (62): * Single equations (assignments): 61 * 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.02462/0.8581, allocations: 5.395 MB / 488.4 MB, free: 11.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009381/0.8675, allocations: 1.946 MB / 490.3 MB, free: 9.766 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.8676, allocations: 0 / 490.3 MB, free: 9.766 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007705/0.8753, allocations: 1.446 MB / 491.8 MB, free: 8.312 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007944/0.8761, allocations: 55.23 kB / 491.8 MB, free: 8.262 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005241/0.8814, allocations: 1.386 MB / 493.2 MB, free: 6.836 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007586/0.8822, allocations: 1.044 MB / 494.3 MB, free: 5.762 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006645/0.8829, allocations: 73.23 kB / 494.4 MB, free: 5.688 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007906/0.8837, allocations: 339.3 kB / 494.7 MB, free: 5.355 MB / 362.7 MB Notification: Performance of SimCode: time 1.092e-06/0.8837, allocations: 4 kB / 494.7 MB, free: 5.352 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1103/0.994, allocations: 24.71 MB / 0.5072 GB, free: 12.62 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002097/0.9942, allocations: 132 kB / 0.5073 GB, free: 12.43 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.788/4.783, allocations: 0 / 0.5073 GB, free: 12.43 MB / 394.7 MB