Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModulePolyphase,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModulePolyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModulePolyphase,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModulePolyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 221.5 MB / 229.6 MB, free: 3.164 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009387/0.0009388, allocations: 90.69 kB / 280.5 MB, free: 1.121 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02452/0.02452, allocations: 5.288 MB / 336.6 MB, free: 9.082 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.822e-05/1.822e-05, allocations: 3.938 kB / 394.4 MB, free: 70.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08032/0.08036, allocations: 51.61 MB / 446.1 MB, free: 19.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3173/0.3977, allocations: 93.91 MB / 0.5273 GB, free: 7.207 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002105/0.398, allocations: 70.38 kB / 0.5274 GB, free: 7.176 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1008/0.4988, allocations: 39.12 MB / 0.5656 GB, free: 6.801 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4988, allocations: 0 / 0.5656 GB, free: 6.801 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000132/0.499, allocations: 59.88 kB / 0.5656 GB, free: 6.742 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 529 * Number of variables: 529 Notification: Performance of Generate backend data structure: time 0.004365/0.5034, allocations: 2.139 MB / 0.5677 GB, free: 4.676 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.5034, allocations: 8.031 kB / 0.5677 GB, free: 4.668 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006176/0.504, allocations: 253.1 kB / 0.568 GB, free: 4.418 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002258/0.5063, allocations: 1.375 MB / 0.5693 GB, free: 3.332 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.923e-05/0.5064, allocations: 64 kB / 0.5694 GB, free: 3.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002574/0.5066, allocations: 120 kB / 0.5695 GB, free: 3.152 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003154/0.5098, allocations: 1.873 MB / 0.5713 GB, free: 1.359 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00378/0.5136, allocations: 2.266 MB / 0.5735 GB, free: 14.95 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.347e-05/0.5137, allocations: 4 kB / 0.5735 GB, free: 14.95 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000154/0.5138, allocations: 4 kB / 0.5735 GB, free: 14.94 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.956e-05/0.5139, allocations: 92.02 kB / 0.5736 GB, free: 14.85 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0126/0.5265, allocations: 7.71 MB / 0.5812 GB, free: 6.906 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001752/0.5283, allocations: 1.185 MB / 0.5823 GB, free: 5.633 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006766/0.529, allocations: 466.8 kB / 0.5828 GB, free: 5.176 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.015e-05/0.5291, allocations: 16.55 kB / 0.5828 GB, free: 5.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007546/0.5299, allocations: 0.5423 MB / 0.5833 GB, free: 4.594 MB / 394.7 MB Notification: Performance of pre-optimization done (n=75): time 3.176e-06/0.5299, allocations: 0 / 0.5833 GB, free: 4.594 MB / 394.7 MB Notification: Performance of matching and sorting (n=75): time 0.001924/0.5318, allocations: 0.9903 MB / 0.5843 GB, free: 3.594 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.649e-05/0.5319, allocations: 175 kB / 0.5844 GB, free: 3.383 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001291/0.5332, allocations: 0.885 MB / 0.5853 GB, free: 2.48 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.197e-05/0.5333, allocations: 25.7 kB / 0.5853 GB, free: 2.449 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008616/0.5342, allocations: 0.9651 MB / 0.5863 GB, free: 1.469 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000252/0.5344, allocations: 252.4 kB / 0.5865 GB, free: 1.219 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.664e-05/0.5345, allocations: 0 / 0.5865 GB, free: 1.219 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.5347, allocations: 353.8 kB / 0.5868 GB, free: 0.8672 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006125/0.5353, allocations: 422.5 kB / 0.5873 GB, free: 464 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008191/0.5361, allocations: 0.6859 MB / 0.5879 GB, free: 15.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007717/0.5369, allocations: 0.5158 MB / 0.5884 GB, free: 15.13 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.5369, allocations: 4 kB / 0.5884 GB, free: 15.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002298/0.5392, allocations: 1.277 MB / 0.5897 GB, free: 13.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001299/0.5405, allocations: 3.425 MB / 0.593 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/0.5406, allocations: 8 kB / 0.593 GB, free: 10.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000561/0.5411, allocations: 96.77 kB / 0.5931 GB, free: 10.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001108/0.5422, allocations: 283.5 kB / 0.5934 GB, free: 9.758 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001554/0.5438, allocations: 1.502 MB / 0.5949 GB, free: 8.137 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.5448, allocations: 139.2 kB / 0.595 GB, free: 8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.515e-05/0.5449, allocations: 51.91 kB / 0.595 GB, free: 7.949 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.328e-06/0.545, allocations: 4 kB / 0.595 GB, free: 7.945 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002072/0.547, allocations: 1.136 MB / 0.5962 GB, free: 6.801 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/0.5471, allocations: 12 kB / 0.5962 GB, free: 6.789 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004524/0.5475, allocations: 96.95 kB / 0.5963 GB, free: 6.691 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.5486, allocations: 271.5 kB / 0.5965 GB, free: 6.426 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001501/0.5501, allocations: 1.506 MB / 0.598 GB, free: 4.805 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009301/0.551, allocations: 111.3 kB / 0.5981 GB, free: 4.695 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-05/0.5511, allocations: 51.97 kB / 0.5981 GB, free: 4.645 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,$PRE.mpTracker.vRef,mpTracker.vRef,converter.integratorOmega.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 122 * 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.0003108/0.5514, allocations: 170.3 kB / 0.5983 GB, free: 4.465 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001635/0.5531, allocations: 1.037 MB / 0.5993 GB, free: 3.422 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001636/0.5533, allocations: 106.7 kB / 0.5994 GB, free: 3.316 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001884/0.5551, allocations: 1.118 MB / 0.6005 GB, free: 2.176 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.5552, allocations: 8 kB / 0.6005 GB, free: 2.168 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.5552, allocations: 0 / 0.6005 GB, free: 2.168 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.5552, allocations: 7.984 kB / 0.6005 GB, free: 2.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006758/0.562, allocations: 3.029 MB / 0.6035 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.562, allocations: 0 / 0.6035 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007335/0.5627, allocations: 155.8 kB / 0.6036 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002393/0.5651, allocations: 0.5333 MB / 0.6042 GB, free: 14.38 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.011e-05/0.5652, allocations: 11.98 kB / 0.6042 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008971/0.5661, allocations: 0.8683 MB / 0.605 GB, free: 13.47 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.5661, allocations: 7.984 kB / 0.605 GB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004819/0.571, allocations: 2.002 MB / 0.607 GB, free: 11.44 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005755/0.5716, allocations: 311.4 kB / 0.6073 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001624/0.5717, allocations: 11.98 kB / 0.6073 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007134/0.5725, allocations: 79.91 kB / 0.6074 GB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.5726, allocations: 44.7 kB / 0.6074 GB, free: 10.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.888e-05/0.5727, allocations: 23.98 kB / 0.6074 GB, free: 10.95 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009795/0.5736, allocations: 0.6779 MB / 0.6081 GB, free: 10.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5737, allocations: 0 / 0.6081 GB, free: 10.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002002/0.5757, allocations: 0.8388 MB / 0.6089 GB, free: 9.422 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (converter.integrator.y,converter.integratorOmega.y,converter.firstOrder[1].y,converter.firstOrder[2].y,converter.firstOrder[3].y) * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 66 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.005211/0.5809, allocations: 2.682 MB / 0.6115 GB, free: 6.703 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003236/0.5841, allocations: 1.984 MB / 0.6135 GB, free: 4.668 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.5842, allocations: 2 kB / 0.6135 GB, free: 4.668 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000817/0.585, allocations: 0.5644 MB / 0.614 GB, free: 4.094 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0014/0.5864, allocations: 220.5 kB / 0.6142 GB, free: 3.883 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006108/0.5925, allocations: 3.105 MB / 0.6173 GB, free: 0.7109 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001383/0.5939, allocations: 1.743 MB / 0.619 GB, free: 14.94 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001549/0.5955, allocations: 0.5309 MB / 0.6195 GB, free: 14.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000853/0.5963, allocations: 0.6828 MB / 0.6201 GB, free: 13.72 MB / 442.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5963, allocations: 0 / 0.6201 GB, free: 13.72 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2729/0.8692, allocations: 27.4 MB / 0.6469 GB, free: 122.3 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001165/0.8694, allocations: 132.8 kB / 0.647 GB, free: 122.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.883/3.752, allocations: 0 / 0.647 GB, free: 122.1 MB / 442.7 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModulePolyphase_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModulePolyphase.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase.pipe 2>&1)