Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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(PowerSystems.Examples.Wind.WindTurbine_IG,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_IG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_IG,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_IG",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.001208/0.001209, allocations: 103.8 kB / 16.92 MB, free: 6.145 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.001125/0.001125, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.315/1.315, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.174/0.174, allocations: 38.04 MB / 329.7 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 57.58 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09032/0.09172, allocations: 58.06 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_IG): time 0.009634/0.1014, allocations: 8.077 MB / 465 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008496/0.1099, allocations: 5.501 MB / 470.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001028/0.111, allocations: 27.81 kB / 470.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01113/0.1221, allocations: 5.227 MB / 475.8 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002893/0.1251, allocations: 0.8363 MB / 476.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001663/0.1267, allocations: 0.4912 MB / 477.1 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003889/0.1306, allocations: 2.526 MB / 479.7 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001066/0.1317, allocations: 0.626 MB / 480.3 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001293/0.133, allocations: 0.7589 MB / 481 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001548/0.1346, allocations: 1.032 MB / 482.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003022/0.1349, allocations: 104 kB / 482.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008419/0.1358, allocations: 375.5 kB / 482.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00068/0.1365, allocations: 0.6508 MB / 483.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009205/0.1374, allocations: 0.6881 MB / 483.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001764/0.1392, allocations: 1.698 MB / 485.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1392, allocations: 4 kB / 485.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1392, allocations: 4 kB / 485.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.055e-05/0.1392, allocations: 0 / 485.6 MB, free: 11.25 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.003171/0.1424, allocations: 1.589 MB / 487.2 MB, free: 9.602 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.1425, allocations: 8.031 kB / 487.2 MB, free: 9.594 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000225/0.1427, allocations: 169.2 kB / 487.3 MB, free: 9.418 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001247/0.1439, allocations: 223.1 kB / 487.6 MB, free: 9.199 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00174/0.1457, allocations: 0.9254 MB / 488.5 MB, free: 8.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.552e-05/0.1458, allocations: 65.98 kB / 488.6 MB, free: 8.168 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004182/0.1462, allocations: 191.7 kB / 488.7 MB, free: 7.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002218/0.1484, allocations: 1.56 MB / 490.3 MB, free: 6.34 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.505e-05/0.1485, allocations: 7.938 kB / 490.3 MB, free: 6.332 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/0.1486, allocations: 35.98 kB / 490.3 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006076/0.1492, allocations: 153.9 kB / 490.5 MB, free: 6.145 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002051/0.1513, allocations: 1.249 MB / 491.7 MB, free: 4.887 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008078/0.1593, allocations: 6.501 MB / 498.2 MB, free: 14.01 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.1609, allocations: 0.9088 MB / 499.2 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007487/0.1616, allocations: 0.5044 MB / 499.7 MB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.181e-05/0.1617, allocations: 13 kB / 499.7 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.997e-05/0.1618, allocations: 47.56 kB / 499.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 3.346e-06/0.1618, allocations: 0 / 499.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=96): time 0.006473/0.1683, allocations: 3.671 MB / 0.4916 GB, free: 8.684 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.86e-05/0.1683, allocations: 94.23 kB / 0.4917 GB, free: 8.574 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008335/0.1692, allocations: 0.7272 MB / 0.4924 GB, free: 7.836 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.888e-05/0.1693, allocations: 49.69 kB / 0.4924 GB, free: 7.781 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003535/0.1696, allocations: 0.5457 MB / 0.493 GB, free: 7.227 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002849/0.1699, allocations: 370.8 kB / 0.4933 GB, free: 6.859 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003467/0.1703, allocations: 234.7 kB / 0.4935 GB, free: 6.625 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.1705, allocations: 414.7 kB / 0.4939 GB, free: 6.211 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008898/0.1713, allocations: 0.5648 MB / 0.4945 GB, free: 5.645 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001074/0.1724, allocations: 0.8815 MB / 0.4954 GB, free: 4.633 MB / 382.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.008196/0.1806, allocations: 3.244 MB / 0.4985 GB, free: 1.266 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.197e-05/0.1807, allocations: 4 kB / 0.4985 GB, free: 1.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.005833/0.1865, allocations: 2.736 MB / 0.5012 GB, free: 14.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.172e-05/0.1866, allocations: 16.61 kB / 0.5012 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.019e-05/0.1866, allocations: 8.047 kB / 0.5012 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00298/0.1896, allocations: 1.167 MB / 0.5024 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000845/0.1905, allocations: 199.6 kB / 0.5026 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01836/0.2088, allocations: 12.3 MB / 0.5146 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009393/0.2098, allocations: 55.95 kB / 0.5146 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000199/0.21, allocations: 59.92 kB / 0.5147 GB, free: 412 kB / 398.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: $DER.inertia.w = 0.0 infBus.V = 15000.0 * infBus.v0 line.omega[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,trafo.tap_2_internal,trafo.tap_1_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(24,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0007318/0.2108, allocations: 397.4 kB / 0.5151 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1724/0.3832, allocations: 95.83 kB / 0.5151 GB, free: 71.12 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002368/0.3855, allocations: 1.405 MB / 0.5165 GB, free: 70.85 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.3856, allocations: 9.688 kB / 0.5165 GB, free: 70.85 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.3856, allocations: 2.719 kB / 0.5165 GB, free: 70.85 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.3856, allocations: 5.906 kB / 0.5165 GB, free: 70.85 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004204/0.3898, allocations: 2.664 MB / 0.5191 GB, free: 70.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.3898, allocations: 6.031 kB / 0.5191 GB, free: 70.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001482/0.3913, allocations: 275.5 kB / 0.5194 GB, free: 70.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001613/0.3915, allocations: 57.03 kB / 0.5195 GB, free: 70.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.611e-05/0.3916, allocations: 34.66 kB / 0.5195 GB, free: 70.17 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001341/0.3929, allocations: 2.837 MB / 0.5223 GB, free: 67.37 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.393, allocations: 3.297 kB / 0.5223 GB, free: 67.37 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002514/0.3955, allocations: 1.895 MB / 0.5241 GB, free: 66.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003737/0.3959, allocations: 258.4 kB / 0.5244 GB, free: 66.36 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00014/0.396, allocations: 41.05 kB / 0.5244 GB, free: 66.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005498/0.3966, allocations: 43.22 kB / 0.5244 GB, free: 66.33 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.3967, allocations: 72.44 kB / 0.5245 GB, free: 66.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.094e-05/0.3968, allocations: 30.61 kB / 0.5245 GB, free: 66.31 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005787/0.3974, allocations: 499 kB / 0.525 GB, free: 66.11 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3974, allocations: 0 / 0.525 GB, free: 66.11 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001143/0.3985, allocations: 377 kB / 0.5254 GB, free: 66.07 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 25 (generator.i[3],generator.psi_s[1],generator.psi_s[2],generator.psi_rd[1],generator.psi_rq[1],line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[2,1],line.i[2,2],line.i[2,3],line.i[3,1],line.i[3,2],line.i[3,3],inertia.phi,inertia.w) * 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 (95): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002947/0.4015, allocations: 2.482 MB / 0.5278 GB, free: 64.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004384/0.4059, allocations: 2.574 MB / 0.5303 GB, free: 63.78 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.4059, allocations: 0 / 0.5303 GB, free: 63.78 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.4069, allocations: 0.7609 MB / 0.5311 GB, free: 63.39 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.408, allocations: 211.3 kB / 0.5313 GB, free: 63.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01966/0.4276, allocations: 14.29 MB / 0.5452 GB, free: 55.61 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006568/0.4283, allocations: 1.303 MB / 0.5465 GB, free: 54.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008955/0.4292, allocations: 308 kB / 0.5468 GB, free: 54.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004787/0.4297, allocations: 463.3 kB / 0.5472 GB, free: 53.57 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4297, allocations: 0 / 0.5472 GB, free: 53.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04803/0.4778, allocations: 29.8 MB / 0.5763 GB, free: 23.99 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.6, allocations: 17.78 kB / 0.5763 GB, free: 23.98 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_IG_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_IG.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG_res.mat does not exist to compare? outputFormat=mat