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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(iPSL): time 2.185/2.185, allocations: 222 MB / 229.3 MB, free: 15.64 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2505/2.436, allocations: 56.11 MB / 285.4 MB, free: 7.867 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/2.561, allocations: 50.48 MB / 335.9 MB, free: 5.273 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.366/2.927, allocations: 75.78 MB / 411.6 MB, free: 5.352 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/2.927, allocations: 61.34 kB / 411.7 MB, free: 5.324 MB / 330.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.1039/3.031, allocations: 18.96 MB / 430.7 MB, free: 5.25 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/3.031, allocations: 8 kB / 430.7 MB, free: 5.242 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006038/3.037, allocations: 0.5098 MB / 431.2 MB, free: 4.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001888/3.039, allocations: 0.6239 MB / 431.8 MB, free: 4.062 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003942/3.04, allocations: 206.5 kB / 432 MB, free: 3.832 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002613/3.04, allocations: 47.91 kB / 432 MB, free: 3.785 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003121/3.043, allocations: 0.8046 MB / 432.9 MB, free: 2.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003504/3.046, allocations: 0.7532 MB / 433.6 MB, free: 2.219 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.04e-05/3.047, allocations: 0 / 433.6 MB, free: 2.219 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001586/3.047, allocations: 0 / 433.6 MB, free: 2.219 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.145e-05/3.047, allocations: 20 kB / 433.6 MB, free: 2.199 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01587/3.063, allocations: 3.404 MB / 437 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003001/3.066, allocations: 0.6455 MB / 437.7 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002526/3.068, allocations: 0.5386 MB / 438.2 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000219/3.069, allocations: 16.75 kB / 438.2 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.207e-05/3.069, allocations: 43.34 kB / 438.3 MB, free: 13.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=91): time 6.732e-06/3.069, allocations: 0 / 438.3 MB, free: 13.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=91): time 0.03354/3.102, allocations: 4.202 MB / 442.5 MB, free: 9.164 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.924e-05/3.102, allocations: 68.19 kB / 442.5 MB, free: 9.086 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001289/3.104, allocations: 0.5391 MB / 443.1 MB, free: 8.539 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003496/3.104, allocations: 25.7 kB / 443.1 MB, free: 8.508 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004172/3.104, allocations: 300.2 kB / 443.4 MB, free: 8.207 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009225/3.105, allocations: 307.4 kB / 443.7 MB, free: 7.902 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002135/3.106, allocations: 0 / 443.7 MB, free: 7.902 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002405/3.106, allocations: 334 kB / 444 MB, free: 7.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002405/3.108, allocations: 422 kB / 444.4 MB, free: 7.156 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002555/3.111, allocations: 0.516 MB / 445 MB, free: 6.609 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001792/3.113, allocations: 468 kB / 445.4 MB, free: 6.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/3.113, allocations: 0 / 445.4 MB, free: 6.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.02736/3.14, allocations: 4.3 MB / 449.7 MB, free: 1.844 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/3.14, allocations: 8 kB / 449.7 MB, free: 1.836 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.435e-05/3.14, allocations: 3.984 kB / 449.7 MB, free: 1.832 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01202/3.152, allocations: 1.78 MB / 451.5 MB, free: 48 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001736/3.154, allocations: 143.8 kB / 451.6 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03361/3.188, allocations: 6.24 MB / 457.9 MB, free: 9.531 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002557/3.19, allocations: 191.1 kB / 458.1 MB, free: 9.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001777/3.191, allocations: 28 kB / 458.1 MB, free: 9.316 MB / 378.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.0005009/3.191, allocations: 143.9 kB / 458.2 MB, free: 9.172 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003507/3.192, allocations: 86.97 kB / 458.3 MB, free: 9.086 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03051/3.222, allocations: 4.31 MB / 462.6 MB, free: 4.758 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.924e-05/3.222, allocations: 11.94 kB / 462.6 MB, free: 4.746 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/3.222, allocations: 0 / 462.6 MB, free: 4.746 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.105e-05/3.222, allocations: 7.969 kB / 462.7 MB, free: 4.738 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004381/3.227, allocations: 1.033 MB / 463.7 MB, free: 3.668 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.198e-05/3.227, allocations: 4 kB / 463.7 MB, free: 3.664 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002246/3.229, allocations: 127.8 kB / 463.8 MB, free: 3.539 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01144/3.241, allocations: 1.706 MB / 465.5 MB, free: 1.828 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003236/3.241, allocations: 7.984 kB / 465.5 MB, free: 1.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02558/3.267, allocations: 5.621 MB / 471.1 MB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/3.267, allocations: 0 / 471.1 MB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02903/3.296, allocations: 5.054 MB / 476.2 MB, free: 7 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03122/3.327, allocations: 6.157 MB / 482.4 MB, free: 0.8164 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008769/3.328, allocations: 303.6 kB / 482.7 MB, free: 0.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000254/3.328, allocations: 4 kB / 482.7 MB, free: 0.4961 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002344/3.33, allocations: 135.9 kB / 482.8 MB, free: 372 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006079/3.331, allocations: 120.6 kB / 482.9 MB, free: 252 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001446/3.331, allocations: 24 kB / 482.9 MB, free: 228 kB / 394.7 MB Notification: Performance of sort global known variables: time 0.001034/3.332, allocations: 435.2 kB / 483.4 MB, free: 15.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003204/3.336, allocations: 339.4 kB / 483.7 MB, free: 15.46 MB / 410.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.0005708/3.336, allocations: 131 kB / 483.8 MB, free: 15.33 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01502/3.351, allocations: 1.939 MB / 485.8 MB, free: 13.37 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/3.351, allocations: 0 / 485.8 MB, free: 13.37 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009875/3.361, allocations: 1.448 MB / 487.2 MB, free: 11.91 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008251/3.362, allocations: 49.88 kB / 487.3 MB, free: 11.87 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006129/3.368, allocations: 1.287 MB / 488.5 MB, free: 10.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001352/3.37, allocations: 1.098 MB / 489.6 MB, free: 9.422 MB / 410.7 MB Notification: Performance of SimCode: time 2.034e-06/3.37, allocations: 0 / 489.6 MB, free: 9.422 MB / 410.7 MB