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.0008774/0.0008773, allocations: 90.83 kB / 15.06 MB, free: 1.094 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.001196/0.001196, allocations: 172.7 kB / 15.95 MB, free: 204 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.399/1.399, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1568/0.1568, allocations: 5.369 MB / 296.4 MB, free: 3.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000431/0.0004312, allocations: 8 kB / 362 MB, free: 14.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1276, allocations: 51.61 MB / 413.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.006324/0.134, allocations: 5.506 MB / 419.1 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004346/0.1384, allocations: 2.349 MB / 421.5 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005186/0.1389, allocations: 16 kB / 421.5 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008608/0.1398, allocations: 358.2 kB / 421.8 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001472/0.1413, allocations: 0.6221 MB / 422.4 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006453/0.1419, allocations: 239.6 kB / 422.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001075/0.143, allocations: 1.016 MB / 423.7 MB, free: 376 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2532/0.3962, allocations: 1.218 MB / 424.9 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007164/0.3969, allocations: 362 kB / 425.3 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006206/0.3975, allocations: 473.9 kB / 425.7 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.283e-05/0.3976, allocations: 53.69 kB / 425.8 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00052/0.3982, allocations: 196 kB / 426 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.3983, allocations: 169.2 kB / 426.1 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002059/0.3985, allocations: 201.2 kB / 426.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008863/0.3994, allocations: 1.111 MB / 427.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.3994, allocations: 3.828 kB / 427.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.3994, allocations: 0 / 427.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.3994, allocations: 3.375 kB / 427.5 MB, free: 37.16 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.002885/0.4023, allocations: 1.367 MB / 428.8 MB, free: 36.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.4024, allocations: 11.66 kB / 428.8 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001512/0.4025, allocations: 146.9 kB / 429 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001933/0.4045, allocations: 353.3 kB / 429.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001247/0.4057, allocations: 0.6734 MB / 430 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.269e-05/0.4058, allocations: 70.88 kB / 430.1 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/0.4059, allocations: 94.42 kB / 430.2 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001726/0.4077, allocations: 0.9919 MB / 431.2 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.781e-05/0.4077, allocations: 0 / 431.2 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.896e-05/0.4078, allocations: 36.28 kB / 431.2 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.153e-05/0.4078, allocations: 22.53 kB / 431.2 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.4093, allocations: 0.8571 MB / 432.1 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004715/0.4141, allocations: 3.9 MB / 436 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.4157, allocations: 1.487 MB / 437.5 MB, free: 33.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00043/0.4161, allocations: 259.6 kB / 437.7 MB, free: 33.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.818e-05/0.4162, allocations: 87.19 kB / 437.8 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005113/0.4167, allocations: 332.7 kB / 438.1 MB, free: 33.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 3.105e-06/0.4167, allocations: 4.875 kB / 438.1 MB, free: 33.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.002336/0.4191, allocations: 0.9933 MB / 439.1 MB, free: 32.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.038e-05/0.4191, allocations: 146.7 kB / 439.3 MB, free: 32.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004966/0.4196, allocations: 0.4906 MB / 439.7 MB, free: 32.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.4197, allocations: 34.2 kB / 439.8 MB, free: 32.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002605/0.42, allocations: 462.4 kB / 440.2 MB, free: 32.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.611e-05/0.4201, allocations: 165.3 kB / 440.4 MB, free: 32.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.368e-05/0.4201, allocations: 16.81 kB / 440.4 MB, free: 32.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.973e-05/0.4202, allocations: 366.9 kB / 440.8 MB, free: 31.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004306/0.4206, allocations: 237.9 kB / 441 MB, free: 31.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005056/0.4211, allocations: 436.9 kB / 441.4 MB, free: 31.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005438/0.4217, allocations: 324.8 kB / 441.7 MB, free: 31.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.4217, allocations: 3.094 kB / 441.7 MB, free: 31.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001505/0.4232, allocations: 0.8691 MB / 442.6 MB, free: 31.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.834e-05/0.4233, allocations: 34.73 kB / 442.7 MB, free: 31.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.4233, allocations: 6.312 kB / 442.7 MB, free: 31.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004136/0.4237, allocations: 80.25 kB / 442.7 MB, free: 31.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006243/0.4243, allocations: 180.5 kB / 442.9 MB, free: 31.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001132/0.4255, allocations: 1.462 MB / 444.4 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005777/0.4261, allocations: 100.9 kB / 444.5 MB, free: 29.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.118e-05/0.4261, allocations: 33.25 kB / 444.5 MB, free: 29.94 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 ($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 (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.0003588/0.4265, allocations: 265.9 kB / 444.8 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.304e-05/0.4266, allocations: 66.44 kB / 444.8 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001321/0.4279, allocations: 0.7199 MB / 445.6 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.4279, allocations: 6.688 kB / 445.6 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.4279, allocations: 0 / 445.6 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.4279, allocations: 0 / 445.6 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003516/0.4315, allocations: 1.762 MB / 447.3 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.4315, allocations: 11.08 kB / 447.3 MB, free: 29.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002904/0.4318, allocations: 76.56 kB / 447.4 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005064/0.4323, allocations: 265 kB / 447.7 MB, free: 29.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.235e-05/0.4323, allocations: 10.75 kB / 447.7 MB, free: 29.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008011/0.4332, allocations: 0.842 MB / 448.5 MB, free: 28.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.4332, allocations: 0 / 448.5 MB, free: 28.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002796/0.436, allocations: 1.21 MB / 449.7 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000236/0.4362, allocations: 183.2 kB / 449.9 MB, free: 27.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.45e-05/0.4363, allocations: 14.28 kB / 449.9 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000377/0.4367, allocations: 39.39 kB / 450 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.203e-05/0.4368, allocations: 38.38 kB / 450 MB, free: 27.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.181e-05/0.4368, allocations: 19.81 kB / 450 MB, free: 27.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003731/0.4372, allocations: 342.2 kB / 450.3 MB, free: 27.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4372, allocations: 0 / 450.3 MB, free: 27.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009991/0.4382, allocations: 236.6 kB / 450.6 MB, free: 27.46 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 (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.003118/0.4413, allocations: 1.814 MB / 452.4 MB, free: 26.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001331/0.4427, allocations: 0.7626 MB / 453.2 MB, free: 26.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4427, allocations: 1.188 kB / 453.2 MB, free: 26.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005114/0.4432, allocations: 347.5 kB / 453.5 MB, free: 25.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000631/0.4439, allocations: 90.27 kB / 453.6 MB, free: 25.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005818/0.4497, allocations: 3.87 MB / 457.5 MB, free: 23.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003598/0.4501, allocations: 0.9467 MB / 458.4 MB, free: 22.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003923/0.4505, allocations: 78.75 kB / 458.5 MB, free: 22.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003323/0.4508, allocations: 298.4 kB / 458.8 MB, free: 22.73 MB / 350.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4508, allocations: 2.969 kB / 458.8 MB, free: 22.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.035/0.4858, allocations: 13.17 MB / 471.9 MB, free: 21.76 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001391/0.486, allocations: 206.6 kB / 472.1 MB, free: 21.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.159/2.645, allocations: 0 / 472.1 MB, free: 21.52 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/linux/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) Environment - environmentSimulation: