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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000904/0.0009042, allocations: 91.84 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009085/0.0009085, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 223.3 MB / 240 MB, free: 5.215 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1488/0.1488, allocations: 5.378 MB / 296.4 MB, free: 3.914 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000412/0.0004121, allocations: 8 kB / 362 MB, free: 14.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1218, allocations: 51.61 MB / 413.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleShadow): time 0.004874/0.1267, allocations: 3.807 MB / 417.4 MB, free: 6.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003154/0.1299, allocations: 1.501 MB / 418.9 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006542/0.1306, allocations: 11.94 kB / 418.9 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001409/0.132, allocations: 438.7 kB / 419.4 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008844/0.133, allocations: 214.6 kB / 419.6 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005359/0.1335, allocations: 127.8 kB / 419.7 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2331/0.3666, allocations: 26.61 MB / 446.3 MB, free: 32.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007787/0.3744, allocations: 5.617 MB / 451.9 MB, free: 30.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01194/0.3864, allocations: 6.339 MB / 458.3 MB, free: 27.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01763/0.4041, allocations: 8.024 MB / 466.3 MB, free: 24.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005766/0.4099, allocations: 0.9024 MB / 467.2 MB, free: 24.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009587/0.4195, allocations: 0.9103 MB / 468.1 MB, free: 24.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007724/0.4273, allocations: 2.921 MB / 471 MB, free: 23.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008856/0.4361, allocations: 2.73 MB / 473.7 MB, free: 21.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02458/0.4608, allocations: 23.22 MB / 497 MB, free: 5.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.4608, allocations: 4 kB / 497 MB, free: 5.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4608, allocations: 0 / 497 MB, free: 5.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0008669/0.4617, allocations: 0 / 497 MB, free: 5.32 MB / 350.1 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 0.09239/0.5541, allocations: 28.26 MB / 0.5129 GB, free: 9.004 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.5541, allocations: 12.03 kB / 0.5129 GB, free: 8.992 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006868/0.561, allocations: 1.118 MB / 0.514 GB, free: 7.863 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008971/0.57, allocations: 1.455 MB / 0.5154 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05987/0.6299, allocations: 20.65 MB / 0.5356 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007949/0.6307, allocations: 0.6295 MB / 0.5362 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004671/0.6354, allocations: 0.8163 MB / 0.537 GB, free: 408 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04803/0.6835, allocations: 16.89 MB / 0.5535 GB, free: 14.99 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005295/0.6841, allocations: 23.81 kB / 0.5535 GB, free: 14.97 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004513/0.6886, allocations: 352 kB / 0.5539 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002706/0.6889, allocations: 212 kB / 0.5541 GB, free: 14.42 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04806/0.737, allocations: 20.21 MB / 0.5738 GB, free: 10.19 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6266/1.364, allocations: 61.68 MB / 0.634 GB, free: 72.33 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03788/1.402, allocations: 24.99 MB / 0.6584 GB, free: 61.12 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01527/1.417, allocations: 8.67 MB / 0.6669 GB, free: 56.72 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000388/1.417, allocations: 72.73 kB / 0.667 GB, free: 56.71 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.567e-05/1.417, allocations: 76.95 kB / 0.6671 GB, free: 56.64 MB / 446.1 MB Notification: Performance of pre-optimization done (n=448): time 6.262e-06/1.417, allocations: 0 / 0.6671 GB, free: 56.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=448): time 0.1284/1.546, allocations: 51.51 MB / 0.7174 GB, free: 8.105 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.426e-05/1.546, allocations: 102.9 kB / 0.7175 GB, free: 7.992 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04097/1.587, allocations: 16.19 MB / 0.7333 GB, free: 7.98 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002766/1.59, allocations: 109.7 kB / 0.7334 GB, free: 7.867 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01389/1.604, allocations: 6.089 MB / 0.7393 GB, free: 2.207 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.004717/1.608, allocations: 1.583 MB / 0.7409 GB, free: 0.7109 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00366/1.612, allocations: 176 kB / 0.741 GB, free: 0.5391 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.001118/1.613, allocations: 0.6621 MB / 0.7417 GB, free: 15.87 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02205/1.635, allocations: 9.19 MB / 0.7507 GB, free: 6.66 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02479/1.66, allocations: 10.38 MB / 0.7608 GB, free: 11.94 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02475/1.685, allocations: 9.855 MB / 0.7704 GB, free: 2.039 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-05/1.685, allocations: 11.94 kB / 0.7704 GB, free: 2.027 MB / 494.1 MB Notification: Performance of matching and sorting (n=1134) (initialization): time 0.4001/2.085, allocations: 54.52 MB / 0.8237 GB, free: 130.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.144e-05/2.085, allocations: 15.09 kB / 0.8237 GB, free: 130.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-05/2.085, allocations: 22.91 kB / 0.8237 GB, free: 130.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04929/2.135, allocations: 30.54 MB / 0.8535 GB, free: 108.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00859/2.143, allocations: 1.572 MB / 0.8551 GB, free: 106.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7163/2.86, allocations: 225.3 MB / 1.075 GB, free: 56.01 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02554/2.885, allocations: 3.366 MB / 1.078 GB, free: 53.08 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004388/2.89, allocations: 384.9 kB / 1.079 GB, free: 52.7 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 105 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (840): * Single equations (assignments): 791 * 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 {47 200} Notification: Performance of prepare postOptimizeDAE: time 0.01562/2.905, allocations: 4.517 MB / 1.083 GB, free: 48.27 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007268/2.912, allocations: 1.153 MB / 1.084 GB, free: 47.11 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1249/3.037, allocations: 45.81 MB / 1.129 GB, free: 1.473 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-05/3.037, allocations: 47.98 kB / 1.129 GB, free: 1.426 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/3.037, allocations: 3.844 kB / 1.129 GB, free: 1.426 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001479/3.038, allocations: 19.92 kB / 1.129 GB, free: 1.406 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4619/3.5, allocations: 62.98 MB / 1.191 GB, free: 123.5 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.803e-05/3.5, allocations: 2.25 kB / 1.191 GB, free: 123.5 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002133/3.502, allocations: 465.1 kB / 1.191 GB, free: 123.5 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03043/3.532, allocations: 20.32 MB / 1.211 GB, free: 118.4 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001867/3.534, allocations: 120.5 kB / 1.211 GB, free: 118.3 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6704/4.205, allocations: 143.5 MB / 1.351 GB, free: 121.1 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/4.205, allocations: 0.5625 kB / 1.351 GB, free: 121.1 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.131/4.336, allocations: 44.85 MB / 1.395 GB, free: 112.9 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01148/4.347, allocations: 3.016 MB / 1.398 GB, free: 111.3 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007252/4.355, allocations: 73.81 kB / 1.398 GB, free: 111.2 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0164/4.371, allocations: 2.072 MB / 1.4 GB, free: 110.6 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001336/4.372, allocations: 275.6 kB / 1.4 GB, free: 110.5 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001897/4.374, allocations: 146.8 kB / 1.4 GB, free: 110.4 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.02764/4.402, allocations: 11.17 MB / 1.411 GB, free: 99.9 MB / 0.4982 GB Notification: Performance of sort global known variables: time 4.91e-07/4.402, allocations: 0 / 1.411 GB, free: 99.9 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.03026/4.432, allocations: 4.079 MB / 1.415 GB, free: 95.93 MB / 0.4982 GB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (250): * Single equations (assignments): 249 * 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 {48 154} Notification: Performance of Backend phase and start with SimCode phase: time 0.1279/4.56, allocations: 45.53 MB / 1.46 GB, free: 50.52 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.09803/4.658, allocations: 40.65 MB / 1.499 GB, free: 9.047 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/4.658, allocations: 0 / 1.499 GB, free: 9.047 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.3415/5, allocations: 23.7 MB / 1.523 GB, free: 128.1 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02247/5.022, allocations: 3.045 MB / 1.526 GB, free: 127.9 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.967/6.989, allocations: 192.4 MB / 1.713 GB, free: 114.3 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01866/7.007, allocations: 8.687 MB / 1.722 GB, free: 113.2 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.01889/7.026, allocations: 3.647 MB / 1.725 GB, free: 113.1 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01272/7.039, allocations: 5 MB / 1.73 GB, free: 109.2 MB / 0.4982 GB Notification: Performance of SimCode: time 1.413e-06/7.039, allocations: 1.75 kB / 1.73 GB, free: 109.2 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.294/8.333, allocations: 391 MB / 2.112 GB, free: 117.7 MB / 0.5138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001559/8.333, allocations: 212.6 kB / 2.112 GB, free: 117.5 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.94/24.27, allocations: 0 / 2.112 GB, free: 117.5 MB / 0.5138 GB (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) Environment - environmentSimulation: