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.001688/0.001687, allocations: 108 kB / 15.6 MB, free: 132 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.00211/0.00211, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.355/1.355, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1529/0.1529, allocations: 5.392 MB / 295.8 MB, free: 2.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002443/0.002443, allocations: 55.91 kB / 361 MB, free: 14.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1358, allocations: 50.62 MB / 411.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.009245/0.1451, allocations: 6.331 MB / 418 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005063/0.1502, allocations: 2.569 MB / 420.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001165/0.1514, allocations: 23.94 kB / 420.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003434/0.1548, allocations: 1.108 MB / 421.7 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002212/0.157, allocations: 0.773 MB / 422.4 MB, free: 496 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001126/0.1582, allocations: 343.3 kB / 422.8 MB, free: 152 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1587/0.3169, allocations: 1.145 MB / 423.9 MB, free: 39.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001406/0.3183, allocations: 0.9898 MB / 424.9 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006208/0.319, allocations: 476.2 kB / 425.4 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000615/0.3196, allocations: 0.5796 MB / 426 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001652/0.3198, allocations: 126.3 kB / 426.1 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005507/0.3203, allocations: 286.5 kB / 426.4 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001394/0.3205, allocations: 256 kB / 426.6 MB, free: 39.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003688/0.3208, allocations: 0.5426 MB / 427.1 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001136/0.322, allocations: 1.463 MB / 428.6 MB, free: 38.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.322, allocations: 0 / 428.6 MB, free: 38.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.322, allocations: 1.938 kB / 428.6 MB, free: 38.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.881e-05/0.322, allocations: 0 / 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.003342/0.3254, allocations: 1.538 MB / 430.2 MB, free: 38.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.3254, allocations: 12.25 kB / 430.2 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001332/0.3256, allocations: 147.3 kB / 430.3 MB, free: 38.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001932/0.3275, allocations: 351.9 kB / 430.6 MB, free: 38.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.3287, allocations: 0.6819 MB / 431.3 MB, free: 37.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.253e-05/0.3287, allocations: 71.81 kB / 431.4 MB, free: 37.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.3288, allocations: 94.78 kB / 431.5 MB, free: 37.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.3302, allocations: 0.9966 MB / 432.5 MB, free: 37.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.641e-05/0.3303, allocations: 0 / 432.5 MB, free: 37.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.778e-05/0.3304, allocations: 40.56 kB / 432.5 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.719e-05/0.3304, allocations: 22.72 kB / 432.6 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001436/0.3318, allocations: 0.8431 MB / 433.4 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004616/0.3365, allocations: 3.883 MB / 437.3 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0017/0.3382, allocations: 1.483 MB / 438.8 MB, free: 33.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004355/0.3386, allocations: 251.8 kB / 439 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.743e-05/0.3387, allocations: 94.48 kB / 439.1 MB, free: 32.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000541/0.3393, allocations: 315.1 kB / 439.4 MB, free: 32.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.184e-06/0.3393, allocations: 4 kB / 439.4 MB, free: 32.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.002533/0.3418, allocations: 0.9498 MB / 440.4 MB, free: 32.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.15e-05/0.3419, allocations: 150.4 kB / 440.5 MB, free: 32.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005296/0.3424, allocations: 0.495 MB / 441 MB, free: 31.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.414e-05/0.3425, allocations: 36.23 kB / 441 MB, free: 31.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002457/0.3427, allocations: 460.5 kB / 441.5 MB, free: 31.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.3428, allocations: 159.8 kB / 441.6 MB, free: 31.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001872/0.343, allocations: 149.1 kB / 441.8 MB, free: 31.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.959e-05/0.3431, allocations: 364.9 kB / 442.1 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004457/0.3436, allocations: 237.7 kB / 442.4 MB, free: 30.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004916/0.3441, allocations: 434.1 kB / 442.8 MB, free: 30.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009168/0.345, allocations: 0.6982 MB / 443.5 MB, free: 30 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.345, allocations: 3.219 kB / 443.5 MB, free: 30 MB / 350.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001555/0.3466, allocations: 0.8454 MB / 444.3 MB, free: 29.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.755e-05/0.3466, allocations: 39.23 kB / 444.4 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.3466, allocations: 4.094 kB / 444.4 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004674/0.3471, allocations: 87.44 kB / 444.5 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006555/0.3478, allocations: 168.5 kB / 444.6 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001283/0.3491, allocations: 1.574 MB / 446.2 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00064/0.3497, allocations: 94.03 kB / 446.3 MB, free: 28.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.533e-05/0.3498, allocations: 32.38 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.0003692/0.3502, allocations: 281.1 kB / 446.6 MB, free: 27.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.3503, allocations: 56.25 kB / 446.7 MB, free: 27.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001351/0.3516, allocations: 0.6924 MB / 447.4 MB, free: 27.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.3517, allocations: 6.531 kB / 447.4 MB, free: 27.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.3517, allocations: 0 / 447.4 MB, free: 27.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.3517, allocations: 11.44 kB / 447.4 MB, free: 27.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003513/0.3552, allocations: 1.718 MB / 449.1 MB, free: 26.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.3552, allocations: 0 / 449.1 MB, free: 26.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002961/0.3555, allocations: 77.84 kB / 449.2 MB, free: 26.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004932/0.356, allocations: 258.7 kB / 449.4 MB, free: 26.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.206e-05/0.3561, allocations: 7.281 kB / 449.4 MB, free: 26.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007969/0.3569, allocations: 0.8347 MB / 450.3 MB, free: 25.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3569, allocations: 4.062 kB / 450.3 MB, free: 25.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002906/0.3598, allocations: 1.176 MB / 451.4 MB, free: 25.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002152/0.36, allocations: 179.7 kB / 451.6 MB, free: 25.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.245e-05/0.3601, allocations: 10.56 kB / 451.6 MB, free: 25.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004259/0.3606, allocations: 41.97 kB / 451.7 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.197e-05/0.3606, allocations: 23.59 kB / 451.7 MB, free: 25.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.053e-05/0.3607, allocations: 20.12 kB / 451.7 MB, free: 25.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003323/0.361, allocations: 346.8 kB / 452.1 MB, free: 25.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.361, allocations: 0 / 452.1 MB, free: 25.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007271/0.3617, allocations: 237 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.003154/0.3649, allocations: 1.769 MB / 454.1 MB, free: 23.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.3664, allocations: 0.771 MB / 454.8 MB, free: 23.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.3664, allocations: 3.172 kB / 454.8 MB, free: 23.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005149/0.3669, allocations: 335.4 kB / 455.2 MB, free: 23.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006378/0.3676, allocations: 105.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.007045/0.3746, 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.0003183/0.375, allocations: 0.9422 MB / 461.8 MB, free: 19.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003705/0.3754, allocations: 81.95 kB / 461.9 MB, free: 19.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002987/0.3757, allocations: 296.3 kB / 462.2 MB, free: 18.97 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3757, allocations: 0 / 462.2 MB, free: 18.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04471/0.4204, allocations: 14.14 MB / 476.3 MB, free: 17.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.44, allocations: 11.69 kB / 476.4 MB, free: 17.6 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe 2>&1)