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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007661/0.0007661, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.0009022/0.000902, allocations: 168.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.444/1.444, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1637/0.1637, allocations: 5.378 MB / 296.5 MB, free: 3.945 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003578/0.0003579, allocations: 12 kB / 358.7 MB, free: 1.52 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1209, allocations: 51.61 MB / 410.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModulePolyphase): time 0.008044/0.129, allocations: 6.01 MB / 416.3 MB, free: 7.824 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005194/0.1342, allocations: 2.244 MB / 418.5 MB, free: 5.574 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001268/0.1355, allocations: 39.81 kB / 418.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000989/0.1365, allocations: 365.7 kB / 418.9 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001292/0.1378, allocations: 377.7 kB / 419.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000775/0.1386, allocations: 283.5 kB / 419.6 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002199/0.1408, allocations: 2.049 MB / 421.6 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002091/0.1429, allocations: 1.691 MB / 423.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001012/0.144, allocations: 0.7159 MB / 424 MB, free: 20 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2189/0.3629, allocations: 0.9603 MB / 425 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006581/0.3636, allocations: 116 kB / 425.1 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007028/0.3643, allocations: 131.7 kB / 425.2 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006343/0.365, allocations: 0.4989 MB / 425.7 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000705/0.3657, allocations: 426.5 kB / 426.1 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003569/0.3693, allocations: 2.859 MB / 429 MB, free: 35.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.3693, allocations: 2.516 kB / 429 MB, free: 35.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.446e-06/0.3693, allocations: 0.625 kB / 429 MB, free: 35.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.314e-05/0.3694, allocations: 0 / 429 MB, free: 35.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: 529 * Number of variables: 529 Notification: Performance of Generate backend data structure: time 0.007554/0.377, allocations: 2.39 MB / 431.4 MB, free: 34.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.029e-05/0.3771, allocations: 9.531 kB / 431.4 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007754/0.3778, allocations: 302.6 kB / 431.7 MB, free: 34.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000794/0.3786, allocations: 245 kB / 431.9 MB, free: 33.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003808/0.3825, allocations: 1.451 MB / 433.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001409/0.3826, allocations: 151.7 kB / 433.5 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004041/0.383, allocations: 203.5 kB / 433.7 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006747/0.3898, allocations: 2.669 MB / 436.4 MB, free: 33.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.928e-05/0.3899, allocations: 1.891 kB / 436.4 MB, free: 33.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002584/0.3902, allocations: 82.94 kB / 436.5 MB, free: 33.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001143/0.3903, allocations: 83.53 kB / 436.6 MB, free: 33.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005632/0.3959, allocations: 2.23 MB / 438.8 MB, free: 33.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01273/0.4087, allocations: 7.998 MB / 446.8 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001838/0.4106, allocations: 1.237 MB / 448 MB, free: 30.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008808/0.4115, allocations: 0.5155 MB / 448.5 MB, free: 30.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.729e-05/0.4116, allocations: 13.03 kB / 448.6 MB, free: 30.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008374/0.4124, allocations: 0.5403 MB / 449.1 MB, free: 29.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 4.639e-06/0.4124, allocations: 0 / 449.1 MB, free: 29.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.005095/0.4175, allocations: 1.903 MB / 451 MB, free: 29.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.141e-05/0.4176, allocations: 142.8 kB / 451.1 MB, free: 28.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002134/0.4198, allocations: 1.054 MB / 452.2 MB, free: 28.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.118e-05/0.4199, allocations: 36.98 kB / 452.2 MB, free: 28.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008782/0.4208, allocations: 0.965 MB / 453.2 MB, free: 27.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002149/0.421, allocations: 230.8 kB / 453.4 MB, free: 27.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.529e-05/0.4211, allocations: 28.91 kB / 453.4 MB, free: 27.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.47e-05/0.4211, allocations: 345 kB / 453.8 MB, free: 27.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008425/0.422, allocations: 466.1 kB / 454.2 MB, free: 27.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000913/0.4229, allocations: 0.7391 MB / 455 MB, free: 26.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009855/0.4239, allocations: 0.5833 MB / 455.6 MB, free: 26.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.384e-05/0.4239, allocations: 0 / 455.6 MB, free: 26.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002945/0.4269, allocations: 1.432 MB / 457 MB, free: 25.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000287/0.4272, allocations: 386 kB / 457.4 MB, free: 25.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.332e-05/0.4272, allocations: 9.031 kB / 457.4 MB, free: 25.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000461/0.4277, allocations: 86.75 kB / 457.5 MB, free: 25.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009364/0.4287, allocations: 255.3 kB / 457.7 MB, free: 25.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.43, allocations: 1.481 MB / 459.2 MB, free: 24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.4311, allocations: 153.9 kB / 459.3 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.081e-05/0.4312, allocations: 41.64 kB / 459.4 MB, free: 23.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.4312, allocations: 6.625 kB / 459.4 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002212/0.4334, allocations: 1.291 MB / 460.7 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.294e-05/0.4334, allocations: 9.906 kB / 460.7 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003619/0.4338, allocations: 89.88 kB / 460.8 MB, free: 23.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008709/0.4347, allocations: 250.1 kB / 461 MB, free: 23.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001064/0.4358, allocations: 1.476 MB / 462.5 MB, free: 22.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009426/0.4367, allocations: 129 kB / 462.6 MB, free: 22.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.093e-05/0.4368, allocations: 40.89 kB / 462.7 MB, free: 22 MB / 350.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 115 * 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.001309/0.4381, allocations: 0.7501 MB / 463.4 MB, free: 21.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002983/0.4384, allocations: 115.4 kB / 463.5 MB, free: 21.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003761/0.4422, allocations: 1.447 MB / 465 MB, free: 20.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.4422, allocations: 7.078 kB / 465 MB, free: 20.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.4423, allocations: 0 / 465 MB, free: 20.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.4423, allocations: 4.547 kB / 465 MB, free: 20.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006413/0.4487, allocations: 2.976 MB / 468 MB, free: 19.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.4487, allocations: 1.25 kB / 468 MB, free: 19.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006543/0.4494, allocations: 143.3 kB / 468.1 MB, free: 19.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006113/0.45, allocations: 264.4 kB / 468.4 MB, free: 19.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.042e-05/0.4501, allocations: 26.98 kB / 468.4 MB, free: 19.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009419/0.4511, allocations: 0.8345 MB / 469.2 MB, free: 18.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.4511, allocations: 0.7969 kB / 469.2 MB, free: 18.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003419/0.4545, allocations: 1.853 MB / 471.1 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006701/0.4552, allocations: 274.7 kB / 471.3 MB, free: 17.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003118/0.4555, allocations: 21.08 kB / 471.4 MB, free: 17.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007739/0.4563, allocations: 81.38 kB / 471.4 MB, free: 17.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.4565, allocations: 47.56 kB / 471.5 MB, free: 17.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-05/0.4565, allocations: 21.39 kB / 471.5 MB, free: 17.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001413/0.4579, allocations: 0.7202 MB / 472.2 MB, free: 17.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.202e-06/0.458, allocations: 0 / 472.2 MB, free: 17.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002694/0.4607, allocations: 0.8459 MB / 473.1 MB, free: 17.36 MB / 350.1 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 62 * 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.003714/0.4644, allocations: 2.423 MB / 475.5 MB, free: 16.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004102/0.4685, allocations: 2.078 MB / 477.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.4685, allocations: 8.188 kB / 477.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001126/0.4697, allocations: 0.5918 MB / 478.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001755/0.4714, allocations: 249.7 kB / 478.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01761/0.4891, allocations: 9.476 MB / 487.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001662/0.4908, allocations: 1.708 MB / 489.6 MB, free: 9.113 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001271/0.4921, allocations: 376.3 kB / 490 MB, free: 8.754 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008512/0.4929, allocations: 0.7023 MB / 490.7 MB, free: 8.051 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4929, allocations: 2.188 kB / 490.7 MB, free: 8.051 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05335/0.5463, allocations: 26.51 MB / 0.5051 GB, free: 13.9 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001911/0.5465, allocations: 204.6 kB / 0.5053 GB, free: 13.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.342/2.889, allocations: 0 / 0.5053 GB, free: 13.66 MB / 382.1 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) Environment - environmentSimulation: