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.009188/0.009188, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001492/0.001493, allocations: 202.1 kB / 16.68 MB, free: 5.969 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.444/1.444, 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.165/0.165, allocations: 5.375 MB / 295.9 MB, free: 2.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002781/0.002781, allocations: 67.89 kB / 412.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2459, allocations: 50.61 MB / 462.9 MB, free: 21.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.007023/0.253, allocations: 6.341 MB / 469.3 MB, free: 16.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0042/0.2572, allocations: 2.568 MB / 471.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006276/0.2579, allocations: 20.44 kB / 471.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002469/0.2604, allocations: 1.105 MB / 473 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001677/0.2621, allocations: 0.7679 MB / 473.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007067/0.2628, allocations: 357.1 kB / 474.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001146/0.264, allocations: 1.153 MB / 475.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001251/0.2652, allocations: 0.9876 MB / 476.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006638/0.2659, allocations: 480 kB / 476.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007966/0.2667, allocations: 0.5744 MB / 477.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002046/0.2669, allocations: 126.2 kB / 477.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007814/0.2677, allocations: 281.1 kB / 477.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002268/0.268, allocations: 259.9 kB / 477.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005265/0.2685, allocations: 0.5462 MB / 478.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00242/0.2709, allocations: 1.485 MB / 479.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.2709, allocations: 1.188 kB / 479.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2709, allocations: 0 / 479.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.498e-05/0.271, allocations: 0 / 479.9 MB, free: 10.65 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.003826/0.2748, allocations: 1.578 MB / 481.5 MB, free: 9.504 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.2749, allocations: 10.78 kB / 481.5 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000172/0.2751, allocations: 137.6 kB / 481.7 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002113/0.2772, allocations: 359.7 kB / 482 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00137/0.2786, allocations: 0.6941 MB / 482.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.304e-05/0.2786, allocations: 76.38 kB / 482.8 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.2788, allocations: 93.47 kB / 482.9 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001609/0.2804, allocations: 0.9872 MB / 483.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.992e-05/0.2804, allocations: 5.125 kB / 483.9 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.917e-05/0.2805, allocations: 36.78 kB / 483.9 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.101e-05/0.2805, allocations: 22.72 kB / 483.9 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001634/0.2822, allocations: 0.8372 MB / 484.8 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005343/0.2875, allocations: 3.868 MB / 488.6 MB, free: 4.309 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001786/0.2893, allocations: 1.489 MB / 490.1 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004841/0.2898, allocations: 250.7 kB / 490.4 MB, free: 2.785 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.364e-05/0.2899, allocations: 87.36 kB / 490.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000533/0.2905, allocations: 320.2 kB / 490.8 MB, free: 2.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.013e-06/0.2905, allocations: 0 / 490.8 MB, free: 2.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.002619/0.2931, allocations: 0.9625 MB / 491.7 MB, free: 1.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/0.2932, allocations: 140.1 kB / 491.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005481/0.2937, allocations: 0.4981 MB / 492.4 MB, free: 1.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.217e-05/0.2938, allocations: 32.45 kB / 492.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002054/0.294, allocations: 473.2 kB / 492.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.1e-05/0.2941, allocations: 167.3 kB / 493 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002018/0.2943, allocations: 146.9 kB / 493.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.026e-05/0.2943, allocations: 365.8 kB / 493.5 MB, free: 400 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004691/0.2948, allocations: 233.5 kB / 493.8 MB, free: 284 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006019/0.2954, allocations: 436.2 kB / 494.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001236/0.2967, allocations: 0.703 MB / 494.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.2967, allocations: 2.062 kB / 494.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001907/0.2986, allocations: 0.8524 MB / 495.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.474e-05/0.2987, allocations: 42.42 kB / 495.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.579e-05/0.2987, allocations: 5.625 kB / 495.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000477/0.2992, allocations: 84.88 kB / 495.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007107/0.2999, allocations: 168.7 kB / 496 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001766/0.3017, allocations: 1.583 MB / 497.6 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006885/0.3024, allocations: 89.31 kB / 497.7 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.145e-05/0.3025, allocations: 36.69 kB / 497.7 MB, free: 13.16 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.0004388/0.3029, allocations: 285 kB / 498 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.303, allocations: 59.69 kB / 498.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001518/0.3046, allocations: 0.6919 MB / 498.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.3046, allocations: 11.94 kB / 498.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.3046, allocations: 0 / 498.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.3046, allocations: 0 / 498.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004199/0.3088, allocations: 1.72 MB / 0.4888 GB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.3088, allocations: 0 / 0.4888 GB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003439/0.3092, allocations: 71.91 kB / 0.4888 GB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006415/0.3098, allocations: 258.3 kB / 0.4891 GB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.251e-05/0.3099, allocations: 19.98 kB / 0.4891 GB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001168/0.3111, allocations: 0.8273 MB / 0.4899 GB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.3111, allocations: 7.969 kB / 0.4899 GB, free: 9.367 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003389/0.3145, allocations: 1.163 MB / 0.491 GB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003377/0.3148, allocations: 188.5 kB / 0.4912 GB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/0.3149, allocations: 16 kB / 0.4912 GB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004379/0.3154, allocations: 40.03 kB / 0.4913 GB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.106e-05/0.3155, allocations: 27.91 kB / 0.4913 GB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.362e-05/0.3155, allocations: 19.98 kB / 0.4913 GB, free: 7.867 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005069/0.316, allocations: 346.9 kB / 0.4917 GB, free: 7.531 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.064e-06/0.316, allocations: 0 / 0.4917 GB, free: 7.531 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009045/0.317, allocations: 239.3 kB / 0.4919 GB, free: 7.297 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.003928/0.3209, allocations: 1.767 MB / 0.4936 GB, free: 5.492 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001721/0.3226, allocations: 0.7472 MB / 0.4943 GB, free: 4.715 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/0.3227, allocations: 4 kB / 0.4943 GB, free: 4.711 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006588/0.3233, allocations: 336.8 kB / 0.4947 GB, free: 4.371 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007055/0.324, allocations: 105.9 kB / 0.4948 GB, free: 4.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00949/0.3335, allocations: 5.539 MB / 0.5002 GB, free: 14.47 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000645/0.3342, allocations: 0.9407 MB / 0.5011 GB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003533/0.3346, allocations: 80.97 kB / 0.5012 GB, free: 13.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004255/0.335, allocations: 299.3 kB / 0.5015 GB, free: 13.13 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.335, allocations: 4 kB / 0.5015 GB, free: 13.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06796/0.403, allocations: 14.41 MB / 0.5155 GB, free: 14.87 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.49/14.89, allocations: 9.578 kB / 0.5155 GB, free: 14.87 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)