Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.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.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",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.0069/0.0069, allocations: 100.8 kB / 15.73 MB, free: 5.953 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.001071/0.001071, allocations: 187 kB / 16.67 MB, free: 5.883 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1281/0.1281, allocations: 5.373 MB / 295.9 MB, free: 2.797 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 67.89 kB / 412.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.3141, allocations: 50.61 MB / 462.9 MB, free: 21.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.00677/0.3209, allocations: 6.345 MB / 469.3 MB, free: 16.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004678/0.3256, allocations: 2.564 MB / 471.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009373/0.3265, allocations: 25.56 kB / 471.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002698/0.3293, allocations: 1.122 MB / 473 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001948/0.3312, allocations: 0.7779 MB / 473.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000749/0.332, allocations: 354.4 kB / 474.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001291/0.3333, allocations: 1.164 MB / 475.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00147/0.3348, allocations: 0.9901 MB / 476.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007757/0.3356, allocations: 474.8 kB / 476.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000715/0.3363, allocations: 0.573 MB / 477.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001673/0.3365, allocations: 127.8 kB / 477.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006481/0.3371, allocations: 285.4 kB / 477.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001585/0.3373, allocations: 257 kB / 477.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004743/0.3378, allocations: 0.5447 MB / 478.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001716/0.3395, allocations: 1.483 MB / 480 MB, free: 10.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.3395, allocations: 0 / 480 MB, free: 10.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3395, allocations: 0.6094 kB / 480 MB, free: 10.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.867e-05/0.3396, allocations: 5.031 kB / 480 MB, free: 10.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: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.003458/0.343, allocations: 1.544 MB / 481.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.3431, allocations: 9.781 kB / 481.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001356/0.3432, allocations: 138.9 kB / 481.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001997/0.3452, allocations: 359.5 kB / 482 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001379/0.3466, allocations: 0.6889 MB / 482.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.695e-05/0.3467, allocations: 76.47 kB / 482.8 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001612/0.3469, allocations: 89.25 kB / 482.9 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.3484, allocations: 0.9872 MB / 483.9 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.766e-05/0.3485, allocations: 5.219 kB / 483.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.577e-05/0.3486, allocations: 37.75 kB / 483.9 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.046e-05/0.3486, allocations: 22.56 kB / 483.9 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.3501, allocations: 0.8365 MB / 484.8 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004909/0.355, allocations: 3.848 MB / 488.6 MB, free: 4.332 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001699/0.3567, allocations: 1.489 MB / 490.1 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004535/0.3572, allocations: 251.4 kB / 490.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.393e-05/0.3573, allocations: 88.42 kB / 490.4 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004988/0.3578, allocations: 320.2 kB / 490.7 MB, free: 2.477 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.294e-06/0.3578, allocations: 0 / 490.7 MB, free: 2.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.002695/0.3605, allocations: 0.9576 MB / 491.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.951e-05/0.3606, allocations: 144.1 kB / 491.8 MB, free: 1.777 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005983/0.3612, allocations: 0.5009 MB / 492.3 MB, free: 1.457 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.178e-05/0.3612, allocations: 33.17 kB / 492.4 MB, free: 1.422 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002439/0.3615, allocations: 454.8 kB / 492.8 MB, free: 1.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.3616, allocations: 159.4 kB / 493 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000227/0.3618, allocations: 150.8 kB / 493.1 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.019e-05/0.3619, allocations: 367 kB / 493.5 MB, free: 440 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004773/0.3624, allocations: 232.7 kB / 493.7 MB, free: 324 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006392/0.3631, allocations: 435.8 kB / 494.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001225/0.3643, allocations: 0.7067 MB / 494.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.912e-06/0.3643, allocations: 6.094 kB / 494.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001888/0.3662, allocations: 0.8444 MB / 495.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.705e-05/0.3663, allocations: 42.66 kB / 495.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.3663, allocations: 5.281 kB / 495.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005246/0.3668, allocations: 88.08 kB / 495.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007286/0.3676, allocations: 171.2 kB / 496 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00164/0.3692, allocations: 1.58 MB / 497.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006632/0.3699, allocations: 90.7 kB / 497.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.231e-05/0.37, allocations: 40.64 kB / 497.7 MB, free: 13.19 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.0004074/0.3704, allocations: 270.3 kB / 498 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.3705, allocations: 58.62 kB / 498 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001484/0.372, allocations: 0.6908 MB / 498.7 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.372, allocations: 7.984 kB / 498.7 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.372, allocations: 3.984 kB / 498.7 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.383e-06/0.372, allocations: 3.984 kB / 498.7 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003968/0.376, allocations: 1.716 MB / 0.4887 GB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.376, allocations: 4 kB / 0.4887 GB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003167/0.3764, allocations: 67.91 kB / 0.4888 GB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005861/0.377, allocations: 258.4 kB / 0.489 GB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.062e-05/0.377, allocations: 15.98 kB / 0.489 GB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/0.3781, allocations: 0.8311 MB / 0.4898 GB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3781, allocations: 0 / 0.4898 GB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003256/0.3813, allocations: 1.174 MB / 0.491 GB, free: 8.195 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002963/0.3817, allocations: 172.4 kB / 0.4912 GB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.737e-05/0.3818, allocations: 19.94 kB / 0.4912 GB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004299/0.3822, allocations: 35.97 kB / 0.4912 GB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.764e-05/0.3823, allocations: 35.89 kB / 0.4912 GB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.34e-05/0.3823, allocations: 12 kB / 0.4913 GB, free: 7.906 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005061/0.3828, allocations: 346.9 kB / 0.4916 GB, free: 7.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3829, allocations: 11.88 kB / 0.4916 GB, free: 7.559 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009555/0.3838, allocations: 235.1 kB / 0.4918 GB, free: 7.328 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (converter.integrator.y,voltageSource.pin_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 (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.003705/0.3875, allocations: 1.77 MB / 0.4936 GB, free: 5.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.3891, allocations: 0.7511 MB / 0.4943 GB, free: 4.738 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3891, allocations: 0 / 0.4943 GB, free: 4.738 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005796/0.3897, allocations: 336.9 kB / 0.4946 GB, free: 4.398 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000615/0.3903, allocations: 93.92 kB / 0.4947 GB, free: 4.309 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00855/0.3989, allocations: 5.505 MB / 0.5001 GB, free: 14.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005159/0.3994, allocations: 0.9408 MB / 0.501 GB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003257/0.3997, allocations: 84.97 kB / 0.5011 GB, free: 13.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003614/0.4001, allocations: 295.3 kB / 0.5014 GB, free: 13.2 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4001, allocations: 0 / 0.5014 GB, free: 13.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0361/0.4362, allocations: 14.41 MB / 0.5154 GB, free: 14.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.6/14.03, allocations: 14.23 kB / 0.5154 GB, free: 14.93 MB / 398.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe 2>&1)