Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.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.SimpleModule,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModule,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModule",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.001174/0.001174, allocations: 108 kB / 15.6 MB, free: 132 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.0012/0.0012, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.343/1.343, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1249/0.1249, allocations: 5.391 MB / 295.8 MB, free: 2.797 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001279, allocations: 71.89 kB / 361 MB, free: 14.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08011/0.08141, allocations: 50.61 MB / 411.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModule): time 0.005091/0.08653, allocations: 4.375 MB / 416 MB, free: 6.957 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002396/0.08895, allocations: 1.593 MB / 417.6 MB, free: 5.359 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003718/0.08934, allocations: 11.94 kB / 417.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007941/0.09015, allocations: 297 kB / 417.9 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005353/0.09071, allocations: 230.4 kB / 418.1 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003902/0.09111, allocations: 207.6 kB / 418.3 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1589/0.2501, allocations: 25.59 MB / 443.9 MB, free: 32.42 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007802/0.2579, allocations: 7.952 MB / 451.9 MB, free: 29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01022/0.2682, allocations: 9.325 MB / 461.2 MB, free: 24.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01471/0.2829, allocations: 10.82 MB / 472 MB, free: 19.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006331/0.2893, allocations: 2.706 MB / 474.7 MB, free: 19.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008276/0.2975, allocations: 2.707 MB / 477.4 MB, free: 19.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005996/0.3036, allocations: 5.116 MB / 482.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01693/0.3205, allocations: 9.534 MB / 492.1 MB, free: 6.438 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02746/0.348, allocations: 28.7 MB / 0.5086 GB, free: 12.44 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.3481, allocations: 8 kB / 0.5086 GB, free: 12.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3481, allocations: 0 / 0.5086 GB, free: 12.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000579/0.3486, allocations: 0 / 0.5086 GB, free: 12.43 MB / 382.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.09615/0.4448, allocations: 30.8 MB / 0.5387 GB, free: 13.55 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.4449, allocations: 8.031 kB / 0.5387 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003882/0.4487, allocations: 1.122 MB / 0.5398 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004985/0.4537, allocations: 1.452 MB / 0.5412 GB, free: 10.94 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05111/0.5049, allocations: 18.79 MB / 0.5595 GB, free: 8.242 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006615/0.5056, allocations: 0.6295 MB / 0.5602 GB, free: 7.609 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004543/0.5101, allocations: 0.8203 MB / 0.561 GB, free: 6.789 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03622/0.5464, allocations: 15.68 MB / 0.5763 GB, free: 6.598 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002129/0.5466, allocations: 23.81 kB / 0.5763 GB, free: 6.574 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002201/0.5488, allocations: 348 kB / 0.5766 GB, free: 6.234 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001527/0.549, allocations: 212 kB / 0.5768 GB, free: 6.027 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3217/0.8707, allocations: 17.59 MB / 0.594 GB, free: 96.04 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09342/0.9642, allocations: 57.53 MB / 0.6502 GB, free: 67.46 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02997/0.9942, allocations: 21.37 MB / 0.671 GB, free: 53.14 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01057/1.005, allocations: 7.453 MB / 0.6783 GB, free: 48.53 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001661/1.005, allocations: 75.39 kB / 0.6784 GB, free: 48.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.695e-05/1.005, allocations: 77.33 kB / 0.6785 GB, free: 48.38 MB / 446.1 MB Notification: Performance of pre-optimization done (n=448): time 5.68e-06/1.005, allocations: 0 / 0.6785 GB, free: 48.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=448): time 0.09632/1.101, allocations: 36.3 MB / 0.7139 GB, free: 12.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/1.101, allocations: 98.92 kB / 0.714 GB, free: 12.12 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02268/1.124, allocations: 15.19 MB / 0.7289 GB, free: 13.12 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00153/1.126, allocations: 109.7 kB / 0.729 GB, free: 13 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006017/1.132, allocations: 6.09 MB / 0.7349 GB, free: 7.016 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002657/1.134, allocations: 1.576 MB / 0.7364 GB, free: 5.418 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00495/1.139, allocations: 2.101 MB / 0.7385 GB, free: 3.301 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.359e-05/1.139, allocations: 301.1 kB / 0.7388 GB, free: 3.004 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01491/1.154, allocations: 7.648 MB / 0.7463 GB, free: 11.34 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01601/1.17, allocations: 8.838 MB / 0.7549 GB, free: 2.16 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03009/1.201, allocations: 14.39 MB / 0.7689 GB, free: 3.371 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.412e-05/1.201, allocations: 8 kB / 0.7689 GB, free: 3.363 MB / 494.1 MB Notification: Performance of matching and sorting (n=1134) (initialization): time 0.2817/1.482, allocations: 39.94 MB / 0.808 GB, free: 131.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.981e-05/1.482, allocations: 16.41 kB / 0.808 GB, free: 131.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.515e-05/1.482, allocations: 27.72 kB / 0.808 GB, free: 131.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04761/1.53, allocations: 26.04 MB / 0.8334 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006912/1.537, allocations: 1.5 MB / 0.8349 GB, free: 126.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5084/2.046, allocations: 203 MB / 1.033 GB, free: 91.78 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0176/2.063, allocations: 2.558 MB / 1.036 GB, free: 90.81 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002316/2.066, allocations: 379.7 kB / 1.036 GB, free: 90.66 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 (not torn): 48 * Torn equation systems: 1 * 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): 48 systems {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 (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(47,200)} Notification: Performance of prepare postOptimizeDAE: time 0.008072/2.074, allocations: 4.517 MB / 1.04 GB, free: 88.04 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00285/2.076, allocations: 1.155 MB / 1.042 GB, free: 87.49 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0877/2.164, allocations: 31.81 MB / 1.073 GB, free: 59.27 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.071e-05/2.164, allocations: 40 kB / 1.073 GB, free: 59.23 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/2.164, allocations: 0 / 1.073 GB, free: 59.23 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.836e-05/2.164, allocations: 31.8 kB / 1.073 GB, free: 59.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1181/2.282, allocations: 46.63 MB / 1.118 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.687e-05/2.282, allocations: 0.9375 kB / 1.118 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00178/2.284, allocations: 450.8 kB / 1.119 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02476/2.309, allocations: 15.48 MB / 1.134 GB, free: 12.84 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001523/2.311, allocations: 111.9 kB / 1.134 GB, free: 12.73 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.444/2.755, allocations: 115 MB / 1.246 GB, free: 84.75 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/2.755, allocations: 0 / 1.246 GB, free: 84.75 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08568/2.84, allocations: 30.88 MB / 1.276 GB, free: 54.03 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006793/2.847, allocations: 2.653 MB / 1.279 GB, free: 51.4 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002868/2.85, allocations: 80.56 kB / 1.279 GB, free: 51.33 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009239/2.859, allocations: 1.393 MB / 1.28 GB, free: 49.93 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000536/2.86, allocations: 279.5 kB / 1.281 GB, free: 49.66 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005071/2.86, allocations: 139.9 kB / 1.281 GB, free: 49.53 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.01462/2.875, allocations: 10.49 MB / 1.291 GB, free: 39.11 MB / 0.4982 GB Notification: Performance of sort global known variables: time 4.31e-07/2.875, allocations: 0 / 1.291 GB, free: 39.11 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01329/2.888, allocations: 3.716 MB / 1.295 GB, free: 35.5 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(48,154)} Notification: Performance of Backend phase and start with SimCode phase: time 0.2602/3.149, allocations: 31.55 MB / 1.326 GB, free: 123.2 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.08923/3.238, allocations: 39.91 MB / 1.364 GB, free: 116.9 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/3.238, allocations: 0 / 1.364 GB, free: 116.9 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.05147/3.289, allocations: 17.29 MB / 1.381 GB, free: 113 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01483/3.304, allocations: 3.111 MB / 1.384 GB, free: 111.8 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5871/3.891, allocations: 242.2 MB / 1.621 GB, free: 87.61 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0118/3.903, allocations: 8.688 MB / 1.629 GB, free: 84.89 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.01359/3.917, allocations: 3.889 MB / 1.633 GB, free: 83.17 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008172/3.925, allocations: 5.001 MB / 1.638 GB, free: 78.29 MB / 0.5138 GB Notification: Performance of SimCode: time 8.51e-07/3.925, allocations: 0 / 1.638 GB, free: 78.29 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9104/4.835, allocations: 395.1 MB / 2.024 GB, free: 65.46 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.51/26.34, allocations: 7.609 kB / 2.024 GB, free: 65.45 MB / 0.5138 GB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule_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_SimpleModule.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe 2>&1)