Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ObjectStab_ObjectStab.Examples.KundurHJW.SystemPV.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 ObjectStab with version 1.1 Dev (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ObjectStab 1.1 Dev/package.mo) Running command: "" <> buildModelFMU(ObjectStab.Examples.KundurHJW.SystemPV,fileNamePrefix="ObjectStab_ObjectStab_Examples_KundurHJW_SystemPV",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(ObjectStab): time 1.593/1.593, allocations: 178.3 MB / 185.6 MB, free: 10.39 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.104/1.697, allocations: 46.04 MB / 231.6 MB, free: 12.28 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1876/1.885, allocations: 40.44 MB / 272.1 MB, free: 4.734 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.121/2.006, allocations: 69.83 MB / 341.9 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/2.006, allocations: 67.95 kB / 342 MB, free: 14.73 MB / 298.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ObjectStab 1.1 Dev/Base/wRefPin.mo:2:1-14:12:writable] Warning: Connector .ObjectStab.Base.wRefPin is not balanced: The number of potential variables (0) is not equal to the number of flow variables (2). Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 340 * Number of variables: 340 Notification: Performance of Generate backend data structure: time 0.2374/2.243, allocations: 21.25 MB / 363.2 MB, free: 67.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/2.244, allocations: 10.03 kB / 363.2 MB, free: 67.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006456/2.244, allocations: 138.9 kB / 363.4 MB, free: 67.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001257/2.245, allocations: 0.5784 MB / 363.9 MB, free: 67.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001473/2.246, allocations: 172.9 kB / 364.1 MB, free: 67.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002959/2.246, allocations: 76.47 kB / 364.2 MB, free: 67.4 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004374/2.25, allocations: 1.394 MB / 365.6 MB, free: 67.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003529/2.254, allocations: 1.135 MB / 366.7 MB, free: 67.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.06e-05/2.254, allocations: 0 / 366.7 MB, free: 67.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002204/2.254, allocations: 0.8438 kB / 366.7 MB, free: 67.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.995e-05/2.254, allocations: 34.53 kB / 366.8 MB, free: 67.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01609/2.27, allocations: 4.803 MB / 371.6 MB, free: 65.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004935/2.275, allocations: 1.328 MB / 372.9 MB, free: 64.86 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002376/2.278, allocations: 0.7805 MB / 373.7 MB, free: 64.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002737/2.278, allocations: 25.92 kB / 373.7 MB, free: 64.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00243/2.281, allocations: 0.7965 MB / 374.5 MB, free: 64.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=159): time 5.751e-06/2.281, allocations: 0.5 kB / 374.5 MB, free: 64.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=159): time 0.03495/2.316, allocations: 3.836 MB / 378.3 MB, free: 61.54 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.217e-05/2.316, allocations: 80.59 kB / 378.4 MB, free: 61.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000541/2.316, allocations: 325.1 kB / 378.7 MB, free: 61.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000334/2.317, allocations: 25.7 kB / 378.7 MB, free: 61.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001746/2.317, allocations: 388.3 kB / 379.1 MB, free: 60.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004632/2.317, allocations: 0.4925 MB / 379.6 MB, free: 60.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001596/2.317, allocations: 0 / 379.6 MB, free: 60.21 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/2.317, allocations: 393.4 kB / 380 MB, free: 59.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001611/2.319, allocations: 0.5586 MB / 380.6 MB, free: 59.26 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001716/2.321, allocations: 0.7588 MB / 381.3 MB, free: 58.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001791/2.323, allocations: 0.6388 MB / 382 MB, free: 57.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/2.323, allocations: 4 kB / 382 MB, free: 57.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.03992/2.363, allocations: 4.031 MB / 386 MB, free: 53.78 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/2.363, allocations: 4 kB / 386 MB, free: 53.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/2.363, allocations: 4 kB / 386 MB, free: 53.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0383/2.401, allocations: 3.598 MB / 389.6 MB, free: 50.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/2.402, allocations: 143.8 kB / 389.7 MB, free: 50.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04571/2.448, allocations: 10.72 MB / 400.5 MB, free: 39.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002328/2.45, allocations: 106.7 kB / 400.6 MB, free: 39.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002469/2.451, allocations: 52 kB / 400.6 MB, free: 39.04 MB / 298.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: L78_1.T2.vb:VARIABLE(flow=false unit = "1" ) type: Real L78_2.T1.ia:VARIABLE(flow=true unit = "1" ) type: Real L9.T.va:VARIABLE(flow=false unit = "1" ) type: Real L1011.T2.va:VARIABLE(flow=false unit = "1" ) type: Real T311.T1.ib:VARIABLE(flow=true unit = "1" ) type: Real T311.T1.ia:VARIABLE(flow=true unit = "1" ) type: Real PV_4.T.va:VARIABLE(flow=false unit = "1" ) type: Real PV_4.T.vb:VARIABLE(flow=false unit = "1" ) type: Real L7.T.vb:VARIABLE(flow=false unit = "1" ) type: Real L56.T2.va:VARIABLE(flow=false unit = "1" ) type: Real PV_1.T.va:VARIABLE(flow=false unit = "1" ) type: Real PV_1.T.vb:VARIABLE(flow=false unit = "1" ) type: Real L9.V:VARIABLE(unit = "1" ) "Voltage Amplitude" type: Real L7.V:VARIABLE(unit = "1" ) "Voltage Amplitude" type: Real T410.T1.ib:VARIABLE(flow=true unit = "1" ) type: Real T410.T1.ia:VARIABLE(flow=true unit = "1" ) type: Real T26.T1.ia:VARIABLE(flow=true unit = "1" ) type: Real T26.T1.ib:VARIABLE(flow=true unit = "1" ) type: Real T15.T1.ib:VARIABLE(flow=true unit = "1" ) type: Real T15.T1.ia:VARIABLE(flow=true unit = "1" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,PV_1.online,PV_2.online,PV_3.online,PV_4.online) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 87 * 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 {20 76} Notification: Performance of prepare postOptimizeDAE: time 0.0005448/2.451, allocations: 155.2 kB / 400.8 MB, free: 38.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002998/2.452, allocations: 86.88 kB / 400.8 MB, free: 38.8 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03477/2.486, allocations: 4.061 MB / 404.9 MB, free: 34.75 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.029e-05/2.486, allocations: 20 kB / 404.9 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/2.486, allocations: 4 kB / 404.9 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.29e-05/2.487, allocations: 7.969 kB / 404.9 MB, free: 34.72 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03746/2.524, allocations: 5.481 MB / 410.4 MB, free: 29.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.247e-05/2.524, allocations: 0 / 410.4 MB, free: 29.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/2.525, allocations: 103.8 kB / 410.5 MB, free: 29.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03716/2.562, allocations: 3.499 MB / 414 MB, free: 25.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004283/2.563, allocations: 7.984 kB / 414 MB, free: 25.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04216/2.605, allocations: 9.997 MB / 424 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/2.605, allocations: 7.875 kB / 424 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03374/2.639, allocations: 3.976 MB / 428 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03395/2.673, allocations: 4.353 MB / 432.4 MB, free: 7.191 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002622/2.673, allocations: 171.7 kB / 432.5 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004764/2.674, allocations: 7.906 kB / 432.5 MB, free: 6.996 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001924/2.675, allocations: 31.97 kB / 432.6 MB, free: 6.965 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003251/2.676, allocations: 77.19 kB / 432.6 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002006/2.676, allocations: 43.98 kB / 432.7 MB, free: 6.844 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.0003294/2.676, allocations: 251.1 kB / 432.9 MB, free: 6.598 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.003098/2.679, allocations: 0.5068 MB / 433.4 MB, free: 6.09 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,PV_1.online,PV_2.online,PV_3.online,PV_4.online) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 65 * 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 {20 74} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003823/2.68, allocations: 107.2 kB / 433.5 MB, free: 5.977 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.01161/2.692, allocations: 2.102 MB / 435.6 MB, free: 3.867 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.154e-05/2.692, allocations: 4 kB / 435.7 MB, free: 3.863 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01174/2.703, allocations: 1.423 MB / 437.1 MB, free: 2.434 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002362/2.706, allocations: 123 kB / 437.2 MB, free: 2.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009801/2.716, allocations: 1.728 MB / 438.9 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001589/2.717, allocations: 1.132 MB / 440.1 MB, free: 15.42 MB / 314.7 MB Notification: Performance of SimCode: time 1.803e-06/2.717, allocations: 0 / 440.1 MB, free: 15.42 MB / 314.7 MB