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.005374/0.005375, allocations: 98.31 kB / 15.73 MB, free: 6.492 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.001262/0.001262, allocations: 200.8 kB / 16.68 MB, free: 6.375 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1377/0.1377, allocations: 5.387 MB / 295.9 MB, free: 2.859 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002397/0.002398, allocations: 67.89 kB / 412.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2813, allocations: 50.61 MB / 462.9 MB, free: 21.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.006489/0.2878, allocations: 6.346 MB / 469.3 MB, free: 16.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004026/0.2918, allocations: 2.56 MB / 471.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005726/0.2924, allocations: 21.81 kB / 471.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002265/0.2947, allocations: 1.114 MB / 473 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001626/0.2963, allocations: 0.7896 MB / 473.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007087/0.2971, allocations: 349.5 kB / 474.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001193/0.2983, allocations: 1.169 MB / 475.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00131/0.2996, allocations: 0.9875 MB / 476.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006884/0.3003, allocations: 475.2 kB / 476.7 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006686/0.301, allocations: 0.5745 MB / 477.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001846/0.3012, allocations: 127.9 kB / 477.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007259/0.3019, allocations: 288.2 kB / 477.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001818/0.3021, allocations: 250 kB / 477.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004814/0.3026, allocations: 0.5445 MB / 478.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002177/0.3048, allocations: 1.49 MB / 480 MB, free: 10.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3048, allocations: 4 kB / 480 MB, free: 10.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3048, allocations: 0 / 480 MB, free: 10.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.838e-05/0.3048, allocations: 1.094 kB / 480 MB, free: 10.61 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.003803/0.3086, allocations: 1.563 MB / 481.5 MB, free: 9.445 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/0.3087, allocations: 10.09 kB / 481.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001676/0.3089, allocations: 147.1 kB / 481.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002068/0.311, allocations: 358.8 kB / 482.1 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001349/0.3123, allocations: 0.6949 MB / 482.7 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.119e-05/0.3124, allocations: 72.25 kB / 482.8 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001463/0.3125, allocations: 93.84 kB / 482.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/0.3141, allocations: 0.9909 MB / 483.9 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.873e-05/0.3142, allocations: 0 / 483.9 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.998e-05/0.3143, allocations: 42.25 kB / 483.9 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.974e-05/0.3143, allocations: 21.62 kB / 484 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001562/0.3159, allocations: 0.8413 MB / 484.8 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004774/0.3206, allocations: 3.861 MB / 488.7 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001742/0.3224, allocations: 1.481 MB / 490.1 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004465/0.3229, allocations: 257.3 kB / 490.4 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.912e-05/0.3229, allocations: 88.41 kB / 490.5 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005195/0.3235, allocations: 313.1 kB / 490.8 MB, free: 2.395 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 1.973e-06/0.3235, allocations: 0 / 490.8 MB, free: 2.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.002809/0.3263, allocations: 0.9655 MB / 491.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.3264, allocations: 136.5 kB / 491.9 MB, free: 1.695 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009657/0.3274, allocations: 0.4968 MB / 492.4 MB, free: 1.379 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.121e-05/0.3275, allocations: 36.45 kB / 492.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003709/0.3279, allocations: 485.1 kB / 492.9 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/0.328, allocations: 175.2 kB / 493.1 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002534/0.3283, allocations: 142.9 kB / 493.2 MB, free: 0.668 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.3284, allocations: 367.1 kB / 493.6 MB, free: 320 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005712/0.329, allocations: 229.4 kB / 493.8 MB, free: 208 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007668/0.3298, allocations: 431.4 kB / 494.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001427/0.3312, allocations: 0.7074 MB / 494.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.3312, allocations: 1.25 kB / 494.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00203/0.3333, allocations: 0.8572 MB / 495.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.391e-05/0.3333, allocations: 37.08 kB / 495.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.3333, allocations: 5.062 kB / 495.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004805/0.3338, allocations: 83.47 kB / 495.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007116/0.3346, allocations: 171.1 kB / 496.1 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001636/0.3362, allocations: 1.581 MB / 497.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008178/0.337, allocations: 102.6 kB / 497.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-05/0.3371, allocations: 32.72 kB / 497.8 MB, free: 13.08 MB / 366.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.0004761/0.3376, allocations: 271.4 kB / 498 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.3377, allocations: 65.12 kB / 498.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001466/0.3392, allocations: 0.6876 MB / 498.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.3392, allocations: 11.94 kB / 498.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3392, allocations: 0 / 498.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.3392, allocations: 8.016 kB / 498.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004106/0.3434, allocations: 1.716 MB / 0.4888 GB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.3434, allocations: 0 / 0.4888 GB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003288/0.3437, allocations: 83.92 kB / 0.4889 GB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005757/0.3443, allocations: 242.4 kB / 0.4891 GB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.242e-05/0.3444, allocations: 19.98 kB / 0.4891 GB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.3454, allocations: 0.8233 MB / 0.4899 GB, free: 9.301 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3455, allocations: 0 / 0.4899 GB, free: 9.301 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003147/0.3486, allocations: 1.182 MB / 0.4911 GB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003368/0.349, allocations: 184.5 kB / 0.4913 GB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.3491, allocations: 16 kB / 0.4913 GB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004358/0.3495, allocations: 35.91 kB / 0.4913 GB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.203e-05/0.3496, allocations: 31.89 kB / 0.4913 GB, free: 7.805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-05/0.3497, allocations: 16 kB / 0.4914 GB, free: 7.789 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005183/0.3502, allocations: 354.9 kB / 0.4917 GB, free: 7.445 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3502, allocations: 0 / 0.4917 GB, free: 7.445 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008793/0.3511, allocations: 231.3 kB / 0.4919 GB, free: 7.219 MB / 366.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.003597/0.3547, allocations: 1.771 MB / 0.4936 GB, free: 5.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00157/0.3563, allocations: 0.755 MB / 0.4944 GB, free: 4.625 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.3563, allocations: 1.188 kB / 0.4944 GB, free: 4.625 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005949/0.3569, allocations: 339.7 kB / 0.4947 GB, free: 4.281 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007153/0.3576, allocations: 89.88 kB / 0.4948 GB, free: 4.195 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008618/0.3663, allocations: 5.543 MB / 0.5002 GB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005153/0.3668, allocations: 0.9369 MB / 0.5011 GB, free: 13.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003551/0.3672, allocations: 84.97 kB / 0.5012 GB, free: 13.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003667/0.3676, allocations: 299.3 kB / 0.5015 GB, free: 13.05 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3676, allocations: 0 / 0.5015 GB, free: 13.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06449/0.4321, allocations: 14.41 MB / 0.5156 GB, free: 14.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.8/14.23, allocations: 13.2 kB / 0.5156 GB, free: 14.79 MB / 398.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)