Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001756/0.001756, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002262/0.002262, allocations: 215.8 kB / 23.73 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.477/1.477, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1909/0.1909, allocations: 38.55 MB / 352.5 MB, free: 12.3 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGI,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGI,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGI",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002085/0.002085, allocations: 63.89 kB / 492.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3319, allocations: 62.46 MB / 0.5419 GB, free: 228 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.0143/0.3462, allocations: 10.28 MB / 0.552 GB, free: 8.434 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01294/0.3591, allocations: 6.477 MB / 0.5583 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001747/0.3609, allocations: 67.44 kB / 0.5584 GB, free: 3.371 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02625/0.3871, allocations: 14.21 MB / 0.5722 GB, free: 5.129 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003594/0.3907, allocations: 1.143 MB / 0.5734 GB, free: 3.98 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002377/0.3931, allocations: 0.7057 MB / 0.5741 GB, free: 3.273 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007363/0.4005, allocations: 4.176 MB / 0.5781 GB, free: 15.09 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001735/0.4022, allocations: 0.8476 MB / 0.579 GB, free: 14.21 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002262/0.4045, allocations: 1.156 MB / 0.5801 GB, free: 13.05 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002778/0.4072, allocations: 1.511 MB / 0.5816 GB, free: 11.54 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003463/0.4076, allocations: 152 kB / 0.5817 GB, free: 11.39 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00135/0.4089, allocations: 0.5578 MB / 0.5823 GB, free: 10.83 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009922/0.4099, allocations: 0.9232 MB / 0.5832 GB, free: 9.906 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001196/0.4111, allocations: 0.8166 MB / 0.584 GB, free: 9.086 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003499/0.4146, allocations: 2.6 MB / 0.5865 GB, free: 6.477 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.4146, allocations: 0 / 0.5865 GB, free: 6.477 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.4146, allocations: 0 / 0.5865 GB, free: 6.477 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.079e-05/0.4147, allocations: 0 / 0.5865 GB, free: 6.477 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.005127/0.4198, allocations: 2.213 MB / 0.5887 GB, free: 4.219 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.758e-05/0.4199, allocations: 11.98 kB / 0.5887 GB, free: 4.207 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003536/0.4202, allocations: 236.4 kB / 0.5889 GB, free: 3.965 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002185/0.4224, allocations: 395.1 kB / 0.5893 GB, free: 3.578 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003286/0.4257, allocations: 1.232 MB / 0.5905 GB, free: 2.305 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001155/0.4258, allocations: 102.7 kB / 0.5906 GB, free: 2.203 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006201/0.4264, allocations: 243.7 kB / 0.5908 GB, free: 1.965 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003982/0.4304, allocations: 2.192 MB / 0.5929 GB, free: 15.67 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.151e-05/0.4305, allocations: 7.938 kB / 0.5929 GB, free: 15.66 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001623/0.4306, allocations: 59.98 kB / 0.593 GB, free: 15.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006952/0.4313, allocations: 182.8 kB / 0.5932 GB, free: 15.42 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003328/0.4346, allocations: 1.823 MB / 0.595 GB, free: 13.59 MB / 446.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.01388/0.4485, allocations: 7.6 MB / 0.6024 GB, free: 5.699 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002524/0.4511, allocations: 1.381 MB / 0.6037 GB, free: 4.301 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001394/0.4524, allocations: 0.7512 MB / 0.6045 GB, free: 3.547 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.127e-05/0.4525, allocations: 21.23 kB / 0.6045 GB, free: 3.523 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.449e-05/0.4526, allocations: 47.88 kB / 0.6045 GB, free: 3.469 MB / 446.1 MB Notification: Performance of pre-optimization done (n=130): time 3.506e-06/0.4526, allocations: 4 kB / 0.6045 GB, free: 3.465 MB / 446.1 MB Notification: Performance of matching and sorting (n=165): time 0.02427/0.4768, allocations: 8.483 MB / 0.6128 GB, free: 10.93 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.635e-05/0.4769, allocations: 94.42 kB / 0.6129 GB, free: 10.81 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001507/0.4784, allocations: 1.098 MB / 0.614 GB, free: 9.703 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001621/0.4786, allocations: 57.7 kB / 0.614 GB, free: 9.641 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006658/0.4793, allocations: 0.7976 MB / 0.6148 GB, free: 8.832 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005961/0.4799, allocations: 0.6236 MB / 0.6154 GB, free: 8.203 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005595/0.4804, allocations: 355.4 kB / 0.6158 GB, free: 7.852 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.4805, allocations: 301.1 kB / 0.616 GB, free: 7.555 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001504/0.482, allocations: 0.8511 MB / 0.6169 GB, free: 6.699 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001912/0.484, allocations: 1.344 MB / 0.6182 GB, free: 5.148 MB / 462.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.01402/0.498, allocations: 5.183 MB / 0.6233 GB, free: 15.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.208e-05/0.498, allocations: 4 kB / 0.6233 GB, free: 15.79 MB / 478.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.009818/0.5078, allocations: 3.996 MB / 0.6272 GB, free: 11.77 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.758e-05/0.5078, allocations: 12 kB / 0.6272 GB, free: 11.75 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.37e-05/0.5079, allocations: 12 kB / 0.6272 GB, free: 11.74 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004826/0.5127, allocations: 1.589 MB / 0.6287 GB, free: 10.13 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001374/0.5141, allocations: 315.5 kB / 0.629 GB, free: 9.824 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02926/0.5433, allocations: 20.01 MB / 0.6486 GB, free: 5.121 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001474/0.5448, allocations: 91.92 kB / 0.6487 GB, free: 5.031 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001828/0.545, allocations: 83.98 kB / 0.6487 GB, free: 4.949 MB / 494.1 MB Warning: The initial conditions are over specified. The following 6 initial equations are redundant, so they are removed from the initialization system: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 $DER.PI.x = 0.0 $DER.generator.psi_s[2] = 0.0 $DER.generator.psi_s[1] = 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: 66 * 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 (152): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,3,100.0%), (1,8,100.0%), (1,1,100.0%), (3,24,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,22), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001018/0.546, allocations: 0.5635 MB / 0.6493 GB, free: 4.375 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000286/0.5463, allocations: 159 kB / 0.6495 GB, free: 4.219 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005336/0.5516, allocations: 2.488 MB / 0.6519 GB, free: 1.695 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.382e-05/0.5517, allocations: 20.14 kB / 0.6519 GB, free: 1.676 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.5517, allocations: 4 kB / 0.6519 GB, free: 1.672 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.812e-05/0.5517, allocations: 19.89 kB / 0.6519 GB, free: 1.652 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009576/0.5613, allocations: 4.288 MB / 0.6561 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.167e-05/0.5613, allocations: 4 kB / 0.6561 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001697/0.563, allocations: 339.9 kB / 0.6564 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001643/0.5646, allocations: 0.4975 MB / 0.6569 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002356/0.5649, allocations: 51.97 kB / 0.657 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01312/0.578, allocations: 11.97 MB / 0.6687 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/0.578, allocations: 8.156 kB / 0.6687 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007013/0.585, allocations: 3.407 MB / 0.672 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/0.586, allocations: 306.7 kB / 0.6723 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002423/0.5862, allocations: 47.98 kB / 0.6723 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009078/0.5872, allocations: 71.92 kB / 0.6724 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003279/0.5875, allocations: 133 kB / 0.6725 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/0.5876, allocations: 47.98 kB / 0.6726 GB, free: 11.49 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001063/0.5887, allocations: 0.7181 MB / 0.6733 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5887, allocations: 3.938 kB / 0.6733 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002007/0.5907, allocations: 0.5937 MB / 0.6739 GB, free: 10.17 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 24 (inertia.w,meterDC.pav,generator.phi_el,generator.i_s[3],generator.psi_s[1],generator.psi_s[2],inverter2.vDC1,line.v[1,2],line.v[1,3],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],PI.x) * 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 (138): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,2,100.0%), (2,6,100.0%), (1,1,100.0%), (1,8,100.0%), (1,1,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007094/0.5978, allocations: 4.032 MB / 0.6778 GB, free: 6.055 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006338/0.6041, allocations: 3.383 MB / 0.6811 GB, free: 2.594 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/0.6041, allocations: 8 kB / 0.6811 GB, free: 2.586 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003156/0.6073, allocations: 1.822 MB / 0.6829 GB, free: 0.6719 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001694/0.609, allocations: 349.7 kB / 0.6832 GB, free: 348 kB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04089/0.6498, allocations: 19.62 MB / 0.7024 GB, free: 11.98 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002107/0.652, allocations: 1.054 MB / 0.7034 GB, free: 10.89 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002171/0.6541, allocations: 441.3 kB / 0.7038 GB, free: 10.45 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001663/0.6558, allocations: 0.7101 MB / 0.7045 GB, free: 9.742 MB / 0.545 GB Notification: Performance of SimCode: time 1.522e-06/0.6558, allocations: 0 / 0.7045 GB, free: 9.742 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3687/1.024, allocations: 49.05 MB / 0.7524 GB, free: 164.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.15/16.17, allocations: 2.625 kB / 0.7524 GB, free: 164.2 MB / 0.5606 GB " [Timeout remaining time 644] (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGI_fmu --startTime=0 --stopTime=100 --stepSize=0.04 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGI.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.22189899208024] Failed to read output from testmodel.py, exit status != 0: 16.32473662821576 16.334479725 15.917407395 Calling exit ...