Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine",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.0009816/0.0009814, allocations: 96.38 kB / 16.3 MB, free: 5.992 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.001107/0.001107, allocations: 186.1 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.488/1.488, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1815/0.1815, allocations: 38.04 MB / 309.7 MB, free: 6.121 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005257/0.0005257, allocations: 27.28 kB / 376.6 MB, free: 3.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.2996, allocations: 56.32 MB / 432.9 MB, free: 18.83 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.007105/0.3068, allocations: 7.705 MB / 440.6 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00766/0.3145, allocations: 5.377 MB / 446 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001446/0.316, allocations: 51.62 kB / 446 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005473/0.3215, allocations: 1.824 MB / 447.9 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001786/0.3233, allocations: 0.5257 MB / 448.4 MB, free: 3.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001349/0.3247, allocations: 382 kB / 448.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001398/0.3261, allocations: 0.7801 MB / 449.5 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001812/0.3279, allocations: 1.147 MB / 450.7 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008645/0.3288, allocations: 450.4 kB / 451.1 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008397/0.3297, allocations: 478.3 kB / 451.6 MB, free: 40 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002565/0.3299, allocations: 52.05 kB / 451.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00107/0.331, allocations: 271.5 kB / 451.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006346/0.3317, allocations: 399 kB / 452.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000461/0.3321, allocations: 233.1 kB / 452.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001751/0.3339, allocations: 1.344 MB / 453.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.3339, allocations: 0 / 453.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3339, allocations: 3.938 kB / 453.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.052e-05/0.334, allocations: 0 / 453.9 MB, free: 13.74 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.003052/0.3371, allocations: 1.238 MB / 455.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.3371, allocations: 8.031 kB / 455.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003126/0.3374, allocations: 135.1 kB / 455.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008781/0.3383, allocations: 154.5 kB / 455.4 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002076/0.3404, allocations: 0.9173 MB / 456.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.98e-05/0.3405, allocations: 61.98 kB / 456.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000249/0.3407, allocations: 91.91 kB / 456.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001743/0.3425, allocations: 1.051 MB / 457.5 MB, free: 9.949 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.257e-05/0.3425, allocations: 11.89 kB / 457.5 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.039e-05/0.3426, allocations: 24 kB / 457.6 MB, free: 9.914 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002104/0.3428, allocations: 73.95 kB / 457.6 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/0.3441, allocations: 0.8236 MB / 458.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005727/0.3499, allocations: 4.016 MB / 462.5 MB, free: 4.816 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009984/0.3509, allocations: 0.6329 MB / 463.1 MB, free: 4.148 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.903e-05/0.351, allocations: 8.562 kB / 463.1 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/0.351, allocations: 39.12 kB / 463.2 MB, free: 4.094 MB / 334.1 MB Notification: Performance of pre-optimization done (n=57): time 2.796e-06/0.351, allocations: 4 kB / 463.2 MB, free: 4.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.004564/0.3556, allocations: 2.58 MB / 465.7 MB, free: 1.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.077e-05/0.3557, allocations: 115.4 kB / 465.8 MB, free: 1.273 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008543/0.3565, allocations: 0.6879 MB / 466.5 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.484e-05/0.3566, allocations: 37.7 kB / 466.6 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003935/0.357, allocations: 483 kB / 467 MB, free: 52 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002366/0.3572, allocations: 240.8 kB / 467.3 MB, free: 15.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.267e-05/0.3574, allocations: 20.03 kB / 467.3 MB, free: 15.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002307/0.3576, allocations: 398.5 kB / 467.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005011/0.3581, allocations: 301.8 kB / 468 MB, free: 15.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006432/0.3588, allocations: 0.5033 MB / 468.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002785/0.3616, allocations: 0.9245 MB / 469.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.3616, allocations: 4 kB / 469.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.00228/0.3639, allocations: 1.259 MB / 470.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.3639, allocations: 8 kB / 470.7 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.3639, allocations: 7.984 kB / 470.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/0.3651, allocations: 401.6 kB / 471.1 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005493/0.3656, allocations: 151.7 kB / 471.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00738/0.373, allocations: 5.884 MB / 477.1 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006626/0.3737, allocations: 28 kB / 477.1 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.131e-05/0.3738, allocations: 35.98 kB / 477.2 MB, free: 5.496 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.windGen.WT.gear.w = $DER.windGen.WT.genRotor.w. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 73 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 1 {4 21} Notification: Performance of prepare postOptimizeDAE: time 0.0006389/0.3745, allocations: 353.5 kB / 477.5 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.3746, allocations: 82.97 kB / 477.6 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001563/0.3761, allocations: 0.9072 MB / 478.5 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.3762, allocations: 4 kB / 478.5 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3762, allocations: 4 kB / 478.5 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.3762, allocations: 3.984 kB / 478.5 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003157/0.3794, allocations: 2.009 MB / 480.5 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/0.3794, allocations: 4 kB / 480.5 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000588/0.38, allocations: 115.9 kB / 480.6 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005374/0.3805, allocations: 198.4 kB / 480.8 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.566e-05/0.3806, allocations: 27.94 kB / 480.9 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004151/0.3847, allocations: 5.043 MB / 485.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.3848, allocations: 4.031 kB / 485.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00191/0.3867, allocations: 1.327 MB / 487.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003687/0.3871, allocations: 216 kB / 487.5 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.3872, allocations: 23.98 kB / 487.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000345/0.3875, allocations: 16 kB / 487.5 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.3876, allocations: 52.48 kB / 487.5 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.233e-05/0.3877, allocations: 20 kB / 487.6 MB, free: 10.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006512/0.3884, allocations: 491 kB / 488 MB, free: 9.977 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3884, allocations: 0 / 488 MB, free: 9.977 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001043/0.3894, allocations: 252 kB / 488.3 MB, free: 9.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 11 (windGen.generator.i[3],windGen.generator.psi_rd[1],windGen.generator.psi_rq[1],windGen.WT.genRotor.phi,windGen.WT.genRotor.w,windGen.WT.turbine.phi,windGen.WT.turbine.w,windGen.WT.gear.phi,windGen.WT.gear.w,line.i[1],line.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003071/0.3925, allocations: 2.598 MB / 490.9 MB, free: 7.113 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002038/0.3945, allocations: 1.13 MB / 492 MB, free: 5.957 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3946, allocations: 0 / 492 MB, free: 5.957 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009386/0.3955, allocations: 0.7193 MB / 492.7 MB, free: 5.199 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008242/0.3963, allocations: 164.8 kB / 492.9 MB, free: 5.039 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01271/0.4091, allocations: 10.75 MB / 0.4918 GB, free: 10.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00108/0.4102, allocations: 1.161 MB / 0.493 GB, free: 8.832 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005915/0.4108, allocations: 158.6 kB / 0.4931 GB, free: 8.672 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004924/0.4113, allocations: 355.3 kB / 0.4935 GB, free: 8.324 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4113, allocations: 0 / 0.4935 GB, free: 8.324 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0412/0.4525, allocations: 20.2 MB / 0.5132 GB, free: 4.086 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002181/0.4528, allocations: 267.7 kB / 0.5135 GB, free: 3.715 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.063/2.515, allocations: 4 kB / 0.5135 GB, free: 3.711 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe 2>&1) Environment - environmentSimulation: