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.001289/0.001289, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001738/0.001737, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 223.2 MB / 240 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1717/0.1717, allocations: 5.385 MB / 296.5 MB, free: 3.93 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003159/0.0003162, allocations: 4 kB / 362 MB, free: 14.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09692/0.09726, allocations: 51.61 MB / 413.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.01046/0.1078, allocations: 8.746 MB / 422.4 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2006/0.3084, allocations: 3.216 MB / 425.6 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002109/0.3106, allocations: 60.06 kB / 425.6 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002326/0.3129, allocations: 0.5575 MB / 426.2 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003369/0.3163, allocations: 0.8037 MB / 427 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00208/0.3184, allocations: 0.7034 MB / 427.7 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004512/0.3229, allocations: 3.844 MB / 431.5 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01407/0.337, allocations: 8.543 MB / 440.1 MB, free: 34.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003058/0.3401, allocations: 1.594 MB / 441.7 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003597/0.3437, allocations: 1.875 MB / 443.6 MB, free: 33.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00112/0.3448, allocations: 276.1 kB / 443.8 MB, free: 33.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002479/0.3473, allocations: 0.5305 MB / 444.4 MB, free: 33.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001324/0.3487, allocations: 0.7661 MB / 445.1 MB, free: 33.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002122/0.3508, allocations: 0.8812 MB / 446 MB, free: 32.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007386/0.3582, allocations: 7.648 MB / 453.7 MB, free: 31.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3582, allocations: 0 / 453.7 MB, free: 31.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3583, allocations: 7.25 kB / 453.7 MB, free: 31.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002163/0.3585, allocations: 0 / 453.7 MB, free: 31.38 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.01073/0.3692, allocations: 4.424 MB / 458.1 MB, free: 29.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.3693, allocations: 9.281 kB / 458.1 MB, free: 29.35 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001531/0.3708, allocations: 0.6096 MB / 458.7 MB, free: 29.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008656/0.3795, allocations: 1.592 MB / 460.3 MB, free: 28.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005225/0.3847, allocations: 2.835 MB / 463.1 MB, free: 27.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003098/0.385, allocations: 319.4 kB / 463.4 MB, free: 26.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000969/0.386, allocations: 420.8 kB / 463.9 MB, free: 26.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01391/0.3999, allocations: 6.661 MB / 470.5 MB, free: 24.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-05/0.4001, allocations: 9.688 kB / 470.5 MB, free: 24.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004214/0.4005, allocations: 173.2 kB / 470.7 MB, free: 23.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002732/0.4008, allocations: 210.2 kB / 470.9 MB, free: 23.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01224/0.413, allocations: 5.625 MB / 476.5 MB, free: 20.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03382/0.4469, allocations: 22.79 MB / 499.3 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005168/0.4521, allocations: 4.429 MB / 0.4919 GB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001446/0.4536, allocations: 0.8825 MB / 0.4928 GB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002176/0.4538, allocations: 116.5 kB / 0.4929 GB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001298/0.4551, allocations: 0.8357 MB / 0.4937 GB, free: 10.83 MB / 366.1 MB Notification: Performance of pre-optimization done (n=112): time 2.906e-06/0.4551, allocations: 0 / 0.4937 GB, free: 10.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=112): time 0.005039/0.4602, allocations: 2.404 MB / 0.4961 GB, free: 8.395 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.4603, allocations: 149.5 kB / 0.4962 GB, free: 8.219 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003113/0.4634, allocations: 1.811 MB / 0.498 GB, free: 6.398 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001277/0.4636, allocations: 41.7 kB / 0.498 GB, free: 6.352 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002485/0.4661, allocations: 1.959 MB / 0.4999 GB, free: 4.379 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006537/0.4667, allocations: 408.3 kB / 0.5003 GB, free: 3.984 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002163/0.467, allocations: 48 kB / 0.5004 GB, free: 3.938 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003299/0.4673, allocations: 411.1 kB / 0.5008 GB, free: 3.531 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002685/0.47, allocations: 1.121 MB / 0.5019 GB, free: 2.406 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003665/0.4737, allocations: 2.22 MB / 0.504 GB, free: 15.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002785/0.4765, allocations: 1.671 MB / 0.5057 GB, free: 13.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.342e-05/0.4765, allocations: 12 kB / 0.5057 GB, free: 13.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=322) (initialization): time 0.006551/0.4831, allocations: 3.561 MB / 0.5091 GB, free: 10.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.715e-05/0.4832, allocations: 45.7 kB / 0.5092 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001287/0.4833, allocations: 40 kB / 0.5092 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005086/0.4838, allocations: 136.7 kB / 0.5094 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002116/0.4859, allocations: 0.6124 MB / 0.51 GB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001698/0.4877, allocations: 1.532 MB / 0.5114 GB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002193/0.4899, allocations: 368.9 kB / 0.5118 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002708/0.4901, allocations: 136 kB / 0.5119 GB, free: 7.391 MB / 382.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 ($PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,$PRE.mpTracker.vRef,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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003328/0.4935, allocations: 1.726 MB / 0.5136 GB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004164/0.4939, allocations: 161.9 kB / 0.5138 GB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003765/0.4977, allocations: 1.887 MB / 0.5156 GB, free: 3.574 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002657/0.5003, allocations: 1.52 MB / 0.5171 GB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.5004, allocations: 4 kB / 0.5171 GB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.5004, allocations: 3.984 kB / 0.5171 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01133/0.5117, allocations: 5.321 MB / 0.5223 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.5118, allocations: 0 / 0.5223 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008204/0.5126, allocations: 219.8 kB / 0.5225 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006258/0.5132, allocations: 262.3 kB / 0.5228 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.608e-05/0.5133, allocations: 43.94 kB / 0.5228 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001013/0.5144, allocations: 0.8351 MB / 0.5236 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.5144, allocations: 0 / 0.5236 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005701/0.5201, allocations: 2.916 MB / 0.5265 GB, free: 8.293 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000834/0.5209, allocations: 394.6 kB / 0.5268 GB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002171/0.5212, allocations: 24 kB / 0.5269 GB, free: 7.863 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007733/0.5219, allocations: 99.95 kB / 0.527 GB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.5221, allocations: 72.8 kB / 0.527 GB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.287e-05/0.5222, allocations: 35.98 kB / 0.5271 GB, free: 7.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001863/0.524, allocations: 1.225 MB / 0.5283 GB, free: 6.438 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5241, allocations: 0 / 0.5283 GB, free: 6.438 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003039/0.5271, allocations: 0.9405 MB / 0.5292 GB, free: 5.492 MB / 398.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.006392/0.5335, allocations: 3.563 MB / 0.5327 GB, free: 1.883 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005675/0.5392, allocations: 2.55 MB / 0.5351 GB, free: 15.31 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/0.5393, allocations: 0 / 0.5351 GB, free: 15.31 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001575/0.5408, allocations: 0.8438 MB / 0.536 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0021/0.543, allocations: 351 kB / 0.5363 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03126/0.5742, allocations: 16.99 MB / 0.5529 GB, free: 12.22 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003003/0.5773, allocations: 3.034 MB / 0.5559 GB, free: 9.156 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002369/0.5797, allocations: 0.8503 MB / 0.5567 GB, free: 8.301 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00178/0.5815, allocations: 1.288 MB / 0.5579 GB, free: 7.012 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5815, allocations: 0 / 0.5579 GB, free: 7.012 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2909/0.8724, allocations: 48.67 MB / 0.6055 GB, free: 125.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001692/0.8726, allocations: 194.4 kB / 0.6057 GB, free: 125 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.951/3.824, allocations: 1 kB / 0.6057 GB, free: 125 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/linux/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) Environment - environmentSimulation: