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.005376/0.005376, allocations: 104 kB / 15.74 MB, free: 6.066 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.001299/0.001299, allocations: 192.8 kB / 16.67 MB, free: 5.973 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.0301/0.0301, allocations: 5.408 MB / 295.9 MB, free: 9.434 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 67.89 kB / 412.3 MB, free: 22.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08859/0.09059, allocations: 50.63 MB / 462.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.01209/0.1027, allocations: 10.1 MB / 473 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006839/0.1096, allocations: 3.531 MB / 476.6 MB, free: 6.617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001436/0.1111, allocations: 67.81 kB / 476.6 MB, free: 6.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009384/0.1205, allocations: 3.223 MB / 479.9 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004366/0.1248, allocations: 1.004 MB / 480.9 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002379/0.1272, allocations: 0.9544 MB / 481.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006799/0.1341, allocations: 4.238 MB / 486.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01874/0.1528, allocations: 10.61 MB / 496.7 MB, free: 2.398 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003236/0.1561, allocations: 2.357 MB / 499 MB, free: 36 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003643/0.1598, allocations: 2.64 MB / 0.4899 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001045/0.1608, allocations: 0.7148 MB / 0.4906 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001792/0.1626, allocations: 0.9996 MB / 0.4916 GB, free: 11.67 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001251/0.1639, allocations: 1.333 MB / 0.4929 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002867/0.1668, allocations: 2.599 MB / 0.4954 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1924/0.3592, allocations: 9.126 MB / 0.5043 GB, free: 26.9 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.3593, allocations: 0.7188 kB / 0.5043 GB, free: 26.9 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3593, allocations: 0 / 0.5043 GB, free: 26.9 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001997/0.3595, allocations: 1.094 kB / 0.5043 GB, free: 26.9 MB / 382.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.01314/0.3727, allocations: 5.431 MB / 0.5096 GB, free: 25.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.3727, allocations: 9.531 kB / 0.5096 GB, free: 25.21 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001014/0.3737, allocations: 0.6111 MB / 0.5102 GB, free: 25.15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008905/0.3826, allocations: 1.612 MB / 0.5118 GB, free: 24.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005987/0.3887, allocations: 2.945 MB / 0.5147 GB, free: 24.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004277/0.3891, allocations: 326.2 kB / 0.515 GB, free: 24.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001422/0.3905, allocations: 424.3 kB / 0.5154 GB, free: 24.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01285/0.4034, allocations: 6.663 MB / 0.5219 GB, free: 21.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.461e-05/0.4036, allocations: 6.75 kB / 0.5219 GB, free: 21.95 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004436/0.404, allocations: 170.6 kB / 0.5221 GB, free: 21.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002616/0.4043, allocations: 209.1 kB / 0.5223 GB, free: 21.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008018/0.4123, allocations: 5.62 MB / 0.5278 GB, free: 19.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02295/0.4353, allocations: 22.52 MB / 0.5498 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006206/0.4415, allocations: 4.382 MB / 0.554 GB, free: 9.812 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001379/0.4429, allocations: 0.82 MB / 0.5548 GB, free: 8.992 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001537/0.4431, allocations: 117.1 kB / 0.555 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001246/0.4443, allocations: 0.7773 MB / 0.5557 GB, free: 8.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=106): time 2.555e-06/0.4444, allocations: 4 kB / 0.5557 GB, free: 8.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.004988/0.4494, allocations: 2.245 MB / 0.5579 GB, free: 5.789 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.4495, allocations: 145.5 kB / 0.5581 GB, free: 5.617 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002757/0.4522, allocations: 1.819 MB / 0.5598 GB, free: 3.789 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.192e-05/0.4524, allocations: 45.7 kB / 0.5599 GB, free: 3.738 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002133/0.4545, allocations: 2.036 MB / 0.5619 GB, free: 1.695 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004155/0.4549, allocations: 402 kB / 0.5622 GB, free: 1.309 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008452/0.4558, allocations: 0.5436 MB / 0.5628 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.4559, allocations: 303.6 kB / 0.5631 GB, free: 472 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001849/0.4578, allocations: 1.082 MB / 0.5641 GB, free: 15.38 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002755/0.4605, allocations: 2.176 MB / 0.5662 GB, free: 12.7 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004457/0.465, allocations: 3.367 MB / 0.5695 GB, free: 8.953 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.899e-05/0.465, allocations: 12 kB / 0.5695 GB, free: 8.941 MB / 414.1 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.005932/0.471, allocations: 3.485 MB / 0.5729 GB, free: 5.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.551e-05/0.4711, allocations: 49.69 kB / 0.573 GB, free: 5.605 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.331e-05/0.4711, allocations: 36 kB / 0.573 GB, free: 5.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005115/0.4716, allocations: 128.9 kB / 0.5732 GB, free: 5.441 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002059/0.4737, allocations: 0.6073 MB / 0.5737 GB, free: 4.879 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001737/0.4755, allocations: 1.639 MB / 0.5753 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001938/0.4774, allocations: 381.7 kB / 0.5757 GB, free: 2.742 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002058/0.4776, allocations: 136 kB / 0.5758 GB, free: 2.609 MB / 414.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 (313): * Single equations (assignments): 310 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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.002672/0.4803, allocations: 1.71 MB / 0.5775 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000323/0.4806, allocations: 166.9 kB / 0.5777 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003404/0.484, allocations: 1.776 MB / 0.5794 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002557/0.4866, allocations: 1.422 MB / 0.5808 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.4866, allocations: 4 kB / 0.5808 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.4867, allocations: 7.984 kB / 0.5808 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009612/0.4963, allocations: 5.131 MB / 0.5858 GB, free: 8.355 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.4963, allocations: 3.938 kB / 0.5858 GB, free: 8.352 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008403/0.4972, allocations: 202.5 kB / 0.586 GB, free: 8.164 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006096/0.4978, allocations: 258.5 kB / 0.5863 GB, free: 7.902 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.378e-05/0.4979, allocations: 35.92 kB / 0.5863 GB, free: 7.867 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/0.4991, allocations: 0.8306 MB / 0.5871 GB, free: 7.012 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.4991, allocations: 0 / 0.5871 GB, free: 7.012 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005608/0.5047, allocations: 2.731 MB / 0.5898 GB, free: 4.246 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007909/0.5055, allocations: 371.7 kB / 0.5901 GB, free: 3.863 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002183/0.5057, allocations: 27.95 kB / 0.5902 GB, free: 3.836 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008241/0.5066, allocations: 87.84 kB / 0.5902 GB, free: 3.75 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.5067, allocations: 76.72 kB / 0.5903 GB, free: 3.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.801e-05/0.5068, allocations: 35.98 kB / 0.5903 GB, free: 3.645 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001873/0.5087, allocations: 1.237 MB / 0.5915 GB, free: 2.41 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5087, allocations: 0 / 0.5915 GB, free: 2.41 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002689/0.5114, allocations: 0.9612 MB / 0.5925 GB, free: 1.445 MB / 430.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 (108): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.006234/0.5177, allocations: 3.387 MB / 0.5958 GB, free: 14.03 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004568/0.5223, allocations: 2.46 MB / 0.5982 GB, free: 11.65 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.5223, allocations: 0 / 0.5982 GB, free: 11.65 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001292/0.5236, allocations: 0.7804 MB / 0.599 GB, free: 10.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001978/0.5256, allocations: 365.6 kB / 0.5993 GB, free: 10.54 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03398/0.5596, allocations: 20.88 MB / 0.6197 GB, free: 4.453 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003109/0.5627, allocations: 3.021 MB / 0.6226 GB, free: 1.402 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002049/0.5648, allocations: 0.854 MB / 0.6235 GB, free: 0.543 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001892/0.5667, allocations: 1.3 MB / 0.6248 GB, free: 15.27 MB / 478.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5667, allocations: 0 / 0.6248 GB, free: 15.27 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0994/0.6661, allocations: 51.48 MB / 0.675 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.22/14.88, allocations: 3.594 kB / 0.675 GB, free: 12.07 MB / 0.5137 GB (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)