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.001181/0.001181, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001222/0.001222, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.217/1.217, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1254/0.1254, allocations: 5.393 MB / 295.5 MB, free: 2.922 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 59.91 kB / 360.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08264/0.08413, allocations: 50.62 MB / 411.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.009836/0.09401, allocations: 9.998 MB / 421.1 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1629/0.2569, allocations: 3.457 MB / 424.5 MB, free: 38.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001419/0.2584, allocations: 67 kB / 424.6 MB, free: 38.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005459/0.2638, allocations: 3.053 MB / 427.6 MB, free: 38.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002415/0.2663, allocations: 0.8898 MB / 428.5 MB, free: 38.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001539/0.2678, allocations: 0.8776 MB / 429.4 MB, free: 38.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003072/0.2709, allocations: 4.186 MB / 433.6 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009776/0.2807, allocations: 12.2 MB / 445.8 MB, free: 31.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002254/0.283, allocations: 2.402 MB / 448.2 MB, free: 30.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00211/0.2851, allocations: 2.668 MB / 450.9 MB, free: 28.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00063/0.2858, allocations: 0.7182 MB / 451.6 MB, free: 28.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001281/0.287, allocations: 0.9913 MB / 452.6 MB, free: 28.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006922/0.2877, allocations: 1.331 MB / 453.9 MB, free: 27.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001735/0.2895, allocations: 2.607 MB / 456.5 MB, free: 26.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006354/0.2959, allocations: 9.055 MB / 465.6 MB, free: 23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.2959, allocations: 4 kB / 465.6 MB, free: 23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2959, allocations: 0 / 465.6 MB, free: 23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000186/0.2961, allocations: 0 / 465.6 MB, free: 23 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.01369/0.3098, allocations: 5.359 MB / 470.9 MB, free: 20.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.3098, allocations: 9.938 kB / 470.9 MB, free: 20.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00151/0.3114, allocations: 0.6175 MB / 471.6 MB, free: 19.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009373/0.3207, allocations: 1.583 MB / 473.1 MB, free: 19.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005628/0.3264, allocations: 2.871 MB / 476 MB, free: 17.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003022/0.3267, allocations: 315.5 kB / 476.3 MB, free: 17.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001024/0.3277, allocations: 415.2 kB / 476.7 MB, free: 17.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01393/0.3417, allocations: 6.685 MB / 483.4 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001239/0.3418, allocations: 14.39 kB / 483.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006586/0.3425, allocations: 175.4 kB / 483.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000188/0.3427, allocations: 207.3 kB / 483.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009139/0.3518, allocations: 5.646 MB / 489.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03094/0.3828, allocations: 22.74 MB / 0.5002 GB, free: 3.176 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005501/0.3883, allocations: 4.426 MB / 0.5045 GB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001312/0.3897, allocations: 0.8864 MB / 0.5054 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001308/0.3898, allocations: 107.4 kB / 0.5055 GB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001234/0.3911, allocations: 0.8331 MB / 0.5063 GB, free: 12.4 MB / 382.1 MB Notification: Performance of pre-optimization done (n=112): time 3.246e-06/0.3911, allocations: 0 / 0.5063 GB, free: 12.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.004737/0.3958, allocations: 2.368 MB / 0.5086 GB, free: 9.996 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.184e-05/0.3959, allocations: 149 kB / 0.5087 GB, free: 9.824 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002552/0.3985, allocations: 1.818 MB / 0.5105 GB, free: 7.996 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.889e-05/0.3986, allocations: 45.7 kB / 0.5106 GB, free: 7.945 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001479/0.4, allocations: 1.954 MB / 0.5125 GB, free: 5.973 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003561/0.4004, allocations: 416.1 kB / 0.5129 GB, free: 5.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000834/0.4013, allocations: 0.5395 MB / 0.5134 GB, free: 5.023 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.121e-05/0.4013, allocations: 305.1 kB / 0.5137 GB, free: 4.723 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001678/0.403, allocations: 1.125 MB / 0.5148 GB, free: 3.594 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002349/0.4054, allocations: 2.217 MB / 0.5169 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004011/0.4094, allocations: 3.451 MB / 0.5203 GB, free: 12.87 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.739e-05/0.4095, allocations: 12 kB / 0.5203 GB, free: 12.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=322) (initialization): time 0.005588/0.4151, allocations: 3.564 MB / 0.5238 GB, free: 9.273 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.117e-05/0.4151, allocations: 45.7 kB / 0.5238 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.745e-05/0.4152, allocations: 36 kB / 0.5239 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005121/0.4157, allocations: 128.9 kB / 0.524 GB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001958/0.4177, allocations: 0.6122 MB / 0.5246 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/0.4192, allocations: 1.636 MB / 0.5262 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001974/0.4212, allocations: 368.7 kB / 0.5266 GB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002079/0.4214, allocations: 143.9 kB / 0.5267 GB, free: 6.168 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 (316): * Single equations (assignments): 310 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.002275/0.4237, allocations: 1.724 MB / 0.5284 GB, free: 4.426 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003455/0.424, allocations: 154 kB / 0.5285 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003105/0.4271, allocations: 1.863 MB / 0.5303 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002353/0.4295, allocations: 1.52 MB / 0.5318 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.4295, allocations: 0 / 0.5318 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/0.4295, allocations: 3.984 kB / 0.5318 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009545/0.4391, allocations: 5.288 MB / 0.537 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.014e-06/0.4391, allocations: 0 / 0.537 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007995/0.4399, allocations: 207.7 kB / 0.5372 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005716/0.4405, allocations: 270.3 kB / 0.5374 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-05/0.4406, allocations: 31.92 kB / 0.5375 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009544/0.4416, allocations: 0.8312 MB / 0.5383 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.4416, allocations: 0 / 0.5383 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005302/0.4469, allocations: 2.875 MB / 0.5411 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006231/0.4475, allocations: 366.8 kB / 0.5414 GB, free: 6.824 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000313/0.4478, allocations: 31.94 kB / 0.5415 GB, free: 6.793 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009241/0.4488, allocations: 83.95 kB / 0.5416 GB, free: 6.711 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.4489, allocations: 76.84 kB / 0.5416 GB, free: 6.637 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.441e-05/0.449, allocations: 32 kB / 0.5417 GB, free: 6.605 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001647/0.4507, allocations: 1.241 MB / 0.5429 GB, free: 5.367 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4507, allocations: 0 / 0.5429 GB, free: 5.367 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002555/0.4532, allocations: 0.9405 MB / 0.5438 GB, free: 4.422 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 (111): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.005787/0.459, allocations: 3.53 MB / 0.5472 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005032/0.4641, allocations: 3.034 MB / 0.5502 GB, free: 13.79 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.4641, allocations: 0 / 0.5502 GB, free: 13.79 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001205/0.4653, allocations: 0.8378 MB / 0.551 GB, free: 12.93 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001772/0.4671, allocations: 372.2 kB / 0.5514 GB, free: 12.58 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03394/0.501, allocations: 23.79 MB / 0.5746 GB, free: 3.109 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003339/0.5044, allocations: 3.033 MB / 0.5776 GB, free: 44 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.1435/0.6479, allocations: 0.8477 MB / 0.5784 GB, free: 130.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002557/0.6505, allocations: 1.284 MB / 0.5796 GB, free: 130.6 MB / 446.1 MB Notification: Performance of SimCode: time 2.965e-06/0.6505, allocations: 1.969 kB / 0.5797 GB, free: 130.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.044/3.694, allocations: 50.65 MB / 0.6291 GB, free: 115.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/3.695, allocations: 217.8 kB / 0.6293 GB, free: 114.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.668/6.362, allocations: 0 / 0.6293 GB, free: 114.8 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.pipe 2>&1)