Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.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.SimpleModuleShadow,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleShadow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleShadow,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleShadow",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.00216/0.00216, allocations: 177.8 kB / 7.455 MB, free: 2.512 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.096/1.096, allocations: 221.4 MB / 229.3 MB, free: 3.02 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.0009049/0.0009049, allocations: 98.31 kB / 280.1 MB, free: 1.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02306/0.02306, allocations: 5.299 MB / 336.2 MB, free: 9.234 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1836/0.2067, allocations: 59.61 MB / 395.8 MB, free: 69.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06951/0.2762, allocations: 51.6 MB / 447.4 MB, free: 17.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2197/0.496, allocations: 84.41 MB / 0.5193 GB, free: 15.72 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001809/0.4962, allocations: 66.53 kB / 0.5194 GB, free: 15.69 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.812/2.309, allocations: 486.5 MB / 0.9945 GB, free: 57.73 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/2.309, allocations: 7.281 kB / 0.9945 GB, free: 57.73 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008924/2.318, allocations: 1.449 MB / 0.996 GB, free: 56.97 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02876/2.346, allocations: 11.6 MB / 1.007 GB, free: 55.44 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004131/2.347, allocations: 266.7 kB / 1.008 GB, free: 55.44 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00526/2.352, allocations: 492.1 kB / 1.008 GB, free: 55.43 MB / 458.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05275/2.405, allocations: 32.56 MB / 1.04 GB, free: 55.39 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03917/2.444, allocations: 18.14 MB / 1.058 GB, free: 53.26 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003391/2.445, allocations: 22.41 kB / 1.058 GB, free: 53.25 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003608/2.448, allocations: 11.31 kB / 1.058 GB, free: 53.25 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001416/2.448, allocations: 211.3 kB / 1.058 GB, free: 53.25 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.132/2.58, allocations: 72.65 MB / 1.129 GB, free: 9.562 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03102/2.611, allocations: 20.55 MB / 1.149 GB, free: 8.629 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1659/2.777, allocations: 13.64 MB / 1.162 GB, free: 107.2 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003761/2.778, allocations: 88.39 kB / 1.162 GB, free: 107.2 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.187e-05/2.778, allocations: 91.17 kB / 1.162 GB, free: 107.2 MB / 474.8 MB Notification: Performance of pre-optimization done (n=592): time 6.613e-06/2.778, allocations: 0 / 1.162 GB, free: 107.2 MB / 474.8 MB Notification: Performance of matching and sorting (n=592): time 0.1977/2.976, allocations: 60.02 MB / 1.221 GB, free: 101.8 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.854e-05/2.976, allocations: 113.7 kB / 1.221 GB, free: 101.8 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03019/3.006, allocations: 16.49 MB / 1.237 GB, free: 101.2 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00313/3.009, allocations: 25.7 kB / 1.237 GB, free: 101.2 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00445/3.013, allocations: 3.77 MB / 1.241 GB, free: 99.83 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003719/3.017, allocations: 1.966 MB / 1.243 GB, free: 98.81 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003487/3.021, allocations: 0 / 1.243 GB, free: 98.81 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.000632/3.021, allocations: 0.7138 MB / 1.243 GB, free: 98.49 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01836/3.04, allocations: 13.27 MB / 1.256 GB, free: 98.46 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01883/3.059, allocations: 14.41 MB / 1.27 GB, free: 94.5 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02061/3.079, allocations: 14.08 MB / 1.284 GB, free: 84.23 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.556e-05/3.079, allocations: 6.438 kB / 1.284 GB, free: 84.23 MB / 474.8 MB Notification: Performance of matching and sorting (n=1278) (initialization): time 0.2451/3.324, allocations: 76.11 MB / 1.359 GB, free: 13.22 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/3.325, allocations: 6.031 kB / 1.359 GB, free: 13.22 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.978e-05/3.325, allocations: 23.91 kB / 1.359 GB, free: 13.2 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3361/3.661, allocations: 66.43 MB / 1.423 GB, free: 92.12 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01039/3.671, allocations: 1.92 MB / 1.425 GB, free: 92 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.8607/4.532, allocations: 287.6 MB / 1.706 GB, free: 84.25 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02581/4.558, allocations: 3.436 MB / 1.71 GB, free: 84.25 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003981/4.562, allocations: 0.5423 MB / 1.71 GB, free: 84.25 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.005409/4.567, allocations: 251.1 kB / 1.71 GB, free: 84.15 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005186/4.572, allocations: 1.082 MB / 1.711 GB, free: 83.59 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2002/4.773, allocations: 61.46 MB / 1.771 GB, free: 79.21 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.374e-05/4.773, allocations: 57 kB / 1.771 GB, free: 79.21 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/4.773, allocations: 3.125 kB / 1.771 GB, free: 79.21 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001782/4.773, allocations: 32.92 kB / 1.771 GB, free: 79.21 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02878/4.802, allocations: 14.57 MB / 1.786 GB, free: 74.91 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.52e-05/4.802, allocations: 0 / 1.786 GB, free: 74.91 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002939/4.805, allocations: 0.6171 MB / 1.786 GB, free: 74.86 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3334/5.138, allocations: 58.72 MB / 1.844 GB, free: 93.83 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003153/5.141, allocations: 207.8 kB / 1.844 GB, free: 93.83 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6714/5.813, allocations: 197.9 MB / 2.037 GB, free: 89.84 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/5.813, allocations: 3.906 kB / 2.037 GB, free: 89.84 MB / 474.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2011/6.014, allocations: 60.38 MB / 2.096 GB, free: 82.32 MB / 474.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.3675/6.382, allocations: 60.94 MB / 2.156 GB, free: 85.39 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01286/6.394, allocations: 4.565 MB / 2.16 GB, free: 84.87 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007443/6.402, allocations: 5.594 kB / 2.16 GB, free: 84.87 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01836/6.42, allocations: 2.03 MB / 2.162 GB, free: 84.87 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001158/6.421, allocations: 284.8 kB / 2.162 GB, free: 84.86 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002727/6.424, allocations: 317.1 kB / 2.163 GB, free: 84.86 MB / 474.8 MB Notification: Performance of sort global known variables: time 0.02221/6.446, allocations: 12.04 MB / 2.174 GB, free: 84.54 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.03249/6.479, allocations: 5.362 MB / 2.18 GB, free: 84.37 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.002819/6.482, allocations: 168.8 kB / 2.18 GB, free: 84.28 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.119/6.601, allocations: 47.67 MB / 2.226 GB, free: 75.62 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/6.601, allocations: 1.438 kB / 2.226 GB, free: 75.62 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.08536/6.686, allocations: 25.89 MB / 2.252 GB, free: 72.01 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01626/6.703, allocations: 2.23 MB / 2.254 GB, free: 71.81 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09569/6.798, allocations: 33.65 MB / 2.287 GB, free: 50.31 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01204/6.81, allocations: 9.406 MB / 2.296 GB, free: 43.3 MB / 474.8 MB Notification: Performance of SimCode: time 7.72e-07/6.81, allocations: 0 / 2.296 GB, free: 43.3 MB / 474.8 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleShadow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleShadow.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.pipe 2>&1)