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.0009125/0.0009125, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.0009321/0.0009323, allocations: 177.3 kB / 15.95 MB, free: 216 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.288/1.288, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1445/0.1445, allocations: 5.375 MB / 296.4 MB, free: 3.934 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003267/0.0003268, allocations: 12 kB / 361.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09512/0.09547, allocations: 51.6 MB / 413.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.005888/0.1014, allocations: 5.202 MB / 418.7 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003602/0.105, allocations: 2.358 MB / 421.1 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000669/0.1057, allocations: 27.94 kB / 421.1 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007858/0.1065, allocations: 326.2 kB / 421.4 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001586/0.1081, allocations: 0.6737 MB / 422.1 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006716/0.1088, allocations: 247.4 kB / 422.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001055/0.1099, allocations: 0.7256 MB / 423 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1879/0.2978, allocations: 1.192 MB / 424.2 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009974/0.2989, allocations: 361 kB / 424.6 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007093/0.2996, allocations: 460 kB / 425 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001342/0.2997, allocations: 52.38 kB / 425.1 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005859/0.3003, allocations: 179.2 kB / 425.3 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000177/0.3005, allocations: 167.9 kB / 425.4 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000225/0.3007, allocations: 193.7 kB / 425.6 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001015/0.3018, allocations: 1.113 MB / 426.7 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.3018, allocations: 2.812 kB / 426.7 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3018, allocations: 1.5 kB / 426.7 MB, free: 37.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.3018, allocations: 3.594 kB / 426.7 MB, free: 37.2 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.00325/0.3051, allocations: 1.371 MB / 428.1 MB, free: 36.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.534e-05/0.3051, allocations: 9.031 kB / 428.1 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002348/0.3054, allocations: 139.8 kB / 428.3 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00199/0.3074, allocations: 357.3 kB / 428.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.3086, allocations: 0.6714 MB / 429.3 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.029e-05/0.3087, allocations: 70.12 kB / 429.3 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.3088, allocations: 94.8 kB / 429.4 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001509/0.3103, allocations: 0.9863 MB / 430.4 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.427e-05/0.3104, allocations: 0 / 430.4 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.509e-05/0.3105, allocations: 40.28 kB / 430.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.805e-05/0.3105, allocations: 22.47 kB / 430.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001417/0.3119, allocations: 0.8526 MB / 431.3 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004677/0.3166, allocations: 3.904 MB / 435.2 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001826/0.3185, allocations: 1.486 MB / 436.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.092e-05/0.3185, allocations: 85.69 kB / 436.8 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005221/0.3191, allocations: 327.8 kB / 437.1 MB, free: 33.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.244e-06/0.3191, allocations: 0 / 437.1 MB, free: 33.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.002344/0.3214, allocations: 0.9969 MB / 438.1 MB, free: 32.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.101e-05/0.3215, allocations: 138.2 kB / 438.3 MB, free: 32.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004563/0.3219, allocations: 0.494 MB / 438.8 MB, free: 32.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.318e-05/0.322, allocations: 40.77 kB / 438.8 MB, free: 32.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002226/0.3222, allocations: 466.1 kB / 439.2 MB, free: 32.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.3223, allocations: 157.6 kB / 439.4 MB, free: 32.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-05/0.3224, allocations: 16.56 kB / 439.4 MB, free: 32.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.199e-05/0.3225, allocations: 364.3 kB / 439.8 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004332/0.3229, allocations: 243.9 kB / 440 MB, free: 31.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004973/0.3234, allocations: 435.4 kB / 440.4 MB, free: 31.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005055/0.3239, allocations: 323.6 kB / 440.8 MB, free: 31.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.3239, allocations: 6.156 kB / 440.8 MB, free: 31.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001478/0.3254, allocations: 0.8688 MB / 441.6 MB, free: 31.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.945e-05/0.3255, allocations: 32.11 kB / 441.7 MB, free: 31.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.3255, allocations: 6.562 kB / 441.7 MB, free: 31.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004341/0.3259, allocations: 89.98 kB / 441.8 MB, free: 31.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006252/0.3266, allocations: 175.6 kB / 441.9 MB, free: 31.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001151/0.3277, allocations: 1.473 MB / 443.4 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000586/0.3283, allocations: 91.97 kB / 443.5 MB, free: 30.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.88e-05/0.3284, allocations: 34.72 kB / 443.5 MB, free: 30.03 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.0003006/0.3287, allocations: 269.4 kB / 443.8 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.106e-05/0.3288, allocations: 63.14 kB / 443.8 MB, free: 29.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001219/0.33, allocations: 0.7144 MB / 444.6 MB, free: 29.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.33, allocations: 7.406 kB / 444.6 MB, free: 29.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.33, allocations: 4.688 kB / 444.6 MB, free: 29.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.33, allocations: 3.328 kB / 444.6 MB, free: 29.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003431/0.3335, allocations: 1.759 MB / 446.3 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.3335, allocations: 0 / 446.3 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002949/0.3338, allocations: 81.09 kB / 446.4 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000503/0.3343, allocations: 271.2 kB / 446.7 MB, free: 29.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.39e-05/0.3343, allocations: 16.66 kB / 446.7 MB, free: 29.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007883/0.3351, allocations: 0.8365 MB / 447.5 MB, free: 28.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3352, allocations: 2.516 kB / 447.5 MB, free: 28.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002822/0.338, allocations: 1.238 MB / 448.8 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002215/0.3382, allocations: 180 kB / 448.9 MB, free: 28.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.739e-05/0.3383, allocations: 21.33 kB / 449 MB, free: 28.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004084/0.3387, allocations: 47.86 kB / 449 MB, free: 28.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.221e-05/0.3388, allocations: 27.34 kB / 449 MB, free: 28.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.04e-05/0.3388, allocations: 16.84 kB / 449.1 MB, free: 28.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003666/0.3392, allocations: 347.9 kB / 449.4 MB, free: 27.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3392, allocations: 0 / 449.4 MB, free: 27.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007769/0.34, allocations: 238.4 kB / 449.6 MB, free: 27.9 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.003113/0.3431, allocations: 1.962 MB / 451.6 MB, free: 26.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.3445, allocations: 0.7636 MB / 452.4 MB, free: 26.31 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3445, allocations: 0 / 452.4 MB, free: 26.31 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005015/0.345, allocations: 346.9 kB / 452.7 MB, free: 26.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005365/0.3455, allocations: 94.28 kB / 452.8 MB, free: 26.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003498/0.3491, allocations: 6.022 MB / 458.8 MB, free: 20.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003867/0.3495, allocations: 0.9572 MB / 459.8 MB, free: 20.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003696/0.3498, allocations: 90.36 kB / 459.9 MB, free: 20.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003466/0.3502, allocations: 295.9 kB / 460.1 MB, free: 19.79 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3502, allocations: 0 / 460.1 MB, free: 19.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03175/0.382, allocations: 12.95 MB / 473.1 MB, free: 18.84 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001461/0.3821, allocations: 194.5 kB / 473.3 MB, free: 18.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.853/2.235, allocations: 4 kB / 473.3 MB, free: 18.61 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: