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/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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006148/0.006148, allocations: 98.77 kB / 15.73 MB, free: 6.031 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.001714/0.001714, allocations: 194 kB / 16.67 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.03061/0.03061, allocations: 5.403 MB / 295.9 MB, free: 9.445 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002897/0.002897, allocations: 55.91 kB / 412.3 MB, free: 23.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1178, allocations: 50.62 MB / 462.9 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellVoltageSource): time 0.005024/0.1229, allocations: 3.28 MB / 466.2 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001981/0.1249, allocations: 1.223 MB / 467.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002523/0.1252, allocations: 4 kB / 467.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005743/0.1258, allocations: 218.7 kB / 467.6 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003642/0.1261, allocations: 142.9 kB / 467.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001932/0.1263, allocations: 107.9 kB / 467.9 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005425/0.1269, allocations: 0.5247 MB / 468.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002378/0.1271, allocations: 112.1 kB / 468.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002267/0.1274, allocations: 203.2 kB / 468.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002943/0.1277, allocations: 239.1 kB / 469 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.88e-05/0.1278, allocations: 48 kB / 469 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001221/0.1279, allocations: 59.98 kB / 469.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.585e-05/0.128, allocations: 107.6 kB / 469.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002037/0.1282, allocations: 203 kB / 469.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005649/0.1288, allocations: 0.5058 MB / 469.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1288, allocations: 0 / 469.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.095e-06/0.1288, allocations: 0 / 469.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.1288, allocations: 3.938 kB / 469.9 MB, free: 13.36 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001879/0.1307, allocations: 0.7904 MB / 470.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.1307, allocations: 12.03 kB / 470.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.978e-05/0.1308, allocations: 62.72 kB / 470.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.65e-05/0.1309, allocations: 36.7 kB / 470.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.1319, allocations: 468.5 kB / 471.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.959e-05/0.132, allocations: 20.38 kB / 471.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.279e-05/0.132, allocations: 16 kB / 471.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005431/0.1326, allocations: 291.3 kB / 471.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.1326, allocations: 0 / 471.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.721e-05/0.1326, allocations: 7.938 kB / 471.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.1326, allocations: 8 kB / 471.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005838/0.1332, allocations: 232.9 kB / 471.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002105/0.1353, allocations: 1.262 MB / 473.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003872/0.1357, allocations: 150.5 kB / 473.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003083/0.1361, allocations: 96.78 kB / 473.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.1361, allocations: 4 kB / 473.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.1361, allocations: 34.56 kB / 473.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.312e-06/0.1361, allocations: 0 / 473.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007507/0.1369, allocations: 249.3 kB / 473.6 MB, free: 9.426 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.04e-05/0.1369, allocations: 59.39 kB / 473.6 MB, free: 9.355 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004147/0.1374, allocations: 365.7 kB / 474 MB, free: 8.988 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.348e-05/0.1374, allocations: 29.7 kB / 474 MB, free: 8.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/0.1376, allocations: 220.2 kB / 474.2 MB, free: 8.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.598e-05/0.1376, allocations: 27.78 kB / 474.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/0.1377, allocations: 53.64 kB / 474.3 MB, free: 8.645 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.1379, allocations: 346.7 kB / 474.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002605/0.1381, allocations: 87.94 kB / 474.7 MB, free: 8.211 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002867/0.1384, allocations: 139 kB / 474.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004919/0.1389, allocations: 197.9 kB / 475.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1389, allocations: 0 / 475.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001016/0.14, allocations: 354 kB / 475.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.14, allocations: 8.094 kB / 475.4 MB, free: 7.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.14, allocations: 4 kB / 475.4 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004794/0.1405, allocations: 80.78 kB / 475.5 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000303/0.1408, allocations: 55.89 kB / 475.6 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001656/0.1425, allocations: 1.566 MB / 477.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003024/0.1428, allocations: 35.91 kB / 477.2 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.403e-05/0.1428, allocations: 7.984 kB / 477.2 MB, free: 5.605 MB / 350.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001702/0.143, allocations: 149.7 kB / 477.3 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.387e-05/0.1431, allocations: 35.77 kB / 477.4 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.131e-05/0.1432, allocations: 35.06 kB / 477.4 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1432, allocations: 0 / 477.4 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1432, allocations: 4 kB / 477.4 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1432, allocations: 3.984 kB / 477.4 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009873/0.1442, allocations: 0.5889 MB / 478 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1442, allocations: 3.938 kB / 478 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001728/0.1444, allocations: 27.97 kB / 478 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1444, allocations: 0 / 478 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.1444, allocations: 0 / 478 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.1444, allocations: 4 kB / 478 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1444, allocations: 0 / 478 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005365/0.145, allocations: 307.9 kB / 478.3 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.1451, allocations: 116.9 kB / 478.4 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.098e-05/0.1451, allocations: 4 kB / 478.4 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002196/0.1454, allocations: 15.98 kB / 478.5 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.039e-05/0.1454, allocations: 15.92 kB / 478.5 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.1454, allocations: 4 kB / 478.5 MB, free: 4.195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002915/0.1457, allocations: 263.2 kB / 478.7 MB, free: 3.941 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1457, allocations: 0 / 478.7 MB, free: 3.941 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003803/0.1461, allocations: 67.89 kB / 478.8 MB, free: 3.875 MB / 350.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008842/0.147, allocations: 0.8268 MB / 479.6 MB, free: 3.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008169/0.1479, allocations: 343.4 kB / 480 MB, free: 2.668 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1479, allocations: 0 / 480 MB, free: 2.668 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002124/0.1481, allocations: 71.89 kB / 480 MB, free: 2.598 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005057/0.1486, allocations: 82.19 kB / 480.1 MB, free: 2.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004848/0.1535, allocations: 3.068 MB / 483.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004145/0.1539, allocations: 0.7717 MB / 484 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001856/0.1541, allocations: 42.95 kB / 484 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001793/0.1543, allocations: 107.4 kB / 484.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1543, allocations: 3.938 kB / 484.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03418/0.1885, allocations: 7.042 MB / 491.1 MB, free: 7.512 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12, allocations: 7.984 kB / 491.2 MB, free: 7.504 MB / 366.1 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/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)