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.008217/0.008218, allocations: 99.59 kB / 15.73 MB, free: 6.484 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.001839/0.001839, allocations: 192.2 kB / 16.68 MB, free: 6.367 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.495/1.495, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1542/0.1542, allocations: 5.378 MB / 295.9 MB, free: 2.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001365, allocations: 67.84 kB / 412.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2773, allocations: 50.61 MB / 462.9 MB, free: 21.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModule): time 0.005205/0.2826, allocations: 4.395 MB / 467.3 MB, free: 18.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002613/0.2852, allocations: 1.587 MB / 468.9 MB, free: 17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004523/0.2857, allocations: 11.97 kB / 468.9 MB, free: 17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009567/0.2867, allocations: 315.5 kB / 469.2 MB, free: 16.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005466/0.2872, allocations: 246.8 kB / 469.5 MB, free: 16.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004069/0.2877, allocations: 209.9 kB / 469.7 MB, free: 16.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0178/0.3055, allocations: 25.7 MB / 495.4 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01023/0.3157, allocations: 7.951 MB / 0.4915 GB, free: 8.781 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01594/0.3317, allocations: 9.345 MB / 0.5006 GB, free: 15.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02221/0.354, allocations: 10.85 MB / 0.5112 GB, free: 4.516 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00768/0.3617, allocations: 2.707 MB / 0.5139 GB, free: 1.809 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008931/0.3707, allocations: 2.711 MB / 0.5165 GB, free: 15.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00849/0.3792, allocations: 5.119 MB / 0.5215 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02113/0.4003, allocations: 9.535 MB / 0.5308 GB, free: 400 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03846/0.4388, allocations: 29 MB / 0.5592 GB, free: 3.305 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.4389, allocations: 0 / 0.5592 GB, free: 3.305 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.4389, allocations: 0 / 0.5592 GB, free: 3.305 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0009359/0.4398, allocations: 4 kB / 0.5592 GB, free: 3.301 MB / 430.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.533/0.9729, allocations: 31.82 MB / 0.5902 GB, free: 77.93 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.321e-05/0.973, allocations: 9.812 kB / 0.5903 GB, free: 77.93 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008019/0.981, allocations: 1.119 MB / 0.5913 GB, free: 77.32 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01083/0.9919, allocations: 1.524 MB / 0.5928 GB, free: 76.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06936/1.061, allocations: 19.06 MB / 0.6114 GB, free: 67.38 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001156/1.062, allocations: 0.6222 MB / 0.6121 GB, free: 67.09 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005475/1.068, allocations: 0.8189 MB / 0.6129 GB, free: 66.82 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03783/1.106, allocations: 15.68 MB / 0.6282 GB, free: 53.51 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003498/1.106, allocations: 23.81 kB / 0.6282 GB, free: 53.48 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0045/1.111, allocations: 348 kB / 0.6285 GB, free: 53.14 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001625/1.111, allocations: 213.1 kB / 0.6287 GB, free: 52.94 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03752/1.148, allocations: 17.6 MB / 0.6459 GB, free: 35.32 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1149/1.263, allocations: 57.34 MB / 0.7019 GB, free: 9.648 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03656/1.3, allocations: 21.37 MB / 0.7228 GB, free: 3.641 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01491/1.315, allocations: 7.449 MB / 0.7301 GB, free: 12.18 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003/1.315, allocations: 71.45 kB / 0.7301 GB, free: 12.11 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.761e-05/1.315, allocations: 78.08 kB / 0.7302 GB, free: 12.02 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=448): time 5.861e-06/1.315, allocations: 0 / 0.7302 GB, free: 12.02 MB / 0.4982 GB Notification: Performance of matching and sorting (n=448): time 0.1132/1.428, allocations: 36.36 MB / 0.7657 GB, free: 7.598 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.133e-05/1.429, allocations: 102.9 kB / 0.7658 GB, free: 7.484 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03126/1.46, allocations: 15.19 MB / 0.7806 GB, free: 8.375 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.00182/1.462, allocations: 109.7 kB / 0.7807 GB, free: 8.262 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.008774/1.471, allocations: 6.206 MB / 0.7868 GB, free: 2.023 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002929/1.473, allocations: 1.654 MB / 0.7884 GB, free: 364 kB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2432/1.717, allocations: 2.105 MB / 0.7905 GB, free: 174.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.472e-05/1.717, allocations: 309.8 kB / 0.7908 GB, free: 173.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01872/1.736, allocations: 7.644 MB / 0.7982 GB, free: 173.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02057/1.756, allocations: 8.835 MB / 0.8069 GB, free: 169.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03135/1.788, allocations: 14.4 MB / 0.8209 GB, free: 164 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.606e-05/1.788, allocations: 7.625 kB / 0.8209 GB, free: 164 MB / 0.545 GB Notification: Performance of matching and sorting (n=1134) (initialization): time 0.1225/1.91, allocations: 39.99 MB / 0.86 GB, free: 138.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.739e-05/1.91, allocations: 20.94 kB / 0.86 GB, free: 138.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.735e-05/1.91, allocations: 20 kB / 0.86 GB, free: 138.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04585/1.956, allocations: 26.01 MB / 0.8854 GB, free: 112 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007422/1.964, allocations: 1.498 MB / 0.8869 GB, free: 110.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6022/2.566, allocations: 202.9 MB / 1.085 GB, free: 133 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01757/2.583, allocations: 2.589 MB / 1.088 GB, free: 131 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002467/2.586, allocations: 379.7 kB / 1.088 GB, free: 130.6 MB / 0.5607 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.00886/2.595, allocations: 4.517 MB / 1.092 GB, free: 126.2 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004629/2.599, allocations: 1.219 MB / 1.094 GB, free: 125.7 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1107/2.71, allocations: 31.8 MB / 1.125 GB, free: 94.05 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.173e-05/2.71, allocations: 44 kB / 1.125 GB, free: 94.01 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/2.71, allocations: 0 / 1.125 GB, free: 94.01 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001195/2.71, allocations: 19.92 kB / 1.125 GB, free: 93.99 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1363/2.847, allocations: 46.48 MB / 1.17 GB, free: 47.64 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-05/2.847, allocations: 0 / 1.17 GB, free: 47.64 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001804/2.849, allocations: 459.4 kB / 1.171 GB, free: 47.2 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02433/2.873, allocations: 15.46 MB / 1.186 GB, free: 31.77 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001533/2.875, allocations: 111.9 kB / 1.186 GB, free: 31.66 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5412/3.416, allocations: 115 MB / 1.298 GB, free: 131.4 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/3.416, allocations: 0 / 1.298 GB, free: 131.4 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09112/3.507, allocations: 30.94 MB / 1.328 GB, free: 101.3 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009152/3.516, allocations: 2.721 MB / 1.331 GB, free: 98.59 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005824/3.522, allocations: 68 kB / 1.331 GB, free: 98.53 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01389/3.536, allocations: 1.397 MB / 1.332 GB, free: 97.13 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009821/3.537, allocations: 276.1 kB / 1.333 GB, free: 96.86 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001229/3.538, allocations: 139.9 kB / 1.333 GB, free: 96.72 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.01794/3.556, allocations: 10.49 MB / 1.343 GB, free: 86.3 MB / 0.5607 GB Notification: Performance of sort global known variables: time 4.71e-07/3.556, allocations: 2.297 kB / 1.343 GB, free: 86.3 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.02024/3.576, allocations: 3.732 MB / 1.347 GB, free: 82.69 MB / 0.5607 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.09196/3.668, allocations: 31.62 MB / 1.377 GB, free: 51.15 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.07967/3.748, allocations: 33.17 MB / 1.41 GB, free: 17.15 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/3.748, allocations: 3.938 kB / 1.41 GB, free: 17.14 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.05362/3.802, allocations: 17.31 MB / 1.427 GB, free: 15.82 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2719/4.074, allocations: 3.107 MB / 1.43 GB, free: 183.3 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.443/4.517, allocations: 171.4 MB / 1.597 GB, free: 57.91 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01356/4.53, allocations: 8.679 MB / 1.606 GB, free: 49.18 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.0116/4.542, allocations: 3.782 MB / 1.609 GB, free: 45.41 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009756/4.552, allocations: 4.998 MB / 1.614 GB, free: 40.41 MB / 0.5763 GB Notification: Performance of SimCode: time 2.294e-06/4.552, allocations: 0 / 1.614 GB, free: 40.41 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.179/5.731, allocations: 397.1 MB / 2.002 GB, free: 59.03 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 58.38/64.11, allocations: 5.469 kB / 2.002 GB, free: 59.02 MB / 0.5763 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)