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.0008991/0.0008991, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.005542/0.005542, allocations: 169.4 kB / 16.26 MB, free: 6.68 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.234/1.234, allocations: 223.2 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1339/0.1339, allocations: 5.378 MB / 296.8 MB, free: 3.883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002962/0.0002963, allocations: 11.98 kB / 362.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07883/0.07915, allocations: 51.6 MB / 414.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.008637/0.08781, allocations: 9.38 MB / 423.7 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1531/0.2409, allocations: 3.433 MB / 427.1 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009088/0.2418, allocations: 61.44 kB / 427.2 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001253/0.2431, allocations: 0.7022 MB / 427.9 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00215/0.2453, allocations: 0.8943 MB / 428.8 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00165/0.2469, allocations: 0.8767 MB / 429.6 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003233/0.2502, allocations: 4.064 MB / 433.7 MB, free: 35.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01109/0.2613, allocations: 10.46 MB / 444.2 MB, free: 31.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001785/0.2631, allocations: 1.618 MB / 445.8 MB, free: 31.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001839/0.265, allocations: 1.954 MB / 447.7 MB, free: 30.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000398/0.2654, allocations: 277.8 kB / 448 MB, free: 30.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001092/0.2665, allocations: 0.5385 MB / 448.5 MB, free: 30.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004915/0.267, allocations: 0.7857 MB / 449.3 MB, free: 29.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001489/0.2685, allocations: 2.025 MB / 451.4 MB, free: 28.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005536/0.274, allocations: 8.517 MB / 459.9 MB, free: 26.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.274, allocations: 0 / 459.9 MB, free: 26.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.2741, allocations: 0 / 459.9 MB, free: 26.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002018/0.2743, allocations: 3.156 kB / 459.9 MB, free: 26.59 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.01104/0.2853, allocations: 4.394 MB / 464.3 MB, free: 24.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.2854, allocations: 9.625 kB / 464.3 MB, free: 24.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001646/0.287, allocations: 0.6098 MB / 464.9 MB, free: 24.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009427/0.2965, allocations: 1.587 MB / 466.5 MB, free: 23.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004994/0.3015, allocations: 2.869 MB / 469.3 MB, free: 22.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002319/0.3017, allocations: 314.5 kB / 469.7 MB, free: 22.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009692/0.3027, allocations: 418.7 kB / 470.1 MB, free: 21.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01233/0.3151, allocations: 6.7 MB / 476.8 MB, free: 19.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.094e-05/0.3152, allocations: 9.969 kB / 476.8 MB, free: 19.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004095/0.3156, allocations: 174.5 kB / 476.9 MB, free: 18.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001957/0.3158, allocations: 210.6 kB / 477.1 MB, free: 18.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008757/0.3246, allocations: 5.657 MB / 482.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02628/0.3509, allocations: 22.79 MB / 0.4937 GB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005363/0.3563, allocations: 4.439 MB / 0.4981 GB, free: 5.699 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001314/0.3576, allocations: 0.8864 MB / 0.4989 GB, free: 4.812 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001254/0.3577, allocations: 115.3 kB / 0.4991 GB, free: 4.688 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001241/0.359, allocations: 0.8409 MB / 0.4999 GB, free: 3.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=112): time 2.434e-06/0.359, allocations: 0 / 0.4999 GB, free: 3.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=112): time 0.004663/0.3637, allocations: 2.419 MB / 0.5022 GB, free: 1.367 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.743e-05/0.3638, allocations: 152.6 kB / 0.5024 GB, free: 1.191 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002272/0.366, allocations: 1.818 MB / 0.5042 GB, free: 15.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.408e-05/0.3661, allocations: 41.7 kB / 0.5042 GB, free: 15.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001321/0.3675, allocations: 1.962 MB / 0.5061 GB, free: 13.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002998/0.3678, allocations: 404.3 kB / 0.5065 GB, free: 12.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002662/0.368, allocations: 202.8 kB / 0.5067 GB, free: 12.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.663e-05/0.3681, allocations: 305.1 kB / 0.507 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001638/0.3698, allocations: 1.133 MB / 0.5081 GB, free: 11.31 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002249/0.372, allocations: 2.228 MB / 0.5103 GB, free: 8.555 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003869/0.3759, allocations: 3.474 MB / 0.5137 GB, free: 4.547 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.535e-05/0.3759, allocations: 8 kB / 0.5137 GB, free: 4.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=322) (initialization): time 0.005464/0.3814, allocations: 3.587 MB / 0.5172 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.528e-05/0.3815, allocations: 45.7 kB / 0.5172 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-05/0.3815, allocations: 36 kB / 0.5172 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005053/0.3821, allocations: 128.8 kB / 0.5174 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002026/0.3841, allocations: 0.6124 MB / 0.518 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001369/0.3855, allocations: 1.526 MB / 0.5195 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002027/0.3875, allocations: 373 kB / 0.5198 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002238/0.3877, allocations: 132 kB / 0.5199 GB, free: 13.95 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.002542/0.3903, allocations: 1.727 MB / 0.5216 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000355/0.3907, allocations: 157.9 kB / 0.5218 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003388/0.3941, allocations: 1.887 MB / 0.5236 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002483/0.3966, allocations: 1.532 MB / 0.5251 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.3966, allocations: 3.938 kB / 0.5251 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.3966, allocations: 3.984 kB / 0.5251 GB, free: 8.582 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009528/0.4061, allocations: 5.339 MB / 0.5303 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.4062, allocations: 0 / 0.5303 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008334/0.407, allocations: 219.8 kB / 0.5305 GB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005638/0.4076, allocations: 266.3 kB / 0.5308 GB, free: 2.695 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.71e-05/0.4077, allocations: 32 kB / 0.5308 GB, free: 2.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009616/0.4086, allocations: 0.8389 MB / 0.5316 GB, free: 1.793 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.4086, allocations: 0 / 0.5316 GB, free: 1.793 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005388/0.414, allocations: 2.927 MB / 0.5345 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007209/0.4148, allocations: 398.6 kB / 0.5349 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002851/0.4151, allocations: 24 kB / 0.5349 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009025/0.416, allocations: 95.91 kB / 0.535 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001946/0.4162, allocations: 72.84 kB / 0.5351 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.541e-05/0.4163, allocations: 39.42 kB / 0.5351 GB, free: 14.19 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001813/0.4181, allocations: 1.241 MB / 0.5363 GB, free: 12.95 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4181, allocations: 0 / 0.5363 GB, free: 12.95 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00246/0.4206, allocations: 0.9405 MB / 0.5372 GB, free: 12 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.006186/0.4268, allocations: 3.566 MB / 0.5407 GB, free: 8.391 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004282/0.4311, allocations: 2.569 MB / 0.5432 GB, free: 5.793 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.4311, allocations: 0 / 0.5432 GB, free: 5.793 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001382/0.4325, allocations: 0.8373 MB / 0.544 GB, free: 4.941 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002276/0.4348, allocations: 358.9 kB / 0.5444 GB, free: 4.594 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03602/0.4708, allocations: 23.88 MB / 0.5677 GB, free: 11.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003052/0.4739, allocations: 3.03 MB / 0.5707 GB, free: 7.957 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002131/0.476, allocations: 0.8581 MB / 0.5715 GB, free: 7.094 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001586/0.4776, allocations: 1.28 MB / 0.5728 GB, free: 5.812 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4776, allocations: 0 / 0.5728 GB, free: 5.812 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2126/0.6903, allocations: 49.12 MB / 0.6207 GB, free: 116.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001377/0.6904, allocations: 214.8 kB / 0.6209 GB, free: 116.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.458/3.148, allocations: 0 / 0.6209 GB, free: 116.2 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)