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.001112/0.001112, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.35/1.35, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1432/0.1432, allocations: 5.378 MB / 295.8 MB, free: 2.957 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 67.89 kB / 361 MB, free: 14.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09358/0.09499, allocations: 50.62 MB / 411.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellVoltageSource): time 0.004735/0.09978, allocations: 3.276 MB / 414.9 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001952/0.1018, allocations: 1.219 MB / 416.1 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002981/0.1021, allocations: 8 kB / 416.1 MB, free: 6.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006136/0.1027, allocations: 210.8 kB / 416.3 MB, free: 6.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000456/0.1032, allocations: 139 kB / 416.5 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002138/0.1034, allocations: 107.8 kB / 416.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005684/0.104, allocations: 0.5176 MB / 417.1 MB, free: 5.863 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002277/0.1042, allocations: 128 kB / 417.2 MB, free: 5.734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002631/0.1045, allocations: 195.3 kB / 417.4 MB, free: 5.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002899/0.1048, allocations: 239 kB / 417.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.778e-05/0.1049, allocations: 48 kB / 417.7 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001209/0.105, allocations: 63.98 kB / 417.8 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.086e-05/0.1051, allocations: 95.67 kB / 417.9 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002024/0.1053, allocations: 214.9 kB / 418.1 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000473/0.1058, allocations: 0.4945 MB / 418.6 MB, free: 4.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1058, allocations: 0 / 418.6 MB, free: 4.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1058, allocations: 0 / 418.6 MB, free: 4.398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.1058, allocations: 0 / 418.6 MB, free: 4.398 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.001912/0.1078, allocations: 0.7829 MB / 419.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.1078, allocations: 12.03 kB / 419.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.131e-05/0.1079, allocations: 54.73 kB / 419.4 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.688e-05/0.108, allocations: 40.47 kB / 419.5 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009646/0.109, allocations: 460 kB / 419.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.036e-05/0.109, allocations: 20.38 kB / 419.9 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.082e-05/0.109, allocations: 24 kB / 419.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004999/0.1095, allocations: 279.3 kB / 420.2 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.709e-06/0.1096, allocations: 0 / 420.2 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.623e-05/0.1096, allocations: 12 kB / 420.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.1096, allocations: 4 kB / 420.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005478/0.1102, allocations: 236.9 kB / 420.5 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001981/0.1122, allocations: 1.273 MB / 421.7 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003676/0.1125, allocations: 146.5 kB / 421.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002811/0.1128, allocations: 104.8 kB / 422 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.1129, allocations: 0 / 422 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.1129, allocations: 30.56 kB / 422 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.232e-06/0.1129, allocations: 0 / 422 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007133/0.1136, allocations: 253.5 kB / 422.3 MB, free: 484 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.828e-05/0.1137, allocations: 55.34 kB / 422.3 MB, free: 416 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003507/0.114, allocations: 373.7 kB / 422.7 MB, free: 32 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.1602/0.2743, allocations: 28.22 kB / 422.7 MB, free: 48.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/0.2745, allocations: 204.9 kB / 422.9 MB, free: 48.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.64e-05/0.2745, allocations: 28.36 kB / 422.9 MB, free: 48.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.2746, allocations: 52.42 kB / 423 MB, free: 48.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.195e-05/0.2747, allocations: 346.4 kB / 423.3 MB, free: 47.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002802/0.275, allocations: 92.7 kB / 423.4 MB, free: 47.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002682/0.2753, allocations: 128.2 kB / 423.5 MB, free: 47.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004545/0.2757, allocations: 199.7 kB / 423.7 MB, free: 47.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.2757, allocations: 1.906 kB / 423.7 MB, free: 47.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001047/0.2768, allocations: 347.4 kB / 424.1 MB, free: 47.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.2768, allocations: 5.719 kB / 424.1 MB, free: 47.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.2768, allocations: 4.438 kB / 424.1 MB, free: 47.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004852/0.2773, allocations: 79.3 kB / 424.2 MB, free: 47.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000299/0.2776, allocations: 56.75 kB / 424.2 MB, free: 47.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001416/0.2791, allocations: 1.558 MB / 425.8 MB, free: 46.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003411/0.2794, allocations: 38.23 kB / 425.8 MB, free: 46.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.377e-05/0.2794, allocations: 13.02 kB / 425.8 MB, free: 46.32 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.0001193/0.2796, allocations: 152.4 kB / 426 MB, free: 46.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.303e-05/0.2796, allocations: 35.09 kB / 426 MB, free: 46.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.109e-05/0.2797, allocations: 31.12 kB / 426 MB, free: 46.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.2797, allocations: 0 / 426 MB, free: 46.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.2797, allocations: 0.625 kB / 426 MB, free: 46.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.2797, allocations: 0 / 426 MB, free: 46.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007282/0.2804, allocations: 0.5931 MB / 426.6 MB, free: 45.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2805, allocations: 0 / 426.6 MB, free: 45.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001661/0.2806, allocations: 34.77 kB / 426.7 MB, free: 45.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2806, allocations: 3.719 kB / 426.7 MB, free: 45.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.2807, allocations: 6.531 kB / 426.7 MB, free: 45.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.2807, allocations: 4.5 kB / 426.7 MB, free: 45.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.2807, allocations: 0 / 426.7 MB, free: 45.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004032/0.2811, allocations: 288.6 kB / 427 MB, free: 45.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.671e-05/0.2812, allocations: 118.5 kB / 427.1 MB, free: 45.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.284e-05/0.2812, allocations: 6.984 kB / 427.1 MB, free: 45.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002242/0.2814, allocations: 20.94 kB / 427.1 MB, free: 45.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.716e-05/0.2815, allocations: 9.656 kB / 427.1 MB, free: 45.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.337e-06/0.2815, allocations: 1.125 kB / 427.1 MB, free: 45.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001973/0.2817, allocations: 265.3 kB / 427.4 MB, free: 45.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2817, allocations: 0 / 427.4 MB, free: 45.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003289/0.282, allocations: 73.44 kB / 427.4 MB, free: 45.51 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.000566/0.2826, allocations: 0.8211 MB / 428.3 MB, free: 44.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000676/0.2833, allocations: 349.9 kB / 428.6 MB, free: 44.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2833, allocations: 0 / 428.6 MB, free: 44.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001888/0.2835, allocations: 77.38 kB / 428.7 MB, free: 44.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007716/0.2843, allocations: 72.03 kB / 428.8 MB, free: 44.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003796/0.2881, allocations: 3.098 MB / 431.9 MB, free: 42.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000164/0.2883, allocations: 0.7712 MB / 432.6 MB, free: 42.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001914/0.2885, allocations: 44.91 kB / 432.7 MB, free: 42.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.2886, allocations: 105.6 kB / 432.8 MB, free: 42.06 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2886, allocations: 0 / 432.8 MB, free: 42.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02574/0.3144, allocations: 6.911 MB / 439.7 MB, free: 41.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/10.74, allocations: 15.16 kB / 439.7 MB, free: 41.37 MB / 350.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 & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellVoltageSource.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.pipe 2>&1)