Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr iPSL_iPSL.Examples.Machines.PSAT.Order5_1test2.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.Order5_1test2,fileNamePrefix="iPSL_iPSL_Examples_Machines_PSAT_Order5_1test2",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.02/2.02, allocations: 222 MB / 229.3 MB, free: 15.62 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2309/2.251, allocations: 56.1 MB / 285.4 MB, free: 7.848 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/2.364, allocations: 50.49 MB / 335.9 MB, free: 5.246 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3208/2.685, allocations: 74.68 MB / 410.5 MB, free: 6.34 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/2.685, allocations: 66.22 kB / 410.6 MB, free: 6.312 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.08854/2.774, allocations: 15.55 MB / 426.2 MB, free: 9.461 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/2.774, allocations: 12 kB / 426.2 MB, free: 9.449 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005387/2.779, allocations: 496.8 kB / 426.7 MB, free: 9.008 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001832/2.781, allocations: 0.5562 MB / 427.2 MB, free: 8.543 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003944/2.782, allocations: 199.7 kB / 427.4 MB, free: 8.312 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000249/2.782, allocations: 48.39 kB / 427.5 MB, free: 8.266 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002759/2.785, allocations: 0.7347 MB / 428.2 MB, free: 7.625 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00241/2.787, allocations: 0.6986 MB / 428.9 MB, free: 6.922 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.799e-05/2.787, allocations: 3.938 kB / 428.9 MB, free: 6.918 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001428/2.787, allocations: 3.984 kB / 428.9 MB, free: 6.914 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.381e-05/2.787, allocations: 19.94 kB / 428.9 MB, free: 6.895 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01178/2.799, allocations: 3.108 MB / 432 MB, free: 3.633 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002144/2.801, allocations: 0.6132 MB / 432.6 MB, free: 3.008 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00187/2.803, allocations: 0.5031 MB / 433.1 MB, free: 2.504 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001614/2.804, allocations: 8.656 kB / 433.2 MB, free: 2.496 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.803e-05/2.804, allocations: 43.16 kB / 433.2 MB, free: 2.445 MB / 346.7 MB Notification: Performance of pre-optimization done (n=78): time 4.027e-06/2.804, allocations: 0 / 433.2 MB, free: 2.445 MB / 346.7 MB Notification: Performance of matching and sorting (n=78): time 0.02715/2.831, allocations: 4.129 MB / 437.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.727e-05/2.831, allocations: 64.06 kB / 437.4 MB, free: 14.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001158/2.832, allocations: 478.4 kB / 437.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002554/2.832, allocations: 25.7 kB / 437.9 MB, free: 13.72 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002126/2.832, allocations: 264.2 kB / 438.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004031/2.833, allocations: 264 kB / 438.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/2.833, allocations: 0 / 438.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001905/2.833, allocations: 374.8 kB / 438.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001319/2.835, allocations: 401.5 kB / 439.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001698/2.836, allocations: 487.5 kB / 439.6 MB, free: 11.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001556/2.838, allocations: 446.7 kB / 440.1 MB, free: 11.49 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.878e-06/2.838, allocations: 3.906 kB / 440.1 MB, free: 11.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.02727/2.865, allocations: 4.214 MB / 444.3 MB, free: 7.258 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.958e-05/2.865, allocations: 8 kB / 444.3 MB, free: 7.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.385e-05/2.865, allocations: 3.984 kB / 444.3 MB, free: 7.246 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01237/2.878, allocations: 1.772 MB / 446.1 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/2.879, allocations: 95.83 kB / 446.2 MB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03723/2.916, allocations: 6.236 MB / 452.4 MB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003368/2.92, allocations: 147.3 kB / 452.5 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003847/2.92, allocations: 24 kB / 452.6 MB, free: 14.84 MB / 378.7 MB Warning: Assuming fixed start value for the following 3 variables: order5Type1_Inputs_Outputs.e2d:VARIABLE(start = order5Type1_Inputs_Outputs.e2d0 ) "d-axis sub-transient voltage" type: Real order5Type1_Inputs_Outputs.e1d:VARIABLE(start = order5Type1_Inputs_Outputs.e1d0 ) "d-axis transient voltage" type: Real order5Type1_Inputs_Outputs.e1q:VARIABLE(start = order5Type1_Inputs_Outputs.e1q0 ) "q-axis transient voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pwLine1.ir.re:VARIABLE() "Real part of complex number" type: Real pwLine2.ir.re:VARIABLE() "Real part of complex number" type: Real pwLine2.ir.im:VARIABLE() "Imaginary 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 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 pwLine2.is.im:VARIABLE() "Imaginary part of complex number" type: Real pwLine1.is.re:VARIABLE() "Real part of complex number" type: Real pwLine3.ir.im:VARIABLE() "Imaginary part of complex number" type: Real pwLine3.ir.re:VARIABLE() "Real 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 (59): * Single equations (assignments): 58 * 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.0007126/2.921, allocations: 145.1 kB / 452.7 MB, free: 14.69 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005359/2.921, allocations: 71.06 kB / 452.8 MB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03022/2.952, allocations: 4.238 MB / 457 MB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-05/2.952, allocations: 15.91 kB / 457 MB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/2.952, allocations: 0 / 457 MB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.151e-05/2.952, allocations: 3.984 kB / 457 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003295/2.955, allocations: 0.9397 MB / 458 MB, free: 9.363 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.149e-05/2.955, allocations: 0 / 458 MB, free: 9.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001698/2.957, allocations: 75.91 kB / 458 MB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01316/2.97, allocations: 1.71 MB / 459.8 MB, free: 7.574 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003181/2.97, allocations: 3.984 kB / 459.8 MB, free: 7.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02652/2.997, allocations: 5.617 MB / 465.4 MB, free: 1.832 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/2.997, allocations: 0 / 465.4 MB, free: 1.832 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02918/3.026, allocations: 4.92 MB / 470.3 MB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03093/3.057, allocations: 5.996 MB / 476.3 MB, free: 6.863 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003761/3.058, allocations: 171.9 kB / 476.5 MB, free: 6.676 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003307/3.058, allocations: 3.984 kB / 476.5 MB, free: 6.672 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002163/3.06, allocations: 107.9 kB / 476.6 MB, free: 6.566 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005493/3.061, allocations: 104.6 kB / 476.7 MB, free: 6.465 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001341/3.061, allocations: 19.98 kB / 476.7 MB, free: 6.445 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0008817/3.062, allocations: 371 kB / 477.1 MB, free: 6.086 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002628/3.064, allocations: 311.5 kB / 477.4 MB, free: 5.781 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (order5Type1_Inputs_Outputs.delta,order5Type1_Inputs_Outputs.w,order5Type1_Inputs_Outputs.e1q,order5Type1_Inputs_Outputs.e1d,order5Type1_Inputs_Outputs.e2d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * 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.0005046/3.065, allocations: 131.1 kB / 477.5 MB, free: 5.641 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01043/3.075, allocations: 1.876 MB / 479.4 MB, free: 3.75 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/3.076, allocations: 0 / 479.4 MB, free: 3.75 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008467/3.084, allocations: 1.393 MB / 480.8 MB, free: 2.348 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000685/3.085, allocations: 41.98 kB / 480.8 MB, free: 2.309 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005571/3.09, allocations: 1.128 MB / 481.9 MB, free: 1.148 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001368/3.092, allocations: 1.02 MB / 482.9 MB, free: 104 kB / 394.7 MB Notification: Performance of SimCode: time 1.833e-06/3.092, allocations: 0 / 482.9 MB, free: 104 kB / 394.7 MB