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.0008875/0.0008871, allocations: 99.62 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.0009535/0.0009536, 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.273/1.273, allocations: 223.2 MB / 239.9 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.1925/0.1925, allocations: 5.373 MB / 296.3 MB, free: 3.906 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002923/0.0002923, allocations: 8 kB / 358.5 MB, free: 1.523 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1024, allocations: 51.62 MB / 410.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModulePolyphase): time 0.006193/0.1087, allocations: 5.722 MB / 415.9 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003741/0.1124, allocations: 2.272 MB / 418.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005267/0.113, allocations: 39.81 kB / 418.2 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006508/0.1136, allocations: 358 kB / 418.5 MB, free: 5.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008548/0.1145, allocations: 406.7 kB / 418.9 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000551/0.1151, allocations: 279.6 kB / 419.2 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001363/0.1164, allocations: 1.358 MB / 420.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001706/0.1182, allocations: 1.683 MB / 422.3 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007879/0.119, allocations: 0.7082 MB / 423 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001119/0.1201, allocations: 0.918 MB / 423.9 MB, free: 56 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1896/0.3097, allocations: 116 kB / 424 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008859/0.3107, allocations: 123.4 kB / 424.1 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006656/0.3113, allocations: 494.2 kB / 424.6 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006551/0.312, allocations: 425.5 kB / 425 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002728/0.3147, allocations: 2.862 MB / 427.9 MB, free: 35.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.3147, allocations: 0 / 427.9 MB, free: 35.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.3148, allocations: 0.875 kB / 427.9 MB, free: 35.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.24e-05/0.3148, allocations: 0 / 427.9 MB, free: 35.66 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.004731/0.3196, allocations: 2.388 MB / 430.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.3196, allocations: 13.25 kB / 430.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003728/0.32, allocations: 299.6 kB / 430.6 MB, free: 34.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004654/0.3205, allocations: 247.2 kB / 430.8 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002515/0.323, allocations: 1.442 MB / 432.3 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.3231, allocations: 153.1 kB / 432.4 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002317/0.3234, allocations: 206.9 kB / 432.6 MB, free: 34.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004121/0.3275, allocations: 2.651 MB / 435.3 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.858e-05/0.3276, allocations: 5.891 kB / 435.3 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001691/0.3277, allocations: 84.09 kB / 435.3 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-05/0.3278, allocations: 83.11 kB / 435.4 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003367/0.3312, allocations: 2.228 MB / 437.7 MB, free: 33.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01054/0.3417, allocations: 7.996 MB / 445.6 MB, free: 31.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001634/0.3434, allocations: 1.241 MB / 446.9 MB, free: 30.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.5e-05/0.3435, allocations: 11.14 kB / 446.9 MB, free: 30.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007847/0.3443, allocations: 0.5466 MB / 447.4 MB, free: 30.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 4.228e-06/0.3443, allocations: 0 / 447.4 MB, free: 30.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.004617/0.3489, allocations: 1.906 MB / 449.4 MB, free: 30.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.66e-05/0.349, allocations: 148.5 kB / 449.5 MB, free: 29.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001225/0.3502, allocations: 1.056 MB / 450.6 MB, free: 29.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.155e-05/0.3503, allocations: 40.27 kB / 450.6 MB, free: 29.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005929/0.3509, allocations: 0.9628 MB / 451.6 MB, free: 28.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/0.3511, allocations: 231.5 kB / 451.8 MB, free: 28.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.878e-05/0.3511, allocations: 25 kB / 451.8 MB, free: 28.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.755e-05/0.3512, allocations: 341.5 kB / 452.1 MB, free: 28.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007439/0.3519, allocations: 471.9 kB / 452.6 MB, free: 28.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008473/0.3528, allocations: 0.7412 MB / 453.3 MB, free: 27.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000865/0.3537, allocations: 0.5947 MB / 453.9 MB, free: 27.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.3537, allocations: 3.188 kB / 453.9 MB, free: 27.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.00244/0.3561, allocations: 1.434 MB / 455.4 MB, free: 26.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007532/0.3569, allocations: 3.431 MB / 458.8 MB, free: 23.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.3569, allocations: 9.094 kB / 458.8 MB, free: 23.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004824/0.3574, allocations: 95.12 kB / 458.9 MB, free: 23.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009512/0.3584, allocations: 259.9 kB / 459.2 MB, free: 23.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001139/0.3595, allocations: 1.48 MB / 460.6 MB, free: 21.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009247/0.3605, allocations: 159.2 kB / 460.8 MB, free: 21.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.576e-05/0.3605, allocations: 42.25 kB / 460.8 MB, free: 21.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.714e-06/0.3606, allocations: 9.562 kB / 460.8 MB, free: 21.64 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002106/0.3627, allocations: 1.297 MB / 462.1 MB, free: 21.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.3627, allocations: 8.75 kB / 462.2 MB, free: 21.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003578/0.3631, allocations: 83.55 kB / 462.2 MB, free: 21.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000832/0.3639, allocations: 253.6 kB / 462.5 MB, free: 21.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/0.3649, allocations: 1.473 MB / 464 MB, free: 19.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008604/0.3658, allocations: 135.7 kB / 464.1 MB, free: 19.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.009e-05/0.3659, allocations: 41.69 kB / 464.1 MB, free: 19.72 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.001185/0.3671, allocations: 0.7502 MB / 464.9 MB, free: 19.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001835/0.3672, allocations: 115.4 kB / 465 MB, free: 19.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003433/0.3707, allocations: 1.449 MB / 466.4 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.3707, allocations: 10.81 kB / 466.5 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3707, allocations: 3.953 kB / 466.5 MB, free: 18.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.3708, allocations: 3.141 kB / 466.5 MB, free: 18.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00555/0.3763, allocations: 2.973 MB / 469.4 MB, free: 17.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.3764, allocations: 1.438 kB / 469.4 MB, free: 17.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006762/0.377, allocations: 150.5 kB / 469.6 MB, free: 17.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006009/0.3777, allocations: 261.8 kB / 469.8 MB, free: 17.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.351e-05/0.3777, allocations: 25.47 kB / 469.9 MB, free: 17.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008939/0.3786, allocations: 0.8346 MB / 470.7 MB, free: 16.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.3786, allocations: 3.953 kB / 470.7 MB, free: 16.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00323/0.3819, allocations: 1.868 MB / 472.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006591/0.3826, allocations: 283.5 kB / 472.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.3827, allocations: 15.44 kB / 472.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006652/0.3834, allocations: 81.92 kB / 472.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001429/0.3835, allocations: 51.94 kB / 473 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.481e-05/0.3836, allocations: 25.39 kB / 473 MB, free: 15.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001203/0.3848, allocations: 0.7225 MB / 473.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3848, allocations: 0 / 473.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002133/0.387, allocations: 0.8419 MB / 474.6 MB, free: 15.05 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.003435/0.3904, allocations: 2.505 MB / 477.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003891/0.3943, allocations: 2.099 MB / 479.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.3943, allocations: 1.875 kB / 479.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.3954, allocations: 0.5896 MB / 479.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001359/0.3968, allocations: 242.7 kB / 480 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01031/0.4071, allocations: 11.15 MB / 491.2 MB, free: 19.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00175/0.4089, allocations: 1.75 MB / 492.9 MB, free: 18.53 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001347/0.4103, allocations: 368.8 kB / 493.3 MB, free: 18.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006993/0.411, allocations: 0.7049 MB / 494 MB, free: 17.91 MB / 366.1 MB Notification: Performance of SimCode: time 1.222e-06/0.411, allocations: 0 / 494 MB, free: 17.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04745/0.4585, allocations: 25.91 MB / 0.5077 GB, free: 11.13 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002074/0.4587, allocations: 206.6 kB / 0.5079 GB, free: 10.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.011/2.469, allocations: 0 / 0.5079 GB, free: 10.89 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: