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.0009123/0.0009122, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.00109/0.00109, allocations: 177.3 kB / 15.94 MB, free: 228 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.373/1.373, allocations: 223.2 MB / 239.9 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1446/0.1446, allocations: 5.376 MB / 296.3 MB, free: 4.012 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003257/0.0003259, allocations: 4 kB / 361.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1141, allocations: 51.6 MB / 413.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.009731/0.1239, allocations: 8.244 MB / 421.7 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1992/0.3232, allocations: 3.257 MB / 425 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001371/0.3246, allocations: 59.22 kB / 425 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00136/0.326, allocations: 0.5515 MB / 425.6 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002499/0.3285, allocations: 0.8443 MB / 426.4 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001523/0.33, allocations: 0.693 MB / 427.1 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003366/0.3334, allocations: 2.678 MB / 429.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01051/0.3439, allocations: 8.47 MB / 438.3 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002309/0.3462, allocations: 1.475 MB / 439.8 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002463/0.3487, allocations: 1.742 MB / 441.5 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004458/0.3492, allocations: 277.4 kB / 441.8 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001328/0.3505, allocations: 491.3 kB / 442.2 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005877/0.3511, allocations: 0.7549 MB / 443 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.3521, allocations: 0.8927 MB / 443.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005542/0.3577, allocations: 7.627 MB / 451.5 MB, free: 33.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3577, allocations: 0 / 451.5 MB, free: 33.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.3577, allocations: 3.938 kB / 451.5 MB, free: 33.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000208/0.3579, allocations: 5.969 kB / 451.5 MB, free: 33.17 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.01151/0.3695, allocations: 4.423 MB / 456 MB, free: 31.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.3695, allocations: 9.094 kB / 456 MB, free: 31.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001529/0.3711, allocations: 0.6061 MB / 456.6 MB, free: 30.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009065/0.3801, allocations: 1.598 MB / 458.2 MB, free: 30.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008987/0.3892, allocations: 2.818 MB / 461 MB, free: 28.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003209/0.3895, allocations: 320.9 kB / 461.3 MB, free: 28.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001617/0.3911, allocations: 411 kB / 461.7 MB, free: 28.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01531/0.4065, allocations: 6.634 MB / 468.3 MB, free: 25.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001019/0.4066, allocations: 6.156 kB / 468.3 MB, free: 25.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004191/0.407, allocations: 174.9 kB / 468.5 MB, free: 25.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002117/0.4073, allocations: 206 kB / 468.7 MB, free: 25.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0103/0.4176, allocations: 5.627 MB / 474.3 MB, free: 22.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0338/0.4514, allocations: 22.79 MB / 497.1 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004686/0.4562, allocations: 4.434 MB / 0.4898 GB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001642/0.4564, allocations: 114.6 kB / 0.4899 GB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001288/0.4577, allocations: 0.8448 MB / 0.4907 GB, free: 14.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=112): time 2.575e-06/0.4577, allocations: 0 / 0.4907 GB, free: 14.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=112): time 0.004975/0.4627, allocations: 2.76 MB / 0.4934 GB, free: 11.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.564e-05/0.4628, allocations: 149.5 kB / 0.4936 GB, free: 11.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002827/0.4656, allocations: 1.803 MB / 0.4953 GB, free: 9.898 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001052/0.4657, allocations: 45.7 kB / 0.4954 GB, free: 9.848 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001766/0.4675, allocations: 1.958 MB / 0.4973 GB, free: 7.879 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003621/0.4679, allocations: 410 kB / 0.4977 GB, free: 7.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.468, allocations: 52 kB / 0.4977 GB, free: 7.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.4682, allocations: 415 kB / 0.4981 GB, free: 7.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001694/0.4699, allocations: 1.129 MB / 0.4992 GB, free: 5.887 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002252/0.4721, allocations: 2.223 MB / 0.5014 GB, free: 3.141 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002191/0.4744, allocations: 1.691 MB / 0.5031 GB, free: 1.445 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.692e-05/0.4744, allocations: 8 kB / 0.5031 GB, free: 1.438 MB / 366.1 MB Notification: Performance of matching and sorting (n=322) (initialization): time 0.0053/0.4797, allocations: 3.582 MB / 0.5066 GB, free: 13.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.134e-05/0.4798, allocations: 49.7 kB / 0.5066 GB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.677e-05/0.4798, allocations: 43.95 kB / 0.5067 GB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004824/0.4803, allocations: 124.8 kB / 0.5068 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001999/0.4823, allocations: 0.6161 MB / 0.5074 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001417/0.4837, allocations: 1.537 MB / 0.5089 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001915/0.4857, allocations: 369 kB / 0.5092 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001763/0.4859, allocations: 136 kB / 0.5094 GB, free: 10.82 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.002614/0.4885, allocations: 1.716 MB / 0.511 GB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003079/0.4888, allocations: 165.9 kB / 0.5112 GB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003092/0.4919, allocations: 1.895 MB / 0.513 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002288/0.4942, allocations: 1.551 MB / 0.5146 GB, free: 5.438 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.4942, allocations: 4 kB / 0.5146 GB, free: 5.434 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.422e-05/0.4942, allocations: 7.969 kB / 0.5146 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009298/0.5035, allocations: 5.365 MB / 0.5198 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.5036, allocations: 7.938 kB / 0.5198 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008333/0.5044, allocations: 215.6 kB / 0.52 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005752/0.505, allocations: 262.5 kB / 0.5203 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.209e-05/0.5051, allocations: 34.05 kB / 0.5203 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009524/0.506, allocations: 0.839 MB / 0.5211 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.5061, allocations: 4 kB / 0.5211 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003951/0.51, allocations: 2.861 MB / 0.5239 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007813/0.5108, allocations: 398.6 kB / 0.5243 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001961/0.511, allocations: 24 kB / 0.5243 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008188/0.5118, allocations: 91.91 kB / 0.5244 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.512, allocations: 72.86 kB / 0.5245 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.395e-05/0.5121, allocations: 35.98 kB / 0.5245 GB, free: 11.03 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001713/0.5138, allocations: 1.225 MB / 0.5257 GB, free: 9.805 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5138, allocations: 0 / 0.5257 GB, free: 9.805 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002549/0.5164, allocations: 0.9444 MB / 0.5266 GB, free: 8.855 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.004805/0.5212, allocations: 3.9 MB / 0.5304 GB, free: 4.887 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004142/0.5253, allocations: 2.576 MB / 0.533 GB, free: 2.285 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.5253, allocations: 0.9375 kB / 0.533 GB, free: 2.285 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001208/0.5266, allocations: 0.8484 MB / 0.5338 GB, free: 1.422 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001612/0.5282, allocations: 337.1 kB / 0.5341 GB, free: 1.098 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02241/0.5506, allocations: 36.19 MB / 0.5695 GB, free: 11.93 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002484/0.5531, allocations: 3.102 MB / 0.5725 GB, free: 8.805 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002215/0.5554, allocations: 0.8503 MB / 0.5733 GB, free: 7.949 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001548/0.5569, allocations: 1.284 MB / 0.5746 GB, free: 6.664 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5569, allocations: 0 / 0.5746 GB, free: 6.664 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2645/0.8215, allocations: 48.23 MB / 0.6217 GB, free: 117.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000136/0.8216, allocations: 200 kB / 0.6219 GB, free: 117.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.349/3.171, allocations: 0 / 0.6219 GB, free: 117.6 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: