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.001028/0.001028, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001218/0.001218, allocations: 199.2 kB / 16.14 MB, free: 6.707 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.318/1.318, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1419/0.1419, allocations: 5.379 MB / 295.3 MB, free: 2.938 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 59.91 kB / 360.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1068, allocations: 50.62 MB / 410.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.01034/0.1171, allocations: 9.987 MB / 420.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1701/0.2873, allocations: 3.489 MB / 424.3 MB, free: 38.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001566/0.2889, allocations: 65.38 kB / 424.4 MB, free: 38.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005691/0.2946, allocations: 3.055 MB / 427.5 MB, free: 38.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003412/0.298, allocations: 0.9116 MB / 428.4 MB, free: 38.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001887/0.2999, allocations: 0.8886 MB / 429.3 MB, free: 38.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003771/0.3037, allocations: 4.066 MB / 433.3 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01/0.3137, allocations: 8.914 MB / 442.2 MB, free: 32.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002607/0.3164, allocations: 2.059 MB / 444.3 MB, free: 32.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003237/0.3196, allocations: 2.53 MB / 446.8 MB, free: 30.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008503/0.3205, allocations: 494.7 kB / 447.3 MB, free: 30.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001678/0.3222, allocations: 0.7487 MB / 448.1 MB, free: 30.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007155/0.3229, allocations: 1.089 MB / 449.1 MB, free: 30.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002172/0.3251, allocations: 2.358 MB / 451.5 MB, free: 28.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005963/0.3311, allocations: 8.903 MB / 460.4 MB, free: 25.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3311, allocations: 0 / 460.4 MB, free: 25.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3311, allocations: 0 / 460.4 MB, free: 25.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002281/0.3314, allocations: 0 / 460.4 MB, free: 25.52 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.01437/0.3457, allocations: 5.36 MB / 465.8 MB, free: 22.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/0.3458, allocations: 14.28 kB / 465.8 MB, free: 22.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001578/0.3474, allocations: 0.6074 MB / 466.4 MB, free: 22.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009512/0.3569, allocations: 1.59 MB / 468 MB, free: 22.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006775/0.3637, allocations: 2.864 MB / 470.8 MB, free: 20.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000449/0.3642, allocations: 320.6 kB / 471.2 MB, free: 20.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002052/0.3663, allocations: 411.4 kB / 471.6 MB, free: 20.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01635/0.3827, allocations: 6.687 MB / 478.2 MB, free: 17.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.062e-05/0.3828, allocations: 5.375 kB / 478.2 MB, free: 17.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004379/0.3832, allocations: 178.8 kB / 478.4 MB, free: 17.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002113/0.3835, allocations: 208.9 kB / 478.6 MB, free: 17.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009441/0.3929, allocations: 5.641 MB / 484.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02651/0.4194, allocations: 22.76 MB / 0.4951 GB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005388/0.4249, allocations: 4.423 MB / 0.4995 GB, free: 3.262 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001341/0.4262, allocations: 0.8746 MB / 0.5003 GB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001585/0.4264, allocations: 113.4 kB / 0.5004 GB, free: 2.262 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001249/0.4277, allocations: 0.8356 MB / 0.5012 GB, free: 1.402 MB / 366.1 MB Notification: Performance of pre-optimization done (n=112): time 3.066e-06/0.4277, allocations: 0 / 0.5012 GB, free: 1.402 MB / 366.1 MB Notification: Performance of matching and sorting (n=112): time 0.004997/0.4327, allocations: 2.372 MB / 0.5036 GB, free: 15 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.197e-05/0.4328, allocations: 149.5 kB / 0.5037 GB, free: 14.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002632/0.4354, allocations: 1.814 MB / 0.5055 GB, free: 13 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.904e-05/0.4355, allocations: 45.7 kB / 0.5055 GB, free: 12.95 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001616/0.4372, allocations: 1.954 MB / 0.5074 GB, free: 10.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000364/0.4375, allocations: 404 kB / 0.5078 GB, free: 10.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000744/0.4383, allocations: 0.5473 MB / 0.5083 GB, free: 10.03 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.288e-05/0.4384, allocations: 305.1 kB / 0.5086 GB, free: 9.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001736/0.4401, allocations: 1.121 MB / 0.5097 GB, free: 8.605 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002453/0.4426, allocations: 2.224 MB / 0.5119 GB, free: 5.852 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004153/0.4468, allocations: 3.451 MB / 0.5153 GB, free: 1.871 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.958e-05/0.4468, allocations: 12 kB / 0.5153 GB, free: 1.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=322) (initialization): time 0.005491/0.4523, allocations: 3.568 MB / 0.5188 GB, free: 14.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.884e-05/0.4524, allocations: 45.95 kB / 0.5188 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.678e-05/0.4524, allocations: 40 kB / 0.5188 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004927/0.4529, allocations: 127.4 kB / 0.519 GB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001939/0.4549, allocations: 0.6083 MB / 0.5196 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001436/0.4563, allocations: 1.526 MB / 0.5211 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001815/0.4581, allocations: 368.8 kB / 0.5214 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001869/0.4583, allocations: 136 kB / 0.5215 GB, free: 11.29 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.002277/0.4606, allocations: 1.718 MB / 0.5232 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000271/0.4609, allocations: 169.8 kB / 0.5234 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003083/0.464, allocations: 1.86 MB / 0.5252 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002316/0.4663, allocations: 1.512 MB / 0.5267 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.4663, allocations: 4 kB / 0.5267 GB, free: 5.973 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.4663, allocations: 7.922 kB / 0.5267 GB, free: 5.965 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008966/0.4753, allocations: 5.298 MB / 0.5319 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.4753, allocations: 0 / 0.5319 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007874/0.4761, allocations: 215.8 kB / 0.5321 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005554/0.4767, allocations: 246.4 kB / 0.5323 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.176e-05/0.4768, allocations: 31.98 kB / 0.5323 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001064/0.4778, allocations: 0.8311 MB / 0.5331 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.4779, allocations: 0 / 0.5331 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005496/0.4834, allocations: 2.878 MB / 0.5359 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006701/0.4841, allocations: 370.8 kB / 0.5363 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002181/0.4843, allocations: 31.84 kB / 0.5363 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000804/0.4851, allocations: 87.95 kB / 0.5364 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.4853, allocations: 80.83 kB / 0.5365 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-05/0.4853, allocations: 39.97 kB / 0.5365 GB, free: 11.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001708/0.4871, allocations: 1.233 MB / 0.5377 GB, free: 10.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4871, allocations: 0 / 0.5377 GB, free: 10.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002399/0.4895, allocations: 0.9483 MB / 0.5387 GB, free: 9.527 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.005853/0.4953, allocations: 3.516 MB / 0.5421 GB, free: 5.965 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00389/0.4992, allocations: 2.553 MB / 0.5446 GB, free: 3.383 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4993, allocations: 1.938 kB / 0.5446 GB, free: 3.383 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001233/0.5005, allocations: 0.8252 MB / 0.5454 GB, free: 2.543 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001744/0.5023, allocations: 356.5 kB / 0.5457 GB, free: 2.199 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03429/0.5366, allocations: 23.79 MB / 0.569 GB, free: 8.727 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002649/0.5392, allocations: 3.026 MB / 0.5719 GB, free: 5.668 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002134/0.5414, allocations: 0.8542 MB / 0.5728 GB, free: 4.809 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001623/0.543, allocations: 1.284 MB / 0.574 GB, free: 3.523 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.543, allocations: 0 / 0.574 GB, free: 3.523 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2238/0.7669, allocations: 49.67 MB / 0.6225 GB, free: 112.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000132/0.767, allocations: 211 kB / 0.6227 GB, free: 112.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.64/3.407, allocations: 0 / 0.6227 GB, free: 112.7 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)