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.001144/0.001144, allocations: 108 kB / 15.61 MB, free: 148 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.001157/0.001157, allocations: 195.2 kB / 16.53 MB, free: 6.656 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.306/1.306, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1237/0.1237, allocations: 5.377 MB / 295.8 MB, free: 2.949 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 63.91 kB / 361 MB, free: 14.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08372/0.08516, allocations: 50.62 MB / 411.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.01117/0.09637, allocations: 10.09 MB / 421.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.151/0.2474, allocations: 3.515 MB / 425.2 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008071/0.2482, allocations: 69.97 kB / 425.3 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005274/0.2535, allocations: 3.232 MB / 428.5 MB, free: 38.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001868/0.2554, allocations: 1.009 MB / 429.6 MB, free: 38.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00143/0.2568, allocations: 0.9477 MB / 430.5 MB, free: 38.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002468/0.2593, allocations: 4.201 MB / 434.7 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008651/0.268, allocations: 10.68 MB / 445.4 MB, free: 31.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001838/0.2698, allocations: 2.359 MB / 447.7 MB, free: 30.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002195/0.2721, allocations: 2.645 MB / 450.4 MB, free: 29.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006572/0.2727, allocations: 0.7159 MB / 451.1 MB, free: 29.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001317/0.274, allocations: 0.991 MB / 452.1 MB, free: 29.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007616/0.2748, allocations: 1.331 MB / 453.4 MB, free: 28.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001728/0.2766, allocations: 2.608 MB / 456 MB, free: 26.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005709/0.2823, allocations: 9.043 MB / 465.1 MB, free: 23.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2823, allocations: 4 kB / 465.1 MB, free: 23.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2823, allocations: 1.156 kB / 465.1 MB, free: 23.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001375/0.2825, allocations: 4 kB / 465.1 MB, free: 23.54 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01154/0.294, allocations: 5.326 MB / 470.4 MB, free: 20.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.2941, allocations: 13.75 kB / 470.4 MB, free: 20.85 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000854/0.2949, allocations: 0.6159 MB / 471 MB, free: 20.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009393/0.3043, allocations: 1.584 MB / 472.6 MB, free: 20.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004506/0.3088, allocations: 2.866 MB / 475.5 MB, free: 18.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002064/0.3091, allocations: 318.1 kB / 475.8 MB, free: 18.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000647/0.3097, allocations: 420.5 kB / 476.2 MB, free: 18.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01053/0.3202, allocations: 6.662 MB / 482.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-05/0.3203, allocations: 13 kB / 482.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004073/0.3208, allocations: 173.3 kB / 483.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001526/0.3209, allocations: 203.5 kB / 483.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007726/0.3287, allocations: 5.619 MB / 488.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02496/0.3536, allocations: 22.72 MB / 0.4996 GB, free: 4.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005758/0.3594, allocations: 4.372 MB / 0.5039 GB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001295/0.3607, allocations: 0.8347 MB / 0.5047 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001278/0.3609, allocations: 105.1 kB / 0.5048 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/0.3621, allocations: 0.7823 MB / 0.5056 GB, free: 13.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=106): time 2.725e-06/0.3621, allocations: 0 / 0.5056 GB, free: 13.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=106): time 0.004736/0.3668, allocations: 2.236 MB / 0.5077 GB, free: 11.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.1e-05/0.3669, allocations: 145.5 kB / 0.5079 GB, free: 11.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002431/0.3694, allocations: 1.822 MB / 0.5097 GB, free: 9.332 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.601e-05/0.3695, allocations: 45.7 kB / 0.5097 GB, free: 9.281 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001395/0.3709, allocations: 1.964 MB / 0.5116 GB, free: 7.305 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003173/0.3712, allocations: 389.1 kB / 0.512 GB, free: 6.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007934/0.372, allocations: 0.5433 MB / 0.5125 GB, free: 6.375 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.286e-05/0.3721, allocations: 301.1 kB / 0.5128 GB, free: 6.078 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001738/0.3738, allocations: 1.082 MB / 0.5139 GB, free: 4.992 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002403/0.3762, allocations: 2.169 MB / 0.516 GB, free: 2.297 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004035/0.3803, allocations: 3.369 MB / 0.5193 GB, free: 14.4 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.492e-05/0.3803, allocations: 15.94 kB / 0.5193 GB, free: 14.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.005717/0.386, allocations: 3.482 MB / 0.5227 GB, free: 10.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.286e-05/0.3861, allocations: 45.7 kB / 0.5227 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.793e-05/0.3862, allocations: 36 kB / 0.5228 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005448/0.3867, allocations: 128.9 kB / 0.5229 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00206/0.3888, allocations: 0.6044 MB / 0.5235 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001522/0.3903, allocations: 1.636 MB / 0.5251 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001989/0.3923, allocations: 372.8 kB / 0.5254 GB, free: 7.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001998/0.3925, allocations: 136 kB / 0.5256 GB, free: 7.781 MB / 398.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.002235/0.3948, allocations: 1.713 MB / 0.5272 GB, free: 6.051 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003055/0.3951, allocations: 162 kB / 0.5274 GB, free: 5.891 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003215/0.3983, allocations: 1.784 MB / 0.5291 GB, free: 4.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002385/0.4007, allocations: 1.415 MB / 0.5305 GB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4007, allocations: 4 kB / 0.5305 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.4008, allocations: 7.969 kB / 0.5305 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009593/0.4104, allocations: 5.162 MB / 0.5356 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.838e-06/0.4104, allocations: 4 kB / 0.5356 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000851/0.4112, allocations: 211.7 kB / 0.5358 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005856/0.4118, allocations: 258.5 kB / 0.536 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.803e-05/0.4119, allocations: 31.94 kB / 0.536 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009913/0.4129, allocations: 0.8233 MB / 0.5369 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.4129, allocations: 4 kB / 0.5369 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005353/0.4183, allocations: 2.723 MB / 0.5395 GB, free: 9.293 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006814/0.419, allocations: 366.8 kB / 0.5399 GB, free: 8.914 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003945/0.4194, allocations: 39.83 kB / 0.5399 GB, free: 8.875 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009708/0.4204, allocations: 83.58 kB / 0.54 GB, free: 8.797 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.4205, allocations: 72.84 kB / 0.5401 GB, free: 8.727 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.595e-05/0.4206, allocations: 35.98 kB / 0.5401 GB, free: 8.691 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001808/0.4224, allocations: 1.237 MB / 0.5413 GB, free: 7.457 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4225, allocations: 3.938 kB / 0.5413 GB, free: 7.453 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002698/0.4252, allocations: 0.9444 MB / 0.5422 GB, free: 6.504 MB / 414.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.005866/0.431, allocations: 3.363 MB / 0.5455 GB, free: 3.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005127/0.4362, allocations: 2.89 MB / 0.5483 GB, free: 180 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.4362, allocations: 384 / 0.5483 GB, free: 180 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.4374, allocations: 0.778 MB / 0.5491 GB, free: 15.38 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/0.4393, allocations: 372 kB / 0.5494 GB, free: 15.04 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03374/0.4731, allocations: 21.82 MB / 0.5707 GB, free: 7.543 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003455/0.4766, allocations: 3.025 MB / 0.5737 GB, free: 4.484 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002289/0.4789, allocations: 0.8579 MB / 0.5745 GB, free: 3.621 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001808/0.4807, allocations: 1.292 MB / 0.5758 GB, free: 2.328 MB / 446.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4807, allocations: 3.938 kB / 0.5758 GB, free: 2.324 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2144/0.6951, allocations: 50.05 MB / 0.6247 GB, free: 119.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.98, allocations: 11.31 kB / 0.6247 GB, free: 119.5 MB / 446.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)