Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModule,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModule,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModule",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 loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002052/0.002052, allocations: 182.9 kB / 7.461 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.105/1.105, allocations: 221.4 MB / 229.3 MB, free: 3.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008796/0.0008796, allocations: 97 kB / 280.1 MB, free: 1.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02271/0.02271, allocations: 5.289 MB / 336.2 MB, free: 9.223 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1999/0.2226, allocations: 59.6 MB / 395.8 MB, free: 69.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07736/0.3, allocations: 51.6 MB / 447.4 MB, free: 17.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2284/0.5284, allocations: 84.29 MB / 0.5192 GB, free: 15.58 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001765/0.5287, allocations: 63.47 kB / 0.5193 GB, free: 15.55 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: 2129 * Number of variables: 2129 Notification: Performance of Generate backend data structure: time 1.838/2.366, allocations: 486.3 MB / 0.9942 GB, free: 98.68 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/2.366, allocations: 11.41 kB / 0.9942 GB, free: 98.68 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008565/2.375, allocations: 1.449 MB / 0.9956 GB, free: 97.92 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02837/2.403, allocations: 11.61 MB / 1.007 GB, free: 96.38 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003299/2.404, allocations: 273.3 kB / 1.007 GB, free: 96.38 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004821/2.409, allocations: 484.7 kB / 1.008 GB, free: 96.38 MB / 458.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05347/2.462, allocations: 32.56 MB / 1.039 GB, free: 96.34 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03717/2.499, allocations: 18.14 MB / 1.057 GB, free: 94.82 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001863/2.499, allocations: 23.62 kB / 1.057 GB, free: 94.8 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002368/2.502, allocations: 14.81 kB / 1.057 GB, free: 94.8 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001255/2.502, allocations: 211.1 kB / 1.057 GB, free: 94.8 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1295/2.631, allocations: 72.63 MB / 1.128 GB, free: 52.52 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02731/2.659, allocations: 20.56 MB / 1.148 GB, free: 35.73 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01962/2.678, allocations: 13.64 MB / 1.162 GB, free: 22.91 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004234/2.679, allocations: 79.42 kB / 1.162 GB, free: 22.84 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.362e-05/2.679, allocations: 107.1 kB / 1.162 GB, free: 22.72 MB / 458.8 MB Notification: Performance of pre-optimization done (n=592): time 6.232e-06/2.679, allocations: 0 / 1.162 GB, free: 22.72 MB / 458.8 MB Notification: Performance of matching and sorting (n=592): time 0.3561/3.035, allocations: 60 MB / 1.221 GB, free: 86.3 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.643e-05/3.035, allocations: 110.9 kB / 1.221 GB, free: 86.23 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03338/3.069, allocations: 16.49 MB / 1.237 GB, free: 85.71 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.003024/3.072, allocations: 25.7 kB / 1.237 GB, free: 85.68 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00427/3.076, allocations: 3.768 MB / 1.24 GB, free: 84.94 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004318/3.08, allocations: 1.965 MB / 1.242 GB, free: 83.93 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004646/3.085, allocations: 4 kB / 1.242 GB, free: 83.92 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0009548/3.086, allocations: 0.7187 MB / 1.243 GB, free: 83.59 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01924/3.105, allocations: 13.27 MB / 1.256 GB, free: 83.57 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02123/3.126, allocations: 14.41 MB / 1.27 GB, free: 82.67 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02143/3.148, allocations: 14.08 MB / 1.284 GB, free: 81.46 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.583e-05/3.148, allocations: 6.531 kB / 1.284 GB, free: 81.46 MB / 458.8 MB Notification: Performance of matching and sorting (n=1278) (initialization): time 0.2427/3.391, allocations: 76.11 MB / 1.358 GB, free: 24.96 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/3.391, allocations: 8 kB / 1.358 GB, free: 24.96 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.134e-05/3.391, allocations: 24 kB / 1.358 GB, free: 24.93 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3464/3.737, allocations: 66.43 MB / 1.423 GB, free: 78.57 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009953/3.747, allocations: 1.914 MB / 1.425 GB, free: 78.46 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7042/4.451, allocations: 287.6 MB / 1.706 GB, free: 70.55 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02669/4.478, allocations: 3.441 MB / 1.709 GB, free: 69.62 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004753/4.483, allocations: 0.542 MB / 1.71 GB, free: 69.54 MB / 474.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: variableResistor.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real module.cell[33].diode.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real [48] module.cell[1].diode.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real [48] module.cell[17].diode.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real [48] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (936): * Single equations (assignments): 887 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 48 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 48 {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {51 244} Notification: Performance of prepare postOptimizeDAE: time 0.006551/4.49, allocations: 255 kB / 1.71 GB, free: 69.42 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005688/4.495, allocations: 1.081 MB / 1.711 GB, free: 68.84 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3414/4.837, allocations: 61.46 MB / 1.771 GB, free: 89.36 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.21e-05/4.837, allocations: 56.75 kB / 1.771 GB, free: 89.36 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/4.837, allocations: 3.75 kB / 1.771 GB, free: 89.36 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000173/4.837, allocations: 28.69 kB / 1.771 GB, free: 89.36 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02378/4.861, allocations: 14.57 MB / 1.785 GB, free: 89.04 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.924e-05/4.861, allocations: 0 / 1.785 GB, free: 89.04 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003063/4.864, allocations: 0.622 MB / 1.786 GB, free: 89.01 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1698/5.034, allocations: 58.71 MB / 1.843 GB, free: 81.67 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00286/5.037, allocations: 214.5 kB / 1.843 GB, free: 81.67 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6332/5.67, allocations: 197.9 MB / 2.037 GB, free: 53.54 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.206e-06/5.67, allocations: 0 / 2.037 GB, free: 53.54 MB / 474.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.3345/6.005, allocations: 60.38 MB / 2.096 GB, free: 89.98 MB / 474.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2041/6.209, allocations: 60.94 MB / 2.155 GB, free: 81.48 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01299/6.222, allocations: 4.572 MB / 2.16 GB, free: 79.84 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008183/6.23, allocations: 0 / 2.16 GB, free: 79.84 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01771/6.248, allocations: 2.024 MB / 2.162 GB, free: 78.26 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001159/6.249, allocations: 286.8 kB / 2.162 GB, free: 78.01 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002332/6.251, allocations: 318.5 kB / 2.162 GB, free: 77.74 MB / 474.8 MB Notification: Performance of sort global known variables: time 0.02066/6.272, allocations: 12.04 MB / 2.174 GB, free: 69.6 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.02975/6.302, allocations: 5.359 MB / 2.179 GB, free: 64.39 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (298): * Single equations (assignments): 297 * 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 {51 247} Notification: Performance of Backend phase and start with SimCode phase: time 0.002956/6.305, allocations: 165.9 kB / 2.179 GB, free: 64.27 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.2683/6.573, allocations: 47.67 MB / 2.226 GB, free: 87.28 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/6.573, allocations: 0 / 2.226 GB, free: 87.28 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.08074/6.654, allocations: 25.88 MB / 2.251 GB, free: 83.68 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01396/6.668, allocations: 2.247 MB / 2.253 GB, free: 83.48 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08207/6.75, allocations: 33.65 MB / 2.286 GB, free: 78.85 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01281/6.763, allocations: 9.409 MB / 2.295 GB, free: 77.7 MB / 474.8 MB Notification: Performance of SimCode: time 1.072e-06/6.763, allocations: 4 kB / 2.295 GB, free: 77.7 MB / 474.8 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModule_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModule.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe 2>&1)