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"}) [: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.143/2.143, allocations: 222 MB / 229.3 MB, free: 15.6 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2728/2.416, allocations: 56.11 MB / 285.4 MB, free: 7.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/2.546, allocations: 50.49 MB / 335.9 MB, free: 5.23 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3712/2.918, allocations: 74.6 MB / 410.5 MB, free: 6.426 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002538/2.918, allocations: 66.66 kB / 410.5 MB, free: 6.395 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.08431/3.002, allocations: 16.32 MB / 426.9 MB, free: 8.992 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.778e-05/3.002, allocations: 8 kB / 426.9 MB, free: 8.984 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006732/3.009, allocations: 0.4988 MB / 427.4 MB, free: 8.492 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001594/3.011, allocations: 0.5572 MB / 427.9 MB, free: 7.891 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005686/3.011, allocations: 198.4 kB / 428.1 MB, free: 7.664 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004026/3.012, allocations: 40 kB / 428.2 MB, free: 7.625 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004617/3.016, allocations: 0.7343 MB / 428.9 MB, free: 6.891 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004227/3.021, allocations: 0.683 MB / 429.6 MB, free: 6.203 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.615e-05/3.021, allocations: 0 / 429.6 MB, free: 6.203 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001848/3.021, allocations: 3.938 kB / 429.6 MB, free: 6.199 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.632e-05/3.021, allocations: 23.89 kB / 429.6 MB, free: 6.176 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0159/3.037, allocations: 3.065 MB / 432.7 MB, free: 2.957 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003151/3.04, allocations: 0.6017 MB / 433.3 MB, free: 2.34 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002385/3.043, allocations: 0.4914 MB / 433.8 MB, free: 1.848 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002168/3.043, allocations: 12.64 kB / 433.8 MB, free: 1.836 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.415e-05/3.043, allocations: 47.11 kB / 433.8 MB, free: 1.781 MB / 346.7 MB Notification: Performance of pre-optimization done (n=77): time 5.911e-06/3.043, allocations: 4 kB / 433.8 MB, free: 1.777 MB / 346.7 MB Notification: Performance of matching and sorting (n=77): time 0.03767/3.081, allocations: 4.106 MB / 437.9 MB, free: 13.65 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/3.081, allocations: 60.06 kB / 438 MB, free: 13.58 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001121/3.082, allocations: 474.2 kB / 438.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003036/3.082, allocations: 25.7 kB / 438.5 MB, free: 13.08 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000257/3.083, allocations: 264.2 kB / 438.7 MB, free: 12.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005522/3.083, allocations: 252.2 kB / 439 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/3.083, allocations: 4 kB / 439 MB, free: 12.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002369/3.084, allocations: 378.8 kB / 439.4 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001325/3.085, allocations: 394.4 kB / 439.7 MB, free: 11.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001552/3.086, allocations: 470.7 kB / 440.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001734/3.088, allocations: 438 kB / 440.6 MB, free: 10.89 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/3.088, allocations: 0 / 440.6 MB, free: 10.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.02718/3.116, allocations: 4.194 MB / 444.8 MB, free: 6.68 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.126e-05/3.116, allocations: 4 kB / 444.8 MB, free: 6.676 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.465e-05/3.116, allocations: 7.938 kB / 444.8 MB, free: 6.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01347/3.129, allocations: 1.784 MB / 446.6 MB, free: 4.883 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001587/3.131, allocations: 96.41 kB / 446.7 MB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03299/3.164, allocations: 6.255 MB / 453 MB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002261/3.166, allocations: 143.3 kB / 453.1 MB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001867/3.166, allocations: 27.98 kB / 453.1 MB, free: 14.23 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 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.0005027/3.167, allocations: 132.1 kB / 453.3 MB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003959/3.167, allocations: 75.16 kB / 453.3 MB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02842/3.196, allocations: 4.199 MB / 457.5 MB, free: 9.801 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.2e-05/3.196, allocations: 8 kB / 457.5 MB, free: 9.793 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/3.196, allocations: 4 kB / 457.5 MB, free: 9.789 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.987e-05/3.196, allocations: 3.984 kB / 457.6 MB, free: 9.785 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002797/3.199, allocations: 0.9241 MB / 458.5 MB, free: 8.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.385e-05/3.199, allocations: 0 / 458.5 MB, free: 8.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001391/3.2, allocations: 79.91 kB / 458.6 MB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01421/3.214, allocations: 1.706 MB / 460.3 MB, free: 7.031 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004064/3.215, allocations: 4 kB / 460.3 MB, free: 7.027 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03004/3.245, allocations: 5.625 MB / 465.9 MB, free: 1.285 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.231e-06/3.245, allocations: 0 / 465.9 MB, free: 1.285 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02834/3.273, allocations: 4.893 MB / 470.8 MB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0409/3.314, allocations: 5.926 MB / 476.7 MB, free: 6.414 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005211/3.315, allocations: 171.9 kB / 476.9 MB, free: 6.227 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005543/3.316, allocations: 4 kB / 476.9 MB, free: 6.223 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003321/3.319, allocations: 107.9 kB / 477 MB, free: 6.117 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009901/3.32, allocations: 112.5 kB / 477.1 MB, free: 6.008 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002282/3.32, allocations: 16 kB / 477.1 MB, free: 5.992 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.00146/3.322, allocations: 370.9 kB / 477.5 MB, free: 5.633 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004618/3.326, allocations: 307.5 kB / 477.8 MB, free: 5.332 MB / 394.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.0007562/3.327, allocations: 119.2 kB / 477.9 MB, free: 5.207 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01588/3.343, allocations: 1.86 MB / 479.7 MB, free: 3.328 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-05/3.343, allocations: 0 / 479.7 MB, free: 3.328 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01321/3.356, allocations: 1.393 MB / 481.1 MB, free: 1.926 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/3.358, allocations: 38 kB / 481.2 MB, free: 1.891 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008277/3.366, allocations: 1.096 MB / 482.3 MB, free: 0.7578 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001816/3.368, allocations: 1.02 MB / 483.3 MB, free: 15.71 MB / 410.7 MB Notification: Performance of SimCode: time 2.645e-06/3.368, allocations: 0 / 483.3 MB, free: 15.71 MB / 410.7 MB