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.006381/0.006381, allocations: 100.4 kB / 15.73 MB, free: 5.953 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.001371/0.001371, allocations: 190.1 kB / 16.67 MB, free: 5.875 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.47/1.47, 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.03056/0.03056, allocations: 5.4 MB / 295.9 MB, free: 9.453 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002825/0.002825, allocations: 67.89 kB / 412.3 MB, free: 22.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1072, allocations: 50.62 MB / 462.9 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModule): time 0.006346/0.1136, allocations: 4.389 MB / 467.3 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002797/0.1165, allocations: 1.585 MB / 468.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003221/0.1168, allocations: 8 kB / 468.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008336/0.1176, allocations: 293 kB / 469.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005661/0.1183, allocations: 238.3 kB / 469.4 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004344/0.1187, allocations: 215.6 kB / 469.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02516/0.1439, allocations: 25.69 MB / 495.3 MB, free: 3.824 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0108/0.1547, allocations: 7.943 MB / 0.4915 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01394/0.1687, allocations: 9.337 MB / 0.5006 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2477/0.4165, allocations: 10.85 MB / 0.5112 GB, free: 20.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01184/0.4284, allocations: 2.704 MB / 0.5138 GB, free: 20.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01152/0.4399, allocations: 2.715 MB / 0.5165 GB, free: 20.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00975/0.4497, allocations: 5.117 MB / 0.5215 GB, free: 19.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01974/0.4695, allocations: 9.536 MB / 0.5308 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03/0.4995, allocations: 28.99 MB / 0.5591 GB, free: 10.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.4996, allocations: 3.125 kB / 0.5591 GB, free: 10.55 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.4996, allocations: 0 / 0.5591 GB, free: 10.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007545/0.5004, allocations: 0 / 0.5591 GB, free: 10.55 MB / 398.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.114/0.6144, allocations: 31.84 MB / 0.5902 GB, free: 11.94 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/0.6145, allocations: 8.031 kB / 0.5902 GB, free: 11.93 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007803/0.6223, allocations: 1.122 MB / 0.5913 GB, free: 10.8 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00974/0.6321, allocations: 1.526 MB / 0.5928 GB, free: 9.27 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05914/0.6913, allocations: 19.06 MB / 0.6114 GB, free: 6.52 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008752/0.6922, allocations: 0.6295 MB / 0.612 GB, free: 5.887 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005199/0.6974, allocations: 0.8188 MB / 0.6128 GB, free: 5.07 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05026/0.7477, allocations: 15.67 MB / 0.6281 GB, free: 4.941 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003696/0.7481, allocations: 26.72 kB / 0.6281 GB, free: 4.93 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005152/0.7533, allocations: 352 kB / 0.6285 GB, free: 4.586 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002227/0.7535, allocations: 212 kB / 0.6287 GB, free: 4.379 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04799/0.8015, allocations: 17.6 MB / 0.6459 GB, free: 2.887 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.346/1.148, allocations: 57.34 MB / 0.7019 GB, free: 139.4 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03698/1.185, allocations: 21.37 MB / 0.7227 GB, free: 132.9 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01275/1.197, allocations: 7.443 MB / 0.73 GB, free: 130.6 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002706/1.198, allocations: 73.8 kB / 0.7301 GB, free: 130.6 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.012e-05/1.198, allocations: 77.67 kB / 0.7301 GB, free: 130.5 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=448): time 6.212e-06/1.198, allocations: 3.812 kB / 0.7301 GB, free: 130.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=448): time 0.1081/1.306, allocations: 36.36 MB / 0.7657 GB, free: 110.7 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.889e-05/1.306, allocations: 94.92 kB / 0.7657 GB, free: 110.6 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03182/1.338, allocations: 15.2 MB / 0.7806 GB, free: 95.69 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.002131/1.34, allocations: 109.7 kB / 0.7807 GB, free: 95.58 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.006335/1.346, allocations: 6.205 MB / 0.7867 GB, free: 90.54 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002491/1.349, allocations: 1.661 MB / 0.7884 GB, free: 88.95 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005294/1.354, allocations: 2.11 MB / 0.7904 GB, free: 86.82 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.064e-05/1.354, allocations: 301.1 kB / 0.7907 GB, free: 86.52 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01291/1.367, allocations: 7.644 MB / 0.7982 GB, free: 78.87 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01596/1.383, allocations: 8.837 MB / 0.8068 GB, free: 69.7 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02737/1.411, allocations: 14.39 MB / 0.8209 GB, free: 54.98 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.049e-05/1.411, allocations: 12 kB / 0.8209 GB, free: 54.97 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1134) (initialization): time 0.1139/1.525, allocations: 40 MB / 0.8599 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.459e-05/1.525, allocations: 15.98 kB / 0.86 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.045e-05/1.525, allocations: 24.66 kB / 0.86 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05189/1.577, allocations: 26.01 MB / 0.8854 GB, free: 4.527 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00837/1.585, allocations: 1.498 MB / 0.8868 GB, free: 3.027 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5775/2.163, allocations: 202.9 MB / 1.085 GB, free: 20.84 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01917/2.182, allocations: 2.589 MB / 1.088 GB, free: 18.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002671/2.184, allocations: 379.3 kB / 1.088 GB, free: 18.47 MB / 0.545 GB 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.009146/2.194, allocations: 4.519 MB / 1.092 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003801/2.197, allocations: 1.225 MB / 1.094 GB, free: 12.85 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3416/2.539, allocations: 31.8 MB / 1.125 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.649e-05/2.539, allocations: 41.81 kB / 1.125 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/2.539, allocations: 6.094 kB / 1.125 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000126/2.539, allocations: 20.53 kB / 1.125 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1391/2.678, allocations: 46.48 MB / 1.17 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.268e-05/2.678, allocations: 0 / 1.17 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001864/2.68, allocations: 450.8 kB / 1.17 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.027/2.707, allocations: 15.46 MB / 1.186 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001863/2.709, allocations: 110.9 kB / 1.186 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2877/2.997, allocations: 115 MB / 1.298 GB, free: 40.07 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/2.997, allocations: 0 / 1.298 GB, free: 40.07 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09185/3.089, allocations: 30.94 MB / 1.328 GB, free: 9.465 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.2731/3.362, allocations: 2.712 MB / 1.331 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003798/3.366, allocations: 74.62 kB / 1.331 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0116/3.377, allocations: 1.395 MB / 1.332 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009336/3.378, allocations: 275.7 kB / 1.333 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009623/3.379, allocations: 143.7 kB / 1.333 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.02199/3.401, allocations: 10.5 MB / 1.343 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.8e-07/3.401, allocations: 2.438 kB / 1.343 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01997/3.421, allocations: 3.722 MB / 1.347 GB, free: 159.2 MB / 0.5606 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.09043/3.512, allocations: 31.62 MB / 1.377 GB, free: 155.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.07684/3.589, allocations: 33.19 MB / 1.41 GB, free: 136.1 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.258e-06/3.589, allocations: 0 / 1.41 GB, free: 136.1 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.05327/3.642, allocations: 17.31 MB / 1.427 GB, free: 118.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01932/3.661, allocations: 3.117 MB / 1.43 GB, free: 115.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.705/4.366, allocations: 171.4 MB / 1.597 GB, free: 146.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01048/4.377, allocations: 8.677 MB / 1.606 GB, free: 143.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.01038/4.387, allocations: 3.782 MB / 1.609 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008501/4.396, allocations: 4.998 MB / 1.614 GB, free: 139.2 MB / 0.5606 GB Notification: Performance of SimCode: time 7.42e-07/4.396, allocations: 0 / 1.614 GB, free: 139.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.022/5.418, allocations: 397.1 MB / 2.002 GB, free: 135 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 56.82/62.24, allocations: 13.06 kB / 2.002 GB, free: 135 MB / 0.5606 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)