Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.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.SimpleCellTemperatureCharacteristic,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellTemperatureCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellTemperatureCharacteristic",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.002345/0.002345, allocations: 184.8 kB / 7.463 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.131/1.131, allocations: 221.4 MB / 229.3 MB, free: 3.012 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.0008965/0.0008967, allocations: 109.5 kB / 280.1 MB, free: 1.293 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02269/0.02269, allocations: 5.296 MB / 336.2 MB, free: 9.281 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2016/0.2243, allocations: 59.61 MB / 395.8 MB, free: 69.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07267/0.297, allocations: 51.61 MB / 447.4 MB, free: 17.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2399/0.5369, allocations: 84.85 MB / 0.5198 GB, free: 15.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001844/0.5372, allocations: 67.84 kB / 0.5198 GB, free: 14.99 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: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.04412/0.5813, allocations: 15.98 MB / 0.5354 GB, free: 1.496 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.5813, allocations: 11.94 kB / 0.5355 GB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001346/0.5815, allocations: 63.25 kB / 0.5355 GB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005967/0.5821, allocations: 422.2 kB / 0.5359 GB, free: 1.039 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.5821, allocations: 12 kB / 0.5359 GB, free: 1.027 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.781e-05/0.5822, allocations: 24 kB / 0.536 GB, free: 1.004 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006752/0.5829, allocations: 390.2 kB / 0.5363 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005617/0.5834, allocations: 370.8 kB / 0.5367 GB, free: 0.5078 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.5835, allocations: 0 / 0.5367 GB, free: 0.5078 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.866e-05/0.5835, allocations: 0 / 0.5367 GB, free: 0.5078 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.5835, allocations: 8 kB / 0.5367 GB, free: 0.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002727/0.5862, allocations: 1.712 MB / 0.5384 GB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006394/0.5869, allocations: 317.1 kB / 0.5387 GB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003256/0.5872, allocations: 188.5 kB / 0.5388 GB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.922e-05/0.5873, allocations: 7.984 kB / 0.5389 GB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003226/0.5876, allocations: 244.3 kB / 0.5391 GB, free: 14.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 1.984e-06/0.5876, allocations: 0 / 0.5391 GB, free: 14.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.003143/0.5908, allocations: 0.6829 MB / 0.5398 GB, free: 13.96 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.664e-05/0.5908, allocations: 135.6 kB / 0.5399 GB, free: 13.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004269/0.5913, allocations: 375.6 kB / 0.5402 GB, free: 13.51 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.146e-05/0.5913, allocations: 25.7 kB / 0.5403 GB, free: 13.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.5914, allocations: 195.7 kB / 0.5405 GB, free: 13.31 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.234e-05/0.5915, allocations: 96.19 kB / 0.5405 GB, free: 13.23 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.736e-05/0.5916, allocations: 8 kB / 0.5406 GB, free: 13.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.5917, allocations: 360.9 kB / 0.5409 GB, free: 12.88 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002407/0.5919, allocations: 143.4 kB / 0.541 GB, free: 12.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002698/0.5922, allocations: 208 kB / 0.5412 GB, free: 12.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002822/0.5925, allocations: 164.9 kB / 0.5414 GB, free: 12.55 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.5925, allocations: 0 / 0.5414 GB, free: 12.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.003488/0.596, allocations: 0.8142 MB / 0.5422 GB, free: 11.87 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002042/0.5962, allocations: 0.5319 MB / 0.5427 GB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.5962, allocations: 0 / 0.5427 GB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002824/0.5991, allocations: 0.5664 MB / 0.5433 GB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004547/0.5995, allocations: 99.36 kB / 0.5434 GB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006471/0.606, allocations: 3.951 MB / 0.5472 GB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007447/0.6068, allocations: 95.69 kB / 0.5473 GB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.63e-05/0.6069, allocations: 15.92 kB / 0.5473 GB, free: 6.957 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.288e-06/0.6069, allocations: 7.906 kB / 0.5473 GB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003356/0.6102, allocations: 0.7315 MB / 0.548 GB, free: 6.359 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.6103, allocations: 4 kB / 0.548 GB, free: 6.355 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002755/0.613, allocations: 0.5597 MB / 0.5486 GB, free: 5.855 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004223/0.6135, allocations: 95.86 kB / 0.5487 GB, free: 5.762 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006352/0.6198, allocations: 3.948 MB / 0.5525 GB, free: 2.113 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006956/0.6205, allocations: 83.7 kB / 0.5526 GB, free: 2.031 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.669e-05/0.6206, allocations: 18.91 kB / 0.5526 GB, free: 2.016 MB / 362.7 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,triangleAndStep.integerToReal.u,$PRE.triangleAndStep.trapezoid.T_start,triangleAndStep.trapezoid.T_start,$PRE.triangleAndStep.trapezoid.count,triangleAndStep.trapezoid.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002276/0.6209, allocations: 108.9 kB / 0.5527 GB, free: 1.902 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001353/0.621, allocations: 54.78 kB / 0.5528 GB, free: 1.852 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003244/0.6243, allocations: 0.7175 MB / 0.5535 GB, free: 1.27 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.6243, allocations: 4 kB / 0.5535 GB, free: 1.266 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.6243, allocations: 0 / 0.5535 GB, free: 1.266 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.6243, allocations: 3.984 kB / 0.5535 GB, free: 1.262 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004061/0.6284, allocations: 1.403 MB / 0.5549 GB, free: 116 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.6284, allocations: 0 / 0.5549 GB, free: 116 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003896/0.6288, allocations: 87.66 kB / 0.555 GB, free: 32 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002329/0.6311, allocations: 495.5 kB / 0.5554 GB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.018e-05/0.6312, allocations: 3.984 kB / 0.5554 GB, free: 15.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004643/0.6358, allocations: 2.213 MB / 0.5576 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.6358, allocations: 3.984 kB / 0.5576 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0033/0.6391, allocations: 0.8101 MB / 0.5584 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003328/0.6425, allocations: 1.181 MB / 0.5595 GB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002968/0.6428, allocations: 168.3 kB / 0.5597 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.6429, allocations: 11.89 kB / 0.5597 GB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005669/0.6435, allocations: 67.94 kB / 0.5598 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.6436, allocations: 34.7 kB / 0.5598 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.618e-05/0.6437, allocations: 11.36 kB / 0.5598 GB, free: 11.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003443/0.644, allocations: 297.5 kB / 0.5601 GB, free: 11.37 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002072/0.6461, allocations: 261.2 kB / 0.5603 GB, free: 11.12 MB / 378.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: 4 ($whenCondition1,triangleAndStep.integerToReal.u,triangleAndStep.trapezoid.T_start,triangleAndStep.trapezoid.count) * Number of discrete states: 1 (triangleAndStep.trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002676/0.6464, allocations: 150.5 kB / 0.5605 GB, free: 10.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00189/0.6483, allocations: 1.094 MB / 0.5616 GB, free: 10.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.6483, allocations: 3.938 kB / 0.5616 GB, free: 10.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000458/0.6488, allocations: 303.3 kB / 0.5619 GB, free: 9.805 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004781/0.6492, allocations: 82.06 kB / 0.5619 GB, free: 9.746 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001721/0.651, allocations: 0.6568 MB / 0.5626 GB, free: 9.137 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005228/0.6515, allocations: 0.8866 MB / 0.5634 GB, free: 8.227 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.6515, allocations: 0 / 0.5634 GB, free: 8.227 MB / 378.7 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellTemperatureCharacteristic_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellTemperatureCharacteristic.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe 2>&1)