Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.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.SimpleCellVoltageSource,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellVoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCellVoltageSource,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellVoltageSource",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.002182/0.002182, allocations: 182.4 kB / 7.461 MB, free: 2.508 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.111/1.111, 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.0008634/0.0008634, allocations: 99.86 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.02256/0.02256, allocations: 5.296 MB / 336.2 MB, free: 9.215 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2044/0.227, allocations: 59.61 MB / 395.8 MB, free: 69.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08009/0.3071, allocations: 51.61 MB / 447.4 MB, free: 17.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2397/0.5468, allocations: 82.13 MB / 0.5171 GB, free: 1.684 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001829/0.5471, allocations: 67.84 kB / 0.5172 GB, free: 1.652 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.03487/0.5819, allocations: 12.35 MB / 0.5292 GB, free: 7.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.582, allocations: 8 kB / 0.5292 GB, free: 7.262 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.865e-05/0.5821, allocations: 43.44 kB / 0.5293 GB, free: 7.219 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004149/0.5825, allocations: 322.9 kB / 0.5296 GB, free: 6.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.5825, allocations: 15.92 kB / 0.5296 GB, free: 6.895 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.908e-05/0.5826, allocations: 16 kB / 0.5296 GB, free: 6.879 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004829/0.5831, allocations: 279.9 kB / 0.5299 GB, free: 6.719 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003684/0.5834, allocations: 255.1 kB / 0.5301 GB, free: 6.512 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.5835, allocations: 0 / 0.5301 GB, free: 6.512 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.619e-05/0.5835, allocations: 0 / 0.5301 GB, free: 6.512 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.5835, allocations: 4 kB / 0.5301 GB, free: 6.508 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002004/0.5855, allocations: 1.356 MB / 0.5315 GB, free: 5.344 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002764/0.5858, allocations: 161.7 kB / 0.5316 GB, free: 5.238 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002274/0.586, allocations: 114.1 kB / 0.5317 GB, free: 5.156 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.5861, allocations: 0 / 0.5317 GB, free: 5.156 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.5861, allocations: 30.56 kB / 0.5318 GB, free: 5.117 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 9.41e-07/0.5861, allocations: 0 / 0.5318 GB, free: 5.117 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003858/0.5865, allocations: 185.2 kB / 0.5319 GB, free: 4.977 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.992e-05/0.5865, allocations: 59.41 kB / 0.532 GB, free: 4.906 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003761/0.5869, allocations: 339 kB / 0.5323 GB, free: 4.652 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.587, allocations: 25.7 kB / 0.5323 GB, free: 4.621 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.424e-05/0.5871, allocations: 171.8 kB / 0.5325 GB, free: 4.465 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.161e-05/0.5871, allocations: 38.39 kB / 0.5325 GB, free: 4.434 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.847e-05/0.5871, allocations: 0 / 0.5325 GB, free: 4.434 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.5872, allocations: 337.4 kB / 0.5329 GB, free: 4.105 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001626/0.5874, allocations: 94.92 kB / 0.533 GB, free: 4.059 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.5876, allocations: 137.2 kB / 0.5331 GB, free: 3.961 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.5878, allocations: 102.4 kB / 0.5332 GB, free: 3.906 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.5878, allocations: 3.938 kB / 0.5332 GB, free: 3.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008182/0.5886, allocations: 360.8 kB / 0.5335 GB, free: 3.633 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.5886, allocations: 4 kB / 0.5335 GB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.5886, allocations: 3.938 kB / 0.5335 GB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005039/0.5891, allocations: 80.59 kB / 0.5336 GB, free: 3.547 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004115/0.5896, allocations: 75.95 kB / 0.5337 GB, free: 3.473 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001689/0.5913, allocations: 1.492 MB / 0.5351 GB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004159/0.5917, allocations: 39.89 kB / 0.5352 GB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.938e-05/0.5918, allocations: 15.92 kB / 0.5352 GB, free: 1.887 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001207/0.5919, allocations: 108.8 kB / 0.5353 GB, free: 1.773 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.466e-05/0.592, allocations: 35.61 kB / 0.5353 GB, free: 1.738 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001129/0.5921, allocations: 33.78 kB / 0.5354 GB, free: 1.715 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.5921, allocations: 0 / 0.5354 GB, free: 1.715 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.5921, allocations: 0 / 0.5354 GB, free: 1.715 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.5921, allocations: 0 / 0.5354 GB, free: 1.715 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007913/0.5929, allocations: 0.63 MB / 0.536 GB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.5929, allocations: 4.031 kB / 0.536 GB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000277/0.5932, allocations: 55.88 kB / 0.536 GB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.5932, allocations: 7.891 kB / 0.536 GB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.678e-05/0.5932, allocations: 0 / 0.536 GB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.5932, allocations: 7.984 kB / 0.5361 GB, free: 1.109 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.5933, allocations: 4 kB / 0.5361 GB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00032/0.5936, allocations: 293.8 kB / 0.5363 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004156/0.594, allocations: 0.6743 MB / 0.537 GB, free: 200 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.5941, allocations: 136.2 kB / 0.5371 GB, free: 64 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.708e-05/0.5942, allocations: 0 / 0.5371 GB, free: 64 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002908/0.5945, allocations: 27.97 kB / 0.5372 GB, free: 36 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.766e-05/0.5946, allocations: 7.984 kB / 0.5372 GB, free: 28 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.839e-05/0.5946, allocations: 11.48 kB / 0.5372 GB, free: 20 kB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002512/0.5948, allocations: 251.5 kB / 0.5374 GB, free: 15.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009085/0.5958, allocations: 95.44 kB / 0.5375 GB, free: 15.75 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001888/0.5959, allocations: 131.1 kB / 0.5376 GB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006011/0.5966, allocations: 331 kB / 0.5379 GB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.5966, allocations: 8.188 kB / 0.538 GB, free: 15.35 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000123/0.5967, allocations: 75.84 kB / 0.538 GB, free: 15.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003769/0.5971, allocations: 56.97 kB / 0.5381 GB, free: 15.26 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009931/0.5981, allocations: 390.1 kB / 0.5384 GB, free: 14.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004632/0.5986, allocations: 0.827 MB / 0.5393 GB, free: 14.04 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5986, allocations: 0 / 0.5393 GB, free: 14.04 MB / 362.7 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellVoltageSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellVoltageSource.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.pipe 2>&1)