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.001196/0.001196, 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.001593/0.001594, allocations: 196.4 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.271/1.271, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1232/0.1232, allocations: 5.396 MB / 295.3 MB, free: 2.922 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 59.89 kB / 360.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08579/0.08706, allocations: 50.61 MB / 410.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.007489/0.09458, allocations: 6.322 MB / 417.2 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004131/0.09874, allocations: 2.558 MB / 419.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007921/0.09956, allocations: 16 kB / 419.8 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002735/0.1023, allocations: 1.035 MB / 420.8 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002279/0.1046, allocations: 0.7076 MB / 421.5 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006567/0.1053, allocations: 319.2 kB / 421.8 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1794/0.2847, allocations: 1.074 MB / 422.9 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001842/0.2866, allocations: 0.8167 MB / 423.7 MB, free: 39.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007376/0.2873, allocations: 424.9 kB / 424.1 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005579/0.2879, allocations: 0.5375 MB / 424.7 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001131/0.288, allocations: 78.41 kB / 424.7 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005814/0.2886, allocations: 236.6 kB / 425 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000153/0.2888, allocations: 195.4 kB / 425.2 MB, free: 38.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003642/0.2891, allocations: 0.4942 MB / 425.7 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000992/0.2901, allocations: 1.424 MB / 427.1 MB, free: 38.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2901, allocations: 0 / 427.1 MB, free: 38.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.51e-07/0.2902, allocations: 0.75 kB / 427.1 MB, free: 38.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.828e-06/0.2902, allocations: 3.156 kB / 427.1 MB, free: 38.65 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.003396/0.2936, allocations: 1.543 MB / 428.6 MB, free: 37.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.2936, allocations: 9.531 kB / 428.6 MB, free: 37.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001523/0.2938, allocations: 145.5 kB / 428.8 MB, free: 37.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001945/0.2957, allocations: 350 kB / 429.1 MB, free: 37.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001193/0.2969, allocations: 0.6835 MB / 429.8 MB, free: 37.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.706e-05/0.297, allocations: 72.31 kB / 429.9 MB, free: 37.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.2971, allocations: 95.41 kB / 430 MB, free: 37.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.2986, allocations: 0.9958 MB / 431 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.2987, allocations: 0 / 431 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.75e-05/0.2987, allocations: 37.53 kB / 431 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.2988, allocations: 22.69 kB / 431 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/0.3002, allocations: 0.8422 MB / 431.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00452/0.3048, allocations: 3.878 MB / 435.7 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00163/0.3064, allocations: 1.48 MB / 437.2 MB, free: 33.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004295/0.3068, allocations: 255.6 kB / 437.5 MB, free: 33.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.129e-05/0.3069, allocations: 93.05 kB / 437.6 MB, free: 33.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005543/0.3075, allocations: 315.3 kB / 437.9 MB, free: 33.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.435e-06/0.3075, allocations: 4 kB / 437.9 MB, free: 33.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.00248/0.31, allocations: 0.9456 MB / 438.8 MB, free: 32.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.75e-05/0.31, allocations: 150 kB / 439 MB, free: 32.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004915/0.3105, allocations: 0.4984 MB / 439.5 MB, free: 32.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.965e-05/0.3106, allocations: 33.7 kB / 439.5 MB, free: 32.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001978/0.3108, allocations: 461.8 kB / 439.9 MB, free: 31.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.152e-05/0.3109, allocations: 155.2 kB / 440.1 MB, free: 31.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001876/0.3111, allocations: 147.7 kB / 440.2 MB, free: 31.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.011e-05/0.3112, allocations: 365.4 kB / 440.6 MB, free: 31.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004405/0.3116, allocations: 236.4 kB / 440.8 MB, free: 31.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005076/0.3121, allocations: 433.1 kB / 441.3 MB, free: 30.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008935/0.313, allocations: 0.7012 MB / 442 MB, free: 30.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.313, allocations: 3.156 kB / 442 MB, free: 30.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001501/0.3145, allocations: 0.843 MB / 442.8 MB, free: 30.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.515e-05/0.3146, allocations: 39.27 kB / 442.8 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.3146, allocations: 6.25 kB / 442.8 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004602/0.3151, allocations: 92.02 kB / 442.9 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006344/0.3157, allocations: 170.4 kB / 443.1 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001108/0.3168, allocations: 1.475 MB / 444.6 MB, free: 28.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005958/0.3174, allocations: 86.86 kB / 444.7 MB, free: 28.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-05/0.3175, allocations: 31.89 kB / 444.7 MB, free: 28.58 MB / 350.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.0003198/0.3178, allocations: 272.5 kB / 445 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.816e-05/0.3179, allocations: 54.53 kB / 445 MB, free: 28.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/0.3192, allocations: 0.6928 MB / 445.7 MB, free: 28.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3192, allocations: 11.06 kB / 445.7 MB, free: 28.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.3192, allocations: 3.609 kB / 445.7 MB, free: 28.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.3192, allocations: 3 kB / 445.7 MB, free: 28.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003477/0.3227, allocations: 1.725 MB / 447.4 MB, free: 27.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3227, allocations: 0 / 447.4 MB, free: 27.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002916/0.323, allocations: 69.8 kB / 447.5 MB, free: 27.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005201/0.3235, allocations: 258.8 kB / 447.8 MB, free: 27.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.544e-05/0.3236, allocations: 17.08 kB / 447.8 MB, free: 27.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008229/0.3244, allocations: 0.8357 MB / 448.6 MB, free: 26.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.3244, allocations: 2.875 kB / 448.6 MB, free: 26.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002939/0.3274, allocations: 1.171 MB / 449.8 MB, free: 25.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002586/0.3276, allocations: 184.9 kB / 450 MB, free: 25.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.092e-05/0.3277, allocations: 10.59 kB / 450 MB, free: 25.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004194/0.3282, allocations: 44.83 kB / 450 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.564e-05/0.3283, allocations: 30.48 kB / 450.1 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.089e-05/0.3283, allocations: 15.91 kB / 450.1 MB, free: 25.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003791/0.3287, allocations: 346.7 kB / 450.4 MB, free: 25.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.3287, allocations: 0 / 450.4 MB, free: 25.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009135/0.3296, allocations: 239.5 kB / 450.6 MB, free: 25.47 MB / 350.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.003428/0.333, allocations: 1.761 MB / 452.4 MB, free: 24.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001488/0.3345, allocations: 0.7485 MB / 453.2 MB, free: 24.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.3346, allocations: 3.156 kB / 453.2 MB, free: 24.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005391/0.3351, allocations: 342.4 kB / 453.5 MB, free: 23.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006621/0.3358, allocations: 96.72 kB / 453.6 MB, free: 23.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008134/0.3439, allocations: 5.994 MB / 459.6 MB, free: 20.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003753/0.3443, allocations: 0.9499 MB / 460.5 MB, free: 19.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003734/0.3447, allocations: 86.98 kB / 460.6 MB, free: 19.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003229/0.345, allocations: 300.6 kB / 460.9 MB, free: 19.12 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3451, allocations: 0 / 460.9 MB, free: 19.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02717/0.3722, allocations: 13.55 MB / 474.5 MB, free: 18 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001385/0.3724, allocations: 216.1 kB / 474.7 MB, free: 17.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.056/2.428, allocations: 0 / 474.7 MB, free: 17.75 MB / 350.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)