Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.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.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",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.001102/0.001102, 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.001082/0.001082, allocations: 197.1 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.316/1.316, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1397/0.1397, allocations: 5.394 MB / 295.8 MB, free: 2.887 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 67.91 kB / 361 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08669/0.08815, allocations: 50.61 MB / 411.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.007533/0.09571, allocations: 6.327 MB / 418 MB, free: 4.984 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004288/0.1, allocations: 2.573 MB / 420.5 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006952/0.1007, allocations: 16 kB / 420.6 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002575/0.1033, allocations: 1.112 MB / 421.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001782/0.1051, allocations: 0.7764 MB / 422.4 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007325/0.1059, allocations: 351.3 kB / 422.8 MB, free: 152 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1516/0.2575, allocations: 1.137 MB / 423.9 MB, free: 39.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001632/0.2592, allocations: 0.9891 MB / 424.9 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006159/0.2598, allocations: 469.3 kB / 425.4 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005412/0.2604, allocations: 0.5784 MB / 426 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001321/0.2605, allocations: 124.9 kB / 426.1 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004867/0.261, allocations: 286.4 kB / 426.4 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001378/0.2612, allocations: 261.2 kB / 426.6 MB, free: 39.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003445/0.2615, allocations: 0.5428 MB / 427.2 MB, free: 39.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001046/0.2626, allocations: 1.464 MB / 428.6 MB, free: 38.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2626, allocations: 0 / 428.6 MB, free: 38.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2626, allocations: 0 / 428.6 MB, free: 38.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.266e-05/0.2626, allocations: 3.281 kB / 428.6 MB, free: 38.94 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: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.003257/0.2659, allocations: 1.537 MB / 430.2 MB, free: 38.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.2659, allocations: 9.406 kB / 430.2 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001346/0.2661, allocations: 143.2 kB / 430.3 MB, free: 38.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002066/0.2681, allocations: 357.3 kB / 430.7 MB, free: 38.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/0.2693, allocations: 0.6864 MB / 431.3 MB, free: 37.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.586e-05/0.2693, allocations: 73.94 kB / 431.4 MB, free: 37.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.2695, allocations: 92.22 kB / 431.5 MB, free: 37.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/0.2709, allocations: 0.997 MB / 432.5 MB, free: 37.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.73e-05/0.2709, allocations: 6.562 kB / 432.5 MB, free: 37.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.645e-05/0.271, allocations: 34.59 kB / 432.5 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.271, allocations: 22.44 kB / 432.6 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001497/0.2725, allocations: 0.8367 MB / 433.4 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004462/0.277, allocations: 3.883 MB / 437.3 MB, free: 34.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001732/0.2788, allocations: 1.48 MB / 438.8 MB, free: 33.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004501/0.2792, allocations: 256.3 kB / 439 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.225e-05/0.2793, allocations: 96.95 kB / 439.1 MB, free: 32.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005926/0.2799, allocations: 319.6 kB / 439.4 MB, free: 32.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.064e-06/0.2799, allocations: 0 / 439.4 MB, free: 32.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.00256/0.2825, allocations: 0.9487 MB / 440.4 MB, free: 32.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.489e-05/0.2825, allocations: 149.4 kB / 440.5 MB, free: 32.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000475/0.283, allocations: 0.4998 MB / 441 MB, free: 31.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.052e-05/0.283, allocations: 32.98 kB / 441 MB, free: 31.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/0.2833, allocations: 460.6 kB / 441.5 MB, free: 31.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.527e-05/0.2833, allocations: 165 kB / 441.7 MB, free: 31.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001848/0.2835, allocations: 144.6 kB / 441.8 MB, free: 31.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.79e-05/0.2836, allocations: 365.3 kB / 442.2 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004692/0.2841, allocations: 235.6 kB / 442.4 MB, free: 30.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005018/0.2846, allocations: 430 kB / 442.8 MB, free: 30.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009286/0.2855, allocations: 0.7024 MB / 443.5 MB, free: 30.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.2855, allocations: 4 kB / 443.5 MB, free: 30 MB / 350.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001557/0.2871, allocations: 0.8454 MB / 444.4 MB, free: 29.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.965e-05/0.2872, allocations: 36.08 kB / 444.4 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.2872, allocations: 7.906 kB / 444.4 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004401/0.2876, allocations: 92.62 kB / 444.5 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00066/0.2883, allocations: 164.1 kB / 444.6 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/0.2895, allocations: 1.574 MB / 446.2 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006043/0.2901, allocations: 94.62 kB / 446.3 MB, free: 28.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.097e-05/0.2902, allocations: 36.42 kB / 446.3 MB, free: 28.05 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.0003234/0.2905, allocations: 274.1 kB / 446.6 MB, free: 27.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.537e-05/0.2906, allocations: 56.16 kB / 446.7 MB, free: 27.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001351/0.2919, allocations: 0.6884 MB / 447.4 MB, free: 27.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.292, allocations: 6.062 kB / 447.4 MB, free: 27.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.292, allocations: 0 / 447.4 MB, free: 27.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.292, allocations: 14.41 kB / 447.4 MB, free: 27.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003509/0.2955, allocations: 1.727 MB / 449.1 MB, free: 26.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.2955, allocations: 3.156 kB / 449.1 MB, free: 26.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003147/0.2958, allocations: 71.08 kB / 449.2 MB, free: 26.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005077/0.2964, allocations: 250.3 kB / 449.4 MB, free: 26.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.308e-05/0.2964, allocations: 17.81 kB / 449.4 MB, free: 26.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007956/0.2972, allocations: 0.8295 MB / 450.3 MB, free: 25.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2972, allocations: 3.688 kB / 450.3 MB, free: 25.9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002922/0.3001, allocations: 1.178 MB / 451.5 MB, free: 25.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.3003, allocations: 176.2 kB / 451.6 MB, free: 25.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.077e-05/0.3004, allocations: 17.75 kB / 451.6 MB, free: 25.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004364/0.3009, allocations: 40.94 kB / 451.7 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.825e-05/0.301, allocations: 30.06 kB / 451.7 MB, free: 25.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.014e-05/0.301, allocations: 19.89 kB / 451.7 MB, free: 25.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003293/0.3013, allocations: 346.2 kB / 452.1 MB, free: 25.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3013, allocations: 0 / 452.1 MB, free: 25.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006451/0.302, allocations: 237.4 kB / 452.3 MB, free: 24.95 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (converter.integrator.y,voltageSource.pin_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 (41): * Single equations (assignments): 40 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003195/0.3052, allocations: 1.764 MB / 454.1 MB, free: 23.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00138/0.3066, allocations: 0.7689 MB / 454.8 MB, free: 23.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.3066, allocations: 1.156 kB / 454.8 MB, free: 23.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005138/0.3071, allocations: 335.9 kB / 455.2 MB, free: 23.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005986/0.3077, allocations: 100.7 kB / 455.3 MB, free: 23.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006925/0.3147, allocations: 5.635 MB / 460.9 MB, free: 19.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.315, allocations: 0.9436 MB / 461.8 MB, free: 19.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003493/0.3153, allocations: 85.33 kB / 461.9 MB, free: 19.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000293/0.3156, allocations: 294.9 kB / 462.2 MB, free: 18.96 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3156, allocations: 4 kB / 462.2 MB, free: 18.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03555/0.3512, allocations: 14.14 MB / 476.4 MB, free: 17.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.03, allocations: 16.77 kB / 476.4 MB, free: 17.59 MB / 350.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP_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_SimpleModuleMP.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe 2>&1)