Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.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.SimpleModuleMP3,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP3,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3",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.005329/0.005329, allocations: 102.2 kB / 15.73 MB, free: 5.516 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.001184/0.001184, allocations: 201.7 kB / 16.68 MB, free: 5.445 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.141 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1398/0.1398, allocations: 5.375 MB / 295.9 MB, free: 2.785 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 59.91 kB / 412.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2714, allocations: 50.62 MB / 462.9 MB, free: 21.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.009561/0.281, allocations: 10.1 MB / 473 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006011/0.287, allocations: 3.522 MB / 476.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001935/0.289, allocations: 66.34 kB / 476.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006337/0.2954, allocations: 3.256 MB / 479.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003423/0.2988, allocations: 1.023 MB / 480.9 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002517/0.3013, allocations: 0.954 MB / 481.8 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005941/0.3073, allocations: 4.236 MB / 486.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01344/0.3208, allocations: 10.6 MB / 496.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004344/0.3252, allocations: 2.373 MB / 499.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004463/0.3296, allocations: 2.644 MB / 0.4899 GB, free: 10.31 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001563/0.3312, allocations: 0.7227 MB / 0.4906 GB, free: 9.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003038/0.3343, allocations: 0.9841 MB / 0.4916 GB, free: 8.605 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001723/0.336, allocations: 1.333 MB / 0.4929 GB, free: 7.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00402/0.3401, allocations: 2.599 MB / 0.4954 GB, free: 4.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00978/0.3499, allocations: 9.132 MB / 0.5044 GB, free: 11.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.3499, allocations: 0 / 0.5044 GB, free: 11.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3499, allocations: 4 kB / 0.5044 GB, free: 11.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000174/0.3501, allocations: 0 / 0.5044 GB, free: 11.5 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01453/0.3647, allocations: 5.437 MB / 0.5097 GB, free: 5.973 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.3647, allocations: 12.03 kB / 0.5097 GB, free: 5.961 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001049/0.3658, allocations: 0.6049 MB / 0.5103 GB, free: 5.344 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009274/0.3751, allocations: 1.602 MB / 0.5118 GB, free: 3.738 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006559/0.3817, allocations: 2.955 MB / 0.5147 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002627/0.3819, allocations: 320.5 kB / 0.515 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001215/0.3832, allocations: 419.9 kB / 0.5154 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01405/0.3972, allocations: 6.66 MB / 0.5219 GB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001009/0.3974, allocations: 7.875 kB / 0.5219 GB, free: 9.262 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005291/0.3979, allocations: 176 kB / 0.5221 GB, free: 9.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002153/0.3981, allocations: 207.9 kB / 0.5223 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01053/0.4087, allocations: 5.617 MB / 0.5278 GB, free: 3.262 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03545/0.4442, allocations: 22.54 MB / 0.5498 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005915/0.4501, allocations: 4.37 MB / 0.5541 GB, free: 7.125 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001424/0.4516, allocations: 0.8317 MB / 0.5549 GB, free: 6.293 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001683/0.4518, allocations: 114 kB / 0.555 GB, free: 6.164 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001317/0.4531, allocations: 0.7746 MB / 0.5558 GB, free: 5.363 MB / 430.1 MB Notification: Performance of pre-optimization done (n=106): time 2.785e-06/0.4531, allocations: 0 / 0.5558 GB, free: 5.363 MB / 430.1 MB Notification: Performance of matching and sorting (n=106): time 0.004925/0.4581, allocations: 2.244 MB / 0.5579 GB, free: 3.086 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.426e-05/0.4582, allocations: 149.5 kB / 0.5581 GB, free: 2.91 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002878/0.4611, allocations: 1.826 MB / 0.5599 GB, free: 1.074 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001192/0.4612, allocations: 45.7 kB / 0.5599 GB, free: 1.023 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001822/0.463, allocations: 2.038 MB / 0.5619 GB, free: 14.96 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003517/0.4634, allocations: 404.8 kB / 0.5623 GB, free: 14.56 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008235/0.4642, allocations: 0.5397 MB / 0.5628 GB, free: 14.02 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.347e-05/0.4643, allocations: 304.9 kB / 0.5631 GB, free: 13.72 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001703/0.466, allocations: 1.082 MB / 0.5642 GB, free: 12.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002313/0.4684, allocations: 2.169 MB / 0.5663 GB, free: 9.941 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00399/0.4724, allocations: 3.372 MB / 0.5696 GB, free: 6.039 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.581e-05/0.4724, allocations: 8 kB / 0.5696 GB, free: 6.031 MB / 446.1 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.006049/0.4785, allocations: 3.483 MB / 0.573 GB, free: 2.531 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.281e-05/0.4786, allocations: 49.7 kB / 0.573 GB, free: 2.477 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.394e-05/0.4786, allocations: 36 kB / 0.5731 GB, free: 2.441 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005268/0.4792, allocations: 128.9 kB / 0.5732 GB, free: 2.312 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002096/0.4813, allocations: 0.6083 MB / 0.5738 GB, free: 1.703 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001471/0.4828, allocations: 1.632 MB / 0.5754 GB, free: 15.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002074/0.4848, allocations: 381.7 kB / 0.5757 GB, free: 15.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002302/0.4851, allocations: 136 kB / 0.5759 GB, free: 15.42 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 168 * Number of states: 0 () * Number of discrete variables: 11 (mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,mpTracker.sampleTrigger,$whenCondition1,mpTracker.vRef,$PRE.mpTracker.vRef,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 310 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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.002456/0.4876, allocations: 1.718 MB / 0.5776 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003609/0.4879, allocations: 170.9 kB / 0.5777 GB, free: 13.52 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003162/0.4911, allocations: 1.77 MB / 0.5794 GB, free: 11.72 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002372/0.4935, allocations: 1.422 MB / 0.5808 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.4935, allocations: 0 / 0.5808 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.55e-05/0.4935, allocations: 11.97 kB / 0.5808 GB, free: 10.27 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/0.5049, allocations: 5.132 MB / 0.5859 GB, free: 5.051 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.505, allocations: 4 kB / 0.5859 GB, free: 5.047 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009142/0.5059, allocations: 207.7 kB / 0.5861 GB, free: 4.844 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006402/0.5065, allocations: 262.4 kB / 0.5863 GB, free: 4.578 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001186/0.5067, allocations: 31.98 kB / 0.5863 GB, free: 4.547 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00114/0.5078, allocations: 0.8272 MB / 0.5871 GB, free: 3.688 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/0.5078, allocations: 11.92 kB / 0.5872 GB, free: 3.676 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005598/0.5134, allocations: 2.724 MB / 0.5898 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009354/0.5144, allocations: 375.7 kB / 0.5902 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003957/0.5148, allocations: 35.94 kB / 0.5902 GB, free: 496 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.5158, allocations: 79.91 kB / 0.5903 GB, free: 416 kB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001542/0.516, allocations: 68.89 kB / 0.5904 GB, free: 348 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001147/0.5161, allocations: 36 kB / 0.5904 GB, free: 312 kB / 462.1 MB Notification: Performance of sorting global known variables: time 0.2199/0.736, allocations: 1.237 MB / 0.5916 GB, free: 110.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.81e-07/0.7361, allocations: 0 / 0.5916 GB, free: 110.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003023/0.7391, allocations: 0.9568 MB / 0.5925 GB, free: 110.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (converter.integrator.y,voltageSource.plug_p.reference.gamma) * Number of discrete variables: 6 ($whenCondition1,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef) * Number of discrete states: 7 (mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006607/0.7457, allocations: 3.37 MB / 0.5958 GB, free: 109.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004899/0.7507, allocations: 2.466 MB / 0.5982 GB, free: 108.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/0.7507, allocations: 0 / 0.5982 GB, free: 108.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001385/0.7521, allocations: 0.7832 MB / 0.599 GB, free: 108.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001986/0.7541, allocations: 378.5 kB / 0.5994 GB, free: 108.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03355/0.7876, allocations: 20.87 MB / 0.6197 GB, free: 96.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003225/0.7909, allocations: 3.028 MB / 0.6227 GB, free: 95.32 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002638/0.7936, allocations: 0.8545 MB / 0.6235 GB, free: 95.23 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001521/0.7951, allocations: 1.288 MB / 0.6248 GB, free: 94.16 MB / 462.1 MB Notification: Performance of SimCode: time 9.72e-07/0.7951, allocations: 0 / 0.6248 GB, free: 94.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07569/0.8708, allocations: 51.48 MB / 0.6751 GB, free: 49.06 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.11/14.98, allocations: 0 / 0.6751 GB, free: 49.06 MB / 462.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe 2>&1)